Fixing MSP_RAW_IMU. See 26e950b433
. Closes #1061.
Must have been a late one.
This commit is contained in:
parent
6323fd15d6
commit
a9b5ad71b2
|
@ -812,8 +812,9 @@ static bool processOutCommand(uint8_t cmdMSP)
|
|||
break;
|
||||
case MSP_RAW_IMU:
|
||||
headSerialReply(18);
|
||||
|
||||
// Hack scale due to choice of units for sensor data in multiwii
|
||||
uint8_t scale = acc_1G > 1024 ? 8 : 0;
|
||||
uint8_t scale = (acc_1G > 1024) ? 8 : 1;
|
||||
|
||||
for (i = 0; i < 3; i++)
|
||||
serialize16(accSmooth[i] / scale);
|
||||
|
|
Loading…
Reference in New Issue