Changeset 137 in flair-src for trunk/lib/FlairMeta
- Timestamp:
- Feb 14, 2017, 3:06:20 PM (8 years ago)
- Location:
- trunk/lib/FlairMeta/src
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairMeta/src/HdsX8.cpp
r122 r137 42 42 43 43 if (multiplex == NULL) 44 SetMultiplex(new X4X8Multiplex( getFrameworkManager(),"motors", X4X8Multiplex::X8));44 SetMultiplex(new X4X8Multiplex( "motors", X4X8Multiplex::X8)); 45 45 46 46 SetBldc(new BlCtrlV2(GetUavMultiplex(), GetUavMultiplex()->GetLayout(), 47 47 "motors", GetUavMultiplex()->MotorsCount(), i2cport)); 48 SetUsRangeFinder(new Srf08( getFrameworkManager(),"SRF08", i2cport, 0x70, 60));49 SetAhrs(new Gx3_25_ahrs( getFrameworkManager(),"imu", imu_port,48 SetUsRangeFinder(new Srf08("SRF08", i2cport, 0x70, 60)); 49 SetAhrs(new Gx3_25_ahrs("imu", imu_port, 50 50 Gx3_25_imu::AccelerationAngularRateAndOrientationMatrix, 70)); 51 51 SetBatteryMonitor(((BlCtrlV2 *)GetBldc())->GetBatteryMonitor()); 52 SetVerticalCamera(new Ps3Eye( getFrameworkManager(),"camv", 0, 50));52 SetVerticalCamera(new Ps3Eye("camv", 0, 50)); 53 53 } 54 54 -
trunk/lib/FlairMeta/src/MetaDualShock3.cpp
r38 r137 36 36 namespace meta { 37 37 38 MetaDualShock3::MetaDualShock3( FrameworkManager *parent,string name,38 MetaDualShock3::MetaDualShock3(string name, 39 39 TargetController *controller) 40 40 : controller(controller),IODevice((IODevice*)controller, name) { 41 41 pimpl_ = new MetaDualShock3_impl(this, name); 42 parent->AddDeviceToLog(pimpl_->joy_ref);42 getFrameworkManager()->AddDeviceToLog(pimpl_->joy_ref); 43 43 controller->Start(); 44 44 } -
trunk/lib/FlairMeta/src/MetaDualShock3.h
r38 r137 40 40 41 41 public: 42 MetaDualShock3( core::FrameworkManager *parent,std::string name,42 MetaDualShock3(std::string name, 43 43 sensor::TargetController *controller); 44 44 ~MetaDualShock3(); -
trunk/lib/FlairMeta/src/SimuX4.cpp
r122 r137 42 42 43 43 if (multiplex == NULL) 44 SetMultiplex(new X4X8Multiplex( getFrameworkManager(),"motors", X4X8Multiplex::X4));44 SetMultiplex(new X4X8Multiplex("motors", X4X8Multiplex::X4)); 45 45 46 46 SetBldc(new SimuBldc(GetUavMultiplex(), GetUavMultiplex()->GetLayout(), 47 47 "motors", GetUavMultiplex()->MotorsCount(), simu_id)); 48 SetUsRangeFinder(new SimuUs( getFrameworkManager(),"us", simu_id, 60));49 SetAhrs(new SimuAhrs( getFrameworkManager(),"imu", simu_id, 70));48 SetUsRangeFinder(new SimuUs("us", simu_id, 60)); 49 SetAhrs(new SimuAhrs("imu", simu_id, 70)); 50 50 Tab *bat_tab = new Tab(getFrameworkManager()->GetTabWidget(), "battery"); 51 51 SetBatteryMonitor(new BatteryMonitor(bat_tab->NewRow(), "battery")); 52 52 GetBatteryMonitor()->SetBatteryValue(12); 53 53 SetVerticalCamera( 54 new SimuCamera( getFrameworkManager(),"simu_cam_v", 320, 240, 3, simu_id, 10));54 new SimuCamera("simu_cam_v", 320, 240, 3, simu_id, 10)); 55 55 } 56 56 -
trunk/lib/FlairMeta/src/SimuX8.cpp
r122 r137 42 42 43 43 if (multiplex == NULL) 44 SetMultiplex(new X4X8Multiplex( getFrameworkManager(),"motors", X4X8Multiplex::X8));44 SetMultiplex(new X4X8Multiplex("motors", X4X8Multiplex::X8)); 45 45 46 46 SetBldc(new SimuBldc(GetUavMultiplex(), GetUavMultiplex()->GetLayout(), 47 47 "motors", GetUavMultiplex()->MotorsCount(), simu_id)); 48 SetUsRangeFinder(new SimuUs( getFrameworkManager(),"us", simu_id, 60));49 SetAhrs(new SimuAhrs( getFrameworkManager(),"imu", simu_id, 70));48 SetUsRangeFinder(new SimuUs("us", simu_id, 60)); 49 SetAhrs(new SimuAhrs("imu", simu_id, 70)); 50 50 Tab *bat_tab = new Tab(getFrameworkManager()->GetTabWidget(), "battery"); 51 51 SetBatteryMonitor(new BatteryMonitor(bat_tab->NewRow(), "battery")); 52 52 GetBatteryMonitor()->SetBatteryValue(12); 53 53 SetVerticalCamera( 54 new SimuCamera( getFrameworkManager(),"simu_cam_v", 320, 240, 3, simu_id, 10));54 new SimuCamera("simu_cam_v", 320, 240, 3, simu_id, 10)); 55 55 } 56 56 -
trunk/lib/FlairMeta/src/UavStateMachine.cpp
r129 r137 90 90 uZ->AddDeviceToLog(uYaw); 91 91 92 joy=new MetaDualShock3( getFrameworkManager(),"uav high level controller",controller);92 joy=new MetaDualShock3("uav high level controller",controller); 93 93 uav->GetAhrs()->AddPlot(joy->GetReferenceOrientation(),DataPlot::Blue); 94 94 -
trunk/lib/FlairMeta/src/XAir.cpp
r122 r137 45 45 46 46 if (multiplex == NULL) 47 SetMultiplex(new X4X8Multiplex( getFrameworkManager(),"motors", X4X8Multiplex::X8));47 SetMultiplex(new X4X8Multiplex("motors", X4X8Multiplex::X8)); 48 48 49 49 SetBldc(new AfroBldc(GetUavMultiplex(), GetUavMultiplex()->GetLayout(), 50 50 "motors", GetUavMultiplex()->MotorsCount(), i2cport)); 51 SetUsRangeFinder(new Srf08( getFrameworkManager(),"SRF08", i2cport, 0x70, 60));52 SetAhrs(new Gx3_25_ahrs( getFrameworkManager(),"imu", imu_port,51 SetUsRangeFinder(new Srf08("SRF08", i2cport, 0x70, 60)); 52 SetAhrs(new Gx3_25_ahrs("imu", imu_port, 53 53 Gx3_25_imu::AccelerationAngularRateAndOrientationMatrix, 70)); 54 54 Tab *bat_tab = new Tab(getFrameworkManager()->GetTabWidget(), "battery"); 55 55 SetBatteryMonitor(new BatteryMonitor(bat_tab->NewRow(), "battery")); 56 56 GetBatteryMonitor()->SetBatteryValue(12); 57 SetVerticalCamera(new Ps3Eye( getFrameworkManager(),"camv", 0, 50));57 SetVerticalCamera(new Ps3Eye("camv", 0, 50)); 58 58 } 59 59
Note:
See TracChangeset
for help on using the changeset viewer.