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:
parent
2054e167a9
commit
1b4c009a3d
7 changed files with 31 additions and 37 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue