Changeset 186 in flair-src for trunk/lib/FlairSensorActuator/src/SimuImu.cpp
- Timestamp:
- Jun 23, 2017, 5:33:03 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/FlairSensorActuator/src/SimuImu.cpp
r173 r186 79 79 state.wy = input->ValueNoMutex(8, 0); 80 80 state.wz = input->ValueNoMutex(9, 0); 81 state.ax = input->ValueNoMutex(13, 0); 82 state.ay = input->ValueNoMutex(14, 0); 83 state.az = input->ValueNoMutex(15, 0); 84 state.mx = input->ValueNoMutex(16, 0); 85 state.my = input->ValueNoMutex(17, 0); 86 state.mz = input->ValueNoMutex(18, 0); 81 87 input->ReleaseMutex(); 82 88 … … 108 114 Quaternion quaternion(state.q0, state.q1, state.q2, state.q3); 109 115 Vector3Df angRate(state.wx, state.wy, state.wz); 116 Vector3Df rawAcc(state.ax, state.ay, state.az); 117 Vector3Df rawMag(state.mx, state.my, state.mz); 118 Vector3Df rawGyr(state.wx, state.wy, state.wz); 110 119 ApplyRotation(angRate); 111 120 ApplyRotation(quaternion); 121 ApplyRotation(rawAcc); 122 ApplyRotation(rawMag); 123 ApplyRotation(rawGyr); 112 124 ahrsData->SetQuaternionAndAngularRates(quaternion,angRate); 113 125 imuData->SetRawAccMagAndGyr(rawAcc,rawMag,rawGyr); 114 126 imuData->SetDataTime(GetTime()); 115 127 ahrsData->SetDataTime(GetTime());
Note:
See TracChangeset
for help on using the changeset viewer.