Changeset 137 in flair-src for trunk/lib/FlairMeta/src/SimuX8.cpp


Ignore:
Timestamp:
Feb 14, 2017, 3:06:20 PM (4 years ago)
Author:
Sanahuja Guillaume
Message:

singleton manager

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairMeta/src/SimuX8.cpp

    r122 r137  
    4242
    4343  if (multiplex == NULL)
    44     SetMultiplex(new X4X8Multiplex(getFrameworkManager(), "motors", X4X8Multiplex::X8));
     44    SetMultiplex(new X4X8Multiplex("motors", X4X8Multiplex::X8));
    4545
    4646  SetBldc(new SimuBldc(GetUavMultiplex(), GetUavMultiplex()->GetLayout(),
    4747                       "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));
    5050  Tab *bat_tab = new Tab(getFrameworkManager()->GetTabWidget(), "battery");
    5151  SetBatteryMonitor(new BatteryMonitor(bat_tab->NewRow(), "battery"));
    5252  GetBatteryMonitor()->SetBatteryValue(12);
    5353  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));
    5555}
    5656
Note: See TracChangeset for help on using the changeset viewer.