Changeset 122 in flair-src for trunk/demos/Skeletons
- Timestamp:
- Jan 6, 2017, 1:56:26 PM (8 years ago)
- Location:
- trunk/demos/Skeletons
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/demos/Skeletons/CustomReferenceAngles/CMakeLists.txt
r43 r122 6 6 SET(FLAIR_USE_SENSOR_ACTUATOR TRUE) 7 7 SET(FLAIR_USE_META TRUE) 8 SET(FLAIR_USE_VRPN TRUE)9 8 10 9 include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake) -
trunk/demos/Skeletons/CustomReferenceAngles/src/MyApp.cpp
r43 r122 29 29 using namespace flair::sensor; 30 30 31 MyApp::MyApp( Uav* uav,TargetController *controller): UavStateMachine(uav,controller), behaviourMode(BehaviourMode_t::Default) {31 MyApp::MyApp(TargetController *controller): UavStateMachine(controller), behaviourMode(BehaviourMode_t::Default) { 32 32 start_CustomAngles=new PushButton(GetButtonsLayout()->NewRow(),"start CustomReferenceAngles"); 33 33 stop_CustomAngles=new PushButton(GetButtonsLayout()->NewRow(),"stop CustomReferenceAngles"); 34 34 35 35 customReferenceOrientation= new AhrsData(this,"reference"); 36 uav->GetAhrs()->AddPlot(customReferenceOrientation,DataPlot::Yellow);36 GetUav()->GetAhrs()->AddPlot(customReferenceOrientation,DataPlot::Yellow); 37 37 AddDataToControlLawLog(customReferenceOrientation); 38 38 } -
trunk/demos/Skeletons/CustomReferenceAngles/src/MyApp.h
r43 r122 31 31 class MyApp : public flair::meta::UavStateMachine { 32 32 public: 33 MyApp(flair:: meta::Uav* uav,flair::sensor::TargetController *controller);33 MyApp(flair::sensor::TargetController *controller); 34 34 ~MyApp(); 35 35 -
trunk/demos/Skeletons/CustomReferenceAngles/src/main.cpp
r43 r122 44 44 manager->SetupLogger(log_path); 45 45 46 Uav* drone=CreateUav( manager,name,uav_type);46 Uav* drone=CreateUav(name,uav_type); 47 47 TargetEthController *controller=new TargetEthController(manager,"Dualshock3",ds3port); 48 MyApp* app=new MyApp( drone,controller);48 MyApp* app=new MyApp(controller); 49 49 50 50 app->Start(); -
trunk/demos/Skeletons/CustomTorques/CMakeLists.txt
r43 r122 6 6 SET(FLAIR_USE_SENSOR_ACTUATOR TRUE) 7 7 SET(FLAIR_USE_META TRUE) 8 SET(FLAIR_USE_VRPN TRUE)9 8 10 9 include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake) -
trunk/demos/Skeletons/CustomTorques/src/MyApp.cpp
r43 r122 26 26 using namespace flair::sensor; 27 27 28 MyApp::MyApp( Uav* uav,TargetController *controller): UavStateMachine(uav,controller), behaviourMode(BehaviourMode_t::Default) {28 MyApp::MyApp(TargetController *controller): UavStateMachine(controller), behaviourMode(BehaviourMode_t::Default) { 29 29 start_CustomTorques=new PushButton(GetButtonsLayout()->NewRow(),"start CustomTorques"); 30 30 stop_CustomTorques=new PushButton(GetButtonsLayout()->NewRow(),"stop CustomTorques"); -
trunk/demos/Skeletons/CustomTorques/src/MyApp.h
r43 r122 28 28 class MyApp : public flair::meta::UavStateMachine { 29 29 public: 30 MyApp(flair:: meta::Uav* uav,flair::sensor::TargetController *controller);30 MyApp(flair::sensor::TargetController *controller); 31 31 ~MyApp(); 32 32 -
trunk/demos/Skeletons/CustomTorques/src/main.cpp
r43 r122 45 45 manager->SetupLogger(log_path); 46 46 47 Uav* drone=CreateUav( manager,name,uav_type);47 Uav* drone=CreateUav(name,uav_type); 48 48 TargetEthController *controller=new TargetEthController(manager,"Dualshock3",ds3port); 49 MyApp* app=new MyApp( drone,controller);49 MyApp* app=new MyApp(controller); 50 50 51 51 app->Start();
Note:
See TracChangeset
for help on using the changeset viewer.