Ignore:
Timestamp:
07/28/16 17:55:31 (8 years ago)
Author:
Sanahuja Guillaume
Message:

simu gps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairSensorActuator/src/SimuImu.cpp

    r15 r55  
    3737                 uint8_t priority)
    3838    : Imu(parent, name), Thread(parent, name, priority) {
    39   data_rate =
     39  dataRate =
    4040      new SpinBox(GetGroupBox()->NewRow(), "data rate", " Hz", 1, 500, 1, 200);
    4141  ahrsData = new AhrsData((Imu *)this);
     
    4949SimuImu::SimuImu(const IODevice *parent, string name, uint32_t dev_id)
    5050    : Imu(parent, name), Thread(parent, name, 0) {
    51   data_rate = NULL;
     51  dataRate = NULL;
    5252
    5353  ostringstream dev_name;
     
    8686  GetDatas(&imuData);
    8787
    88   if (data_rate == NULL) {
     88  if (dataRate == NULL) {
    8989    Thread::Err("not applicable for simulation part.\n");
    9090    return;
    9191  }
    9292
    93   SetPeriodUS((uint32_t)(1000000. / data_rate->Value()));
     93  SetPeriodUS((uint32_t)(1000000. / dataRate->Value()));
    9494
    9595  while (!ToBeStopped()) {
    9696    WaitPeriod();
    9797
    98     if (data_rate->ValueChanged() == true) {
    99       SetPeriodUS((uint32_t)(1000000. / data_rate->Value()));
     98    if (dataRate->ValueChanged() == true) {
     99      SetPeriodUS((uint32_t)(1000000. / dataRate->Value()));
    100100    }
    101101
Note: See TracChangeset for help on using the changeset viewer.