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


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

singleton manager

File:
1 edited

Legend:

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

    r122 r137  
    4545
    4646  if (multiplex == NULL)
    47     SetMultiplex(new X4X8Multiplex(getFrameworkManager(), "motors", X4X8Multiplex::X8));
     47    SetMultiplex(new X4X8Multiplex("motors", X4X8Multiplex::X8));
    4848
    4949  SetBldc(new AfroBldc(GetUavMultiplex(), GetUavMultiplex()->GetLayout(),
    5050                       "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,
    5353                          Gx3_25_imu::AccelerationAngularRateAndOrientationMatrix, 70));
    5454  Tab *bat_tab = new Tab(getFrameworkManager()->GetTabWidget(), "battery");
    5555  SetBatteryMonitor(new BatteryMonitor(bat_tab->NewRow(), "battery"));
    5656  GetBatteryMonitor()->SetBatteryValue(12);
    57   SetVerticalCamera(new Ps3Eye(getFrameworkManager(), "camv", 0, 50));
     57  SetVerticalCamera(new Ps3Eye("camv", 0, 50));
    5858}
    5959
Note: See TracChangeset for help on using the changeset viewer.