1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 17:25:18 +03:00

Scaled gyro output to float in gyro sensor

This commit is contained in:
Martin Budden 2017-01-28 21:38:47 +00:00
parent 2054e167a9
commit 1b4c009a3d
7 changed files with 31 additions and 37 deletions

View file

@ -589,7 +589,7 @@ static bool mspFcProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst, mspPostProcessFn
sbufWriteU16(dst, acc.accADC[i] / scale);
}
for (int i = 0; i < 3; i++) {
sbufWriteU16(dst, gyro.gyroADC[i]);
sbufWriteU16(dst, lrintf(gyro.gyroADCf[i] / gyro.dev.scale));
}
for (int i = 0; i < 3; i++) {
sbufWriteU16(dst, mag.magADC[i]);