Changeset 157 in flair-src for trunk/lib/FlairSensorActuator


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

Location:
trunk/lib/FlairSensorActuator/src
Files:
21 edited

Legend:

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

    r15 r157  
    3737    : Bldc(parent, layout, name, motors_count) {
    3838  pimpl_ = new AfroBldc_impl(this, layout, i2cport);
     39 
     40  SetIsReady(true);
    3941}
    4042
  • trunk/lib/FlairSensorActuator/src/BlCtrlV2.cpp

    r15 r157  
    3838    : Bldc(parent, layout, name, motors_count) {
    3939  pimpl_ = new BlCtrlV2_impl(this, layout, i2cport);
     40 
     41  SetIsReady(true);
    4042}
    4143
  • trunk/lib/FlairSensorActuator/src/BlCtrlV2_x4_speed.cpp

    r148 r157  
    134134  delete desc;
    135135 
     136  SetIsReady(true);
     137 
    136138  /*
    137139
  • trunk/lib/FlairSensorActuator/src/Bldc.cpp

    r148 r157  
    6161    : IODevice(parent, name) {
    6262  pimpl_ = new Bldc_impl(this, motors_count);
     63 
     64  SetIsReady(true);
    6365}
    6466
  • trunk/lib/FlairSensorActuator/src/Camera.cpp

    r137 r157  
    5050  setup_groupbox = new GroupBox(sensor_tab->NewRow(), name);
    5151  setup_layout = new GridLayout(sensor_tab->NewRow(), "setup");
     52 
    5253}
    5354
  • trunk/lib/FlairSensorActuator/src/EmulatedController.cpp

    r137 r157  
    3030EmulatedController::EmulatedController(string name,uint8_t priority) :
    3131    TargetController(name,priority) {
     32  SetIsReady(true);
    3233}
    3334
  • trunk/lib/FlairSensorActuator/src/Gx3_25_imu_impl.cpp

    r103 r157  
    9696  SamplingSettings();
    9797  GyrosBias();
     98  self->SetIsReady(true);
    9899  // RealignUpNorth(true,true);
    99100
     
    265266    ssize_t written = 0;
    266267
    267     Printf("Gx3_25_imu::gyros_bias: %s\n",
    268            self->IODevice::ObjectName().c_str());
     268    Printf("Gx3_25_imu::calibrating gyros, do not move imu\n");
    269269
    270270    command[0] = 0xcd; // entete
     
    296296    }
    297297
    298     Printf("Gx3_25_imu::gyros_bias: %s ok\n",
    299            self->IODevice::ObjectName().c_str());
     298    Printf("Gx3_25_imu::calibration done\n");
    300299
    301300  } else {
  • trunk/lib/FlairSensorActuator/src/HokuyoUTM30Lx.cpp

    r148 r157  
    5050  this->serialport = serialport;
    5151  serialport->SetRxTimeout(100000000);
     52 
     53  SetIsReady(true);
    5254}
    5355
  • trunk/lib/FlairSensorActuator/src/Mb800.cpp

    r137 r157  
    3333  this->serialport = serialport;
    3434  serialport->SetRxTimeout(100000000);
     35 
     36  SetIsReady(true);
    3537}
    3638
  • trunk/lib/FlairSensorActuator/src/Novatel.cpp

    r137 r157  
    3232    : NmeaGps(name, NMEAFlags), Thread(getFrameworkManager(), name, priority) {
    3333  this->serialport = serialport;
     34 
     35  SetIsReady(true);
    3436}
    3537
  • trunk/lib/FlairSensorActuator/src/Ps3Eye.cpp

    r137 r157  
    2727               uint8_t priority)
    2828    : V4LCamera( name, camera_index, 320, 240,
    29                 cvimage::Type::Format::YUYV, priority) {}
     29                cvimage::Type::Format::YUYV, priority) {
     30  SetIsReady(true);                 
     31}
    3032
    3133Ps3Eye::~Ps3Eye() {}
  • trunk/lib/FlairSensorActuator/src/RadioReceiver.cpp

    r148 r157  
    5353
    5454  AddDataToLog(output);
     55 
     56  SetIsReady(true);
    5557}
    5658
  • trunk/lib/FlairSensorActuator/src/SimuBldc.cpp

    r15 r157  
    4242  GroupBox *groupbox = new GroupBox(layout->NewRow(), "simubldc");
    4343  k = new DoubleSpinBox(groupbox->NewRow(), "k driver:", 0, 10000, 1);
     44 
     45  SetIsReady(true);
    4446}
    4547
     
    5860
    5961  shmem->Write((char *)&values, motors_count * sizeof(float));
     62 
     63  SetIsReady(true);
    6064}
    6165
  • trunk/lib/FlairSensorActuator/src/SimuCamera.cpp

    r151 r157  
    4545  dev_name << "simu_cam_" << dev_id;
    4646  shmem = new SharedMem((Thread *)this, dev_name.str().c_str(), buf_size, SharedMem::Type::producerConsumer);
     47 
     48  SetIsReady(true);
    4749}
    4850
     
    5961                        buf_size, SharedMem::Type::producerConsumer);
    6062  shmemReadBuf=NULL;
     63 
     64  SetIsReady(true);
    6165}
    6266
  • trunk/lib/FlairSensorActuator/src/SimuGps.cpp

    r137 r157  
    5353  shmem = new SharedMem((Thread *)this, dev_name.str().c_str(),
    5454                        sizeof(gps_states_t));
     55                       
     56  SetIsReady(true);
    5557}
    5658
     
    6466  shmem = new SharedMem((Thread *)this, dev_name.str().c_str(),
    6567                        sizeof(gps_states_t));
     68 
     69  SetIsReady(true);
    6670}
    6771
  • trunk/lib/FlairSensorActuator/src/SimuImu.cpp

    r137 r157  
    4545  shmem = new SharedMem((Thread *)this, dev_name.str().c_str(),
    4646                        sizeof(imu_states_t));
     47  SetIsReady(true);
    4748}
    4849
     
    5556  shmem = new SharedMem((Thread *)this, dev_name.str().c_str(),
    5657                        sizeof(imu_states_t));
     58  SetIsReady(true);
    5759}
    5860
  • trunk/lib/FlairSensorActuator/src/SimuLaser.cpp

    r137 r157  
    4141  dev_name << "simu_Laser_" << dev_id;
    4242  shmem = new SharedMem((Thread *)this, dev_name.str().c_str(),
    43                         360 * sizeof(float)); //****
     43                        360 * sizeof(float));
     44  SetIsReady(true);
    4445}
    4546
     
    5253  shmem = new SharedMem((Thread *)this, dev_name.str().c_str(),
    5354                        360 * sizeof(float));
     55  SetIsReady(true);
    5456}
    5557
  • trunk/lib/FlairSensorActuator/src/SimuUs.cpp

    r137 r157  
    4141  dev_name << "simu_us_" << dev_id;
    4242  shmem = new SharedMem((Thread *)this, dev_name.str().c_str(), sizeof(float));
     43
     44  SetIsReady(true);
    4345}
    4446
     
    5052  dev_name << "simu_us_" << dev_id;
    5153  shmem = new SharedMem((Thread *)this, dev_name.str().c_str(), sizeof(float));
     54 
     55  SetIsReady(true);
    5256}
    5357
  • trunk/lib/FlairSensorActuator/src/Srf08.cpp

    r137 r157  
    5353  SetRange();
    5454  SetMaxGain();
     55 
     56  SetIsReady(true);
    5557}
    5658
  • trunk/lib/FlairSensorActuator/src/VrpnObject.cpp

    r140 r157  
    3535  pimpl_ = new VrpnObject_impl(this, name, -1, tab);
    3636  AddDataToLog(pimpl_->output);
     37 
     38  SetIsReady(true);
    3739}
    3840
     
    4345  pimpl_ = new VrpnObject_impl(this, name, id, tab);
    4446  AddDataToLog(pimpl_->output);
     47 
     48  SetIsReady(true);
    4549}
    4650
  • trunk/lib/FlairSensorActuator/src/XBldc.cpp

    r15 r157  
    3030    : Bldc(parent, layout, name, 4) {
    3131  pimpl_ = new XBldc_impl(this, i2cport);
     32 
     33  SetIsReady(true);
    3234}
    3335
Note: See TracChangeset for help on using the changeset viewer.