00001 00006 /* 00007 * Copyright 2015 Nuno Marques. 00008 * 00009 * This file is part of the mavros package and subject to the license terms 00010 * in the top-level LICENSE file of the mavros repository. 00011 * https://github.com/mavlink/mavros/tree/master/LICENSE.md 00012 */ 00013 00014 #include <test_mavros/sitl_test/sitl_test.h> 00015 #include <ros/console.h> 00016 00017 using namespace sitltest; 00018 using namespace testsetup; 00019 00020 SitlTest::SitlTest() 00021 {} 00022 00023 void SitlTest::spin(int argc, char *argv[]) 00024 { 00025 if (strcmp(argv[1],"offboard_control") == 0) 00026 { 00027 ros::init(argc, argv, "offboard_control"); 00028 testsetup::OffboardControl offboard_control; 00029 offboard_control.spin(argc, argv); 00030 } 00031 00033 }