Changeset 158 in flair-src for trunk/lib/FlairMeta/src/SimuX4.cpp
- Timestamp:
- Mar 5, 2017, 10:50:56 AM (8 years ago)
- File:
-
- 1 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
Note:
See TracChangeset
for help on using the changeset viewer.