Changeset 158 in flair-src for trunk/lib/FlairMeta/src
- Timestamp:
- Mar 5, 2017, 10:50:56 AM (8 years ago)
- Location:
- trunk/lib/FlairMeta/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairMeta/src/SimuX4.cpp
r157 r158 38 38 namespace meta { 39 39 40 SimuX4::SimuX4(string name, int simu_id,string options,40 SimuX4::SimuX4(string name, uint32_t simu_id,string options, 41 41 filter::UavMultiplex *multiplex) 42 42 : Uav(name, multiplex) { … … 46 46 47 47 SetBldc(new SimuBldc(GetUavMultiplex(), GetUavMultiplex()->GetLayout(), 48 "motors", GetUavMultiplex()->MotorsCount(), simu_id ));49 SetUsRangeFinder(new SimuUs("us", simu_id, 60));50 SetAhrs(new SimuAhrs("imu", simu_id, 70));48 "motors", GetUavMultiplex()->MotorsCount(), simu_id,0)); 49 SetUsRangeFinder(new SimuUs("us", simu_id,0, 60)); 50 SetAhrs(new SimuAhrs("imu", simu_id, 0,70)); 51 51 Tab *bat_tab = new Tab(getFrameworkManager()->GetTabWidget(), "battery"); 52 52 SetBatteryMonitor(new BatteryMonitor(bat_tab->NewRow(), "battery")); … … 59 59 } 60 60 61 SetVerticalCamera( 62 new SimuCamera("simu_cam_v", camvWidth, camvHeight, 3, simu_id, 10));61 SetVerticalCamera(new SimuCamera("simu_cam_v", camvWidth, camvHeight, 3, simu_id,0, 10)); 62 //SetHorizontalCamera(new SimuCamera("simu_cam_h", 320, 240, 3, simu_id,1, 10)); 63 63 } 64 64 -
trunk/lib/FlairMeta/src/SimuX4.h
r157 r158 26 26 // simu_id: 0 if simulating only one UAV 27 27 //>0 otherwise 28 SimuX4(std::string name, int simu_id = 0,std::string options="",28 SimuX4(std::string name, uint32_t simu_id = 0,std::string options="", 29 29 filter::UavMultiplex *multiplex = NULL); 30 30 ~SimuX4(); -
trunk/lib/FlairMeta/src/SimuX8.cpp
r157 r158 37 37 namespace meta { 38 38 39 SimuX8::SimuX8(string name, int simu_id,string options,39 SimuX8::SimuX8(string name, uint32_t simu_id,string options, 40 40 filter::UavMultiplex *multiplex) 41 41 : Uav(name, multiplex) { … … 45 45 46 46 SetBldc(new SimuBldc(GetUavMultiplex(), GetUavMultiplex()->GetLayout(), 47 "motors", GetUavMultiplex()->MotorsCount(), simu_id ));48 SetUsRangeFinder(new SimuUs("us", simu_id, 60));49 SetAhrs(new SimuAhrs("imu", simu_id, 70));47 "motors", GetUavMultiplex()->MotorsCount(), simu_id,0)); 48 SetUsRangeFinder(new SimuUs("us", simu_id,0, 60)); 49 SetAhrs(new SimuAhrs("imu", simu_id, 0,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 SetVerticalCamera( 54 new SimuCamera("simu_cam_v", 320, 240, 3, simu_id, 10));53 SetVerticalCamera(new SimuCamera("simu_cam_v", 320, 240, 3, simu_id,0, 10)); 54 //SetHorizontalCamera(new SimuCamera("simu_cam_h", 320, 240, 3, simu_id,1, 10)); 55 55 } 56 56 -
trunk/lib/FlairMeta/src/SimuX8.h
r157 r158 26 26 // simu_id: 0 if simulating only one UAV 27 27 //>0 otherwise 28 SimuX8(std::string name, int simu_id = 0,std::string options="",28 SimuX8(std::string name, uint32_t simu_id = 0,std::string options="", 29 29 filter::UavMultiplex *multiplex = NULL); 30 30 ~SimuX8();
Note:
See TracChangeset
for help on using the changeset viewer.