Changeset 202 in flair-src for trunk/lib/FlairSensorActuator
- Timestamp:
- Nov 2, 2017, 3:04:47 PM (7 years ago)
- Location:
- trunk/lib/FlairSensorActuator/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSensorActuator/src/EmulatedController.cpp
r178 r202 19 19 #include <cvmatrix.h> 20 20 #include <stdexcept> 21 22 #include <unistd.h> // for sleep (debug)23 21 24 22 using namespace flair::core; -
trunk/lib/FlairSensorActuator/src/SimuImu.cpp
r198 r202 34 34 namespace sensor { 35 35 36 //Construct a SimuImu. Control part. 36 37 SimuImu::SimuImu(string name, uint32_t modelId,uint32_t deviceId, 37 38 uint8_t priority) … … 46 47 } 47 48 49 //Construct a SimuImu. Simulation part. 48 50 SimuImu::SimuImu(const IODevice *parent, string name, uint32_t modelId,uint32_t deviceId) 49 51 : Imu(parent,name), Thread(parent, name, 0) { … … 109 111 SetPeriodUS((uint32_t)(1000000. / dataRate->Value())); 110 112 } 111 112 113 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); 115 115 Vector3Df angRate(state.wx, state.wy, state.wz); 116 116 Vector3Df rawAcc(state.ax, state.ay, state.az); … … 128 128 imuData->SetDataTime(GetTime()); 129 129 ahrsData->SetDataTime(GetTime()); 130 131 130 ProcessUpdate(ahrsData); 132 131 } -
trunk/lib/FlairSensorActuator/src/TargetController.cpp
r186 r202 24 24 #include <cstring> 25 25 #include <string> 26 27 #include <unistd.h> //for usleep28 26 29 27 using namespace flair::core; -
trunk/lib/FlairSensorActuator/src/TargetEthController.cpp
r178 r202 27 27 #include <stdexcept> 28 28 29 #include <unistd.h> // for sleep (debug)30 31 29 using namespace flair::core; 32 30 using namespace flair::gui;
Note:
See TracChangeset
for help on using the changeset viewer.