Changeset 157 in flair-src for trunk/lib/FlairFilter/src/SimuAhrs.cpp


Ignore:
Timestamp:
Mar 4, 2017, 3:29:18 PM (4 years ago)
Author:
Sanahuja Guillaume
Message:

iadded isready to iodevice:
avoid problem of imu not ready in ardrone2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairFilter/src/SimuAhrs.cpp

    r137 r157  
    2929SimuAhrs::SimuAhrs(string name, uint32_t dev_id,
    3030                   uint8_t priority)
    31     : Ahrs(new SimuImu(name, dev_id, priority), name) {}
     31    : Ahrs(new SimuImu(name, dev_id, priority), name) {
     32  SetIsReady(true);
     33}
    3234
    3335SimuAhrs::~SimuAhrs() {}
    34 
    35 void SimuAhrs::Start(void) { ((SimuImu *)GetImu())->Start(); }
    3636
    3737// datas from SimuImu are AhrsData!
Note: See TracChangeset for help on using the changeset viewer.