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


Ignore:
Timestamp:
Nov 2, 2017, 3:04:47 PM (7 years ago)
Author:
Sanahuja Guillaume
Message:

modifs usleep

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

Legend:

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

    r178 r202  
    1919#include <cvmatrix.h>
    2020#include <stdexcept>
    21 
    22 #include <unistd.h> // for sleep (debug)
    2321
    2422using namespace flair::core;
  • trunk/lib/FlairSensorActuator/src/SimuImu.cpp

    r198 r202  
    3434namespace sensor {
    3535
     36//Construct a SimuImu. Control part.
    3637SimuImu::SimuImu(string name, uint32_t modelId,uint32_t deviceId,
    3738                 uint8_t priority)
     
    4647}
    4748
     49//Construct a SimuImu. Simulation part.
    4850SimuImu::SimuImu(const IODevice *parent, string name, uint32_t modelId,uint32_t deviceId)
    4951    : Imu(parent,name), Thread(parent, name, 0) {
     
    109111      SetPeriodUS((uint32_t)(1000000. / dataRate->Value()));
    110112    }
    111 
    112113    shmem->Read((char *)&state, sizeof(imu_states_t));
    113    
    114     Quaternion  quaternion(state.q0, state.q1, state.q2, state.q3);
     114    Quaternion quaternion(state.q0, state.q1, state.q2, state.q3);
    115115    Vector3Df angRate(state.wx, state.wy, state.wz);
    116116    Vector3Df rawAcc(state.ax, state.ay, state.az);
     
    128128    imuData->SetDataTime(GetTime());
    129129    ahrsData->SetDataTime(GetTime());
    130 
    131130    ProcessUpdate(ahrsData);
    132131  }
  • trunk/lib/FlairSensorActuator/src/TargetController.cpp

    r186 r202  
    2424#include <cstring>
    2525#include <string>
    26 
    27 #include <unistd.h> //for usleep
    2826
    2927using namespace flair::core;
  • trunk/lib/FlairSensorActuator/src/TargetEthController.cpp

    r178 r202  
    2727#include <stdexcept>
    2828
    29 #include <unistd.h> // for sleep (debug)
    30 
    3129using namespace flair::core;
    3230using namespace flair::gui;
Note: See TracChangeset for help on using the changeset viewer.