Fix missing use of doubles instead of floats in SumH code.

This commit is contained in:
Dominic Clifton 2015-05-21 23:04:45 +01:00
commit d9de29129e

View file

@ -112,9 +112,8 @@ uint8_t sumhFrameStatus(void)
}
for (channelIndex = 0; channelIndex < SUMH_MAX_CHANNEL_COUNT; channelIndex++) {
sumhChannels[channelIndex] = (((uint32_t)(sumhFrame[(channelIndex << 1) + 3]) << 8)
+ sumhFrame[(channelIndex << 1) + 4]) / 6.4 - 375;
+ sumhFrame[(channelIndex << 1) + 4]) / 6.4f - 375;
}
return SERIAL_RX_FRAME_COMPLETE;
}