Fix access to `RC_YAW_EXPO` in `MSP_RC_TUNING` data packet

10.3.x-maintenance
ProDrone 2015-05-09 15:46:56 +02:00
parent ab883c6dc5
commit 322b7c1085
1 changed files with 2 additions and 1 deletions

View File

@ -308,7 +308,8 @@ var MSP = {
RC_tuning.throttle_MID = parseFloat((data.getUint8(offset++) / 100).toFixed(2));
RC_tuning.throttle_EXPO = parseFloat((data.getUint8(offset++) / 100).toFixed(2));
if (semver.gte(CONFIG.apiVersion, "1.7.0")) {
RC_tuning.dynamic_THR_breakpoint = data.getUint16(offset++, 1);
RC_tuning.dynamic_THR_breakpoint = data.getUint16(offset, 1);
offset += 2; // point past 16 bit (2 bytes)
}
if (semver.gte(CONFIG.apiVersion, "1.10.0")) {
RC_tuning.RC_YAW_EXPO = parseFloat((data.getUint8(offset++) / 100).toFixed(2));