Fixing MSP_RAW_IMU. See 26e950b433. Closes #1061.

Must have been a late one.
This commit is contained in:
Dominic Clifton 2015-06-27 21:15:51 +01:00
parent 6323fd15d6
commit a9b5ad71b2
1 changed files with 2 additions and 1 deletions

View File

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