Changeset 173 in flair-src for trunk/lib/FlairSensorActuator/src/SimuImu.cpp
- Timestamp:
- Apr 26, 2017, 11:12:59 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSensorActuator/src/SimuImu.cpp
r167 r173 105 105 106 106 shmem->Read((char *)&state, sizeof(imu_states_t)); 107 ahrsData->SetQuaternionAndAngularRates( 108 Quaternion(state.q0, state.q1, state.q2, state.q3), 109 Vector3Df(state.wx, state.wy, state.wz)); 107 108 Quaternion quaternion(state.q0, state.q1, state.q2, state.q3); 109 Vector3Df angRate(state.wx, state.wy, state.wz); 110 ApplyRotation(angRate); 111 ApplyRotation(quaternion); 112 ahrsData->SetQuaternionAndAngularRates(quaternion,angRate); 110 113 111 114 imuData->SetDataTime(GetTime()); 112 115 ahrsData->SetDataTime(GetTime()); 113 116 114 UpdateImu();115 117 ProcessUpdate(ahrsData); 116 118 }
Note:
See TracChangeset
for help on using the changeset viewer.