MSP_RAW_IMU to convert accADC from float to integer (#5417)
This commit is contained in:
parent
f674b01bc8
commit
85b922383b
|
@ -798,7 +798,7 @@ static bool mspProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst)
|
|||
}
|
||||
|
||||
for (int i = 0; i < 3; i++) {
|
||||
sbufWriteU16(dst, acc.accADC[i] / scale);
|
||||
sbufWriteU16(dst, lrintf(acc.accADC[i] / scale));
|
||||
}
|
||||
for (int i = 0; i < 3; i++) {
|
||||
sbufWriteU16(dst, gyroRateDps(i));
|
||||
|
|
Loading…
Reference in New Issue