1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

refactore to 0 - 254

This commit is contained in:
JuliooCesarMDM 2021-06-06 19:16:04 -03:00
parent bc79e600a3
commit 4071d7c311

View file

@ -290,8 +290,8 @@ void mavlinkSendRCChannelsAndRSSI(void)
(rxRuntimeState.channelCount >= 7) ? rcData[6] : 0,
// chan8_raw RC channel 8 value, in microseconds
(rxRuntimeState.channelCount >= 8) ? rcData[7] : 0,
// rssi Receive signal strength indicator, 0: 0%, 255: 100%
constrain(scaleRange(getRssi(), 0, RSSI_MAX_VALUE, 0, 255), 0, 255));
// rssi Receive signal strength indicator, 0: 0%, 254: 100%
scaleRange(getRssi(), 0, RSSI_MAX_VALUE, 0, 254));
msgLength = mavlink_msg_to_send_buffer(mavBuffer, &mavMsg);
mavlinkSerialWrite(mavBuffer, msgLength);
}