mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-16 21:05:30 +03:00
RC_tuning.yaw_rate -> RC_tuning.rcYawRate was renamed, fix it in msp.js
This commit is contained in:
parent
a01f88dc23
commit
dc6bcdafe6
1 changed files with 2 additions and 6 deletions
|
@ -408,11 +408,7 @@ var MSP = {
|
||||||
RC_tuning.RC_YAW_EXPO = parseFloat((data.getUint8(offset++) / 100).toFixed(2));
|
RC_tuning.RC_YAW_EXPO = parseFloat((data.getUint8(offset++) / 100).toFixed(2));
|
||||||
if (semver.gte(CONFIG.apiVersion, "1.20.0")) {
|
if (semver.gte(CONFIG.apiVersion, "1.20.0")) {
|
||||||
RC_tuning.rcYawRate = parseFloat((data.getUint8(offset++) / 100).toFixed(2));
|
RC_tuning.rcYawRate = parseFloat((data.getUint8(offset++) / 100).toFixed(2));
|
||||||
} else {
|
|
||||||
RC_tuning.rcYawRate = 0;
|
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
RC_tuning.RC_YAW_EXPO = 0;
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MSP_codes.MSP_PID:
|
case MSP_codes.MSP_PID:
|
||||||
|
@ -1001,7 +997,7 @@ var MSP = {
|
||||||
break;
|
break;
|
||||||
case MSP_codes.MSP_SPECIAL_PARAMETERS:
|
case MSP_codes.MSP_SPECIAL_PARAMETERS:
|
||||||
var offset = 0;
|
var offset = 0;
|
||||||
RC_tuning.yaw_rate = parseFloat((data.getUint8(offset++) / 100).toFixed(2));
|
RC_tuning.rcYawRate = parseFloat((data.getUint8(offset++) / 100).toFixed(2));
|
||||||
if (CONFIG.flightControllerIdentifier == "BTFL" && semver.gte(CONFIG.flightControllerVersion, "2.8.2")) {
|
if (CONFIG.flightControllerIdentifier == "BTFL" && semver.gte(CONFIG.flightControllerVersion, "2.8.2")) {
|
||||||
RX_CONFIG.airModeActivateThreshold = data.getUint16(offset, 1);
|
RX_CONFIG.airModeActivateThreshold = data.getUint16(offset, 1);
|
||||||
offset += 2;
|
offset += 2;
|
||||||
|
@ -1691,7 +1687,7 @@ MSP.crunch = function (code) {
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case MSP_codes.MSP_SET_SPECIAL_PARAMETERS:
|
case MSP_codes.MSP_SET_SPECIAL_PARAMETERS:
|
||||||
buffer.push(Math.round(RC_tuning.yaw_rate * 100));
|
buffer.push(Math.round(RC_tuning.rcYawRate * 100));
|
||||||
if (CONFIG.flightControllerIdentifier == "BTFL" && semver.gte(CONFIG.flightControllerVersion, "2.8.2")) {
|
if (CONFIG.flightControllerIdentifier == "BTFL" && semver.gte(CONFIG.flightControllerVersion, "2.8.2")) {
|
||||||
buffer.push16(RX_CONFIG.airModeActivateThreshold);
|
buffer.push16(RX_CONFIG.airModeActivateThreshold);
|
||||||
buffer.push(RX_CONFIG.rcSmoothInterval);
|
buffer.push(RX_CONFIG.rcSmoothInterval);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue