MSP_RAW_IMU to convert accADC from float to integer (#5417)

This commit is contained in:
jflyper 2018-03-14 22:24:39 +09:00 committed by Michael Keller
parent f674b01bc8
commit 85b922383b
1 changed files with 1 additions and 1 deletions

View File

@ -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));