Changeset 122 in flair-src for trunk/demos/Skeletons/CustomReferenceAngles/src
- Timestamp:
- Jan 6, 2017, 1:56:26 PM (8 years ago)
- Location:
- trunk/demos/Skeletons/CustomReferenceAngles/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
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();
Note:
See TracChangeset
for help on using the changeset viewer.