mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-17 05:15:21 +03:00
Independent rates settings for roll and pitch
This commit is contained in:
parent
3a94d0056f
commit
68adc30de8
5 changed files with 58 additions and 11 deletions
|
@ -313,6 +313,13 @@ MspHelper.prototype.process_data = function(dataHandler) {
|
|||
} else {
|
||||
RC_tuning.RC_YAW_EXPO = 0;
|
||||
}
|
||||
if (semver.gte(CONFIG.apiVersion, "1.37.0")) {
|
||||
RC_tuning.rcPitchRate = parseFloat((data.readU8() / 100).toFixed(2));
|
||||
RC_tuning.RC_PITCH_EXPO = parseFloat((data.readU8() / 100).toFixed(2));
|
||||
} else {
|
||||
RC_tuning.rcPitchRate = 0;
|
||||
RC_tuning.RC_PITCH_EXPO = 0;
|
||||
}
|
||||
break;
|
||||
case MSPCodes.MSP_PID:
|
||||
// PID data arrived, we need to scale it and save to appropriate bank / array
|
||||
|
@ -1325,6 +1332,10 @@ MspHelper.prototype.crunch = function(code) {
|
|||
buffer.push8(Math.round(RC_tuning.rcYawRate * 100));
|
||||
}
|
||||
}
|
||||
if (semver.gte(CONFIG.apiVersion, "1.37.0")) {
|
||||
buffer.push8(Math.round(RC_tuning.rcPitchRate * 100));
|
||||
buffer.push8(Math.round(RC_tuning.RC_PITCH_EXPO * 100));
|
||||
}
|
||||
break;
|
||||
case MSPCodes.MSP_SET_RX_MAP:
|
||||
for (var i = 0; i < RC_MAP.length; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue