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


Ignore:
Timestamp:
Mar 4, 2017, 3:29:18 PM (8 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/Gx3_25_ahrs.cpp

    r137 r157  
    3030                         SerialPort *serialport, Gx3_25_imu::Command_t command,
    3131                         uint8_t priority)
    32     : Ahrs(new Gx3_25_imu( name, serialport, command, priority), name) {}
     32    : Ahrs(new Gx3_25_imu( name, serialport, command, priority), name) {
     33
     34  SetIsReady(true);
     35}
    3336
    3437Gx3_25_ahrs::~Gx3_25_ahrs() {}
    35 
    36 void Gx3_25_ahrs::Start(void) { ((Gx3_25_imu *)GetImu())->Start(); }
    3738
    3839// datas from Gx3_25_imu are AhrsData!
Note: See TracChangeset for help on using the changeset viewer.