mirror of
https://github.com/iNavFlight/inav-configurator.git
synced 2025-07-15 20:35:19 +03:00
Fix advanced tunig tab on F3 boards
This commit is contained in:
parent
259aa38132
commit
0d1066044c
1 changed files with 12 additions and 8 deletions
|
@ -1456,14 +1456,18 @@ var mspHelper = (function (gui) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MSPCodes.MSP2_INAV_MC_BRAKING:
|
case MSPCodes.MSP2_INAV_MC_BRAKING:
|
||||||
BRAKING_CONFIG.speedThreshold = data.getUint16(0, true);
|
try {
|
||||||
BRAKING_CONFIG.disengageSpeed = data.getUint16(2, true);
|
BRAKING_CONFIG.speedThreshold = data.getUint16(0, true);
|
||||||
BRAKING_CONFIG.timeout = data.getUint16(4, true);
|
BRAKING_CONFIG.disengageSpeed = data.getUint16(2, true);
|
||||||
BRAKING_CONFIG.boostFactor = data.getInt8(6);
|
BRAKING_CONFIG.timeout = data.getUint16(4, true);
|
||||||
BRAKING_CONFIG.boostTimeout = data.getUint16(7, true);
|
BRAKING_CONFIG.boostFactor = data.getInt8(6);
|
||||||
BRAKING_CONFIG.boostSpeedThreshold = data.getUint16(9, true);
|
BRAKING_CONFIG.boostTimeout = data.getUint16(7, true);
|
||||||
BRAKING_CONFIG.boostDisengageSpeed = data.getUint16(11, true);
|
BRAKING_CONFIG.boostSpeedThreshold = data.getUint16(9, true);
|
||||||
BRAKING_CONFIG.bankAngle = data.getInt8(13);
|
BRAKING_CONFIG.boostDisengageSpeed = data.getUint16(11, true);
|
||||||
|
BRAKING_CONFIG.bankAngle = data.getInt8(13);
|
||||||
|
} catch (e) {
|
||||||
|
console.log("MC_BRAKING MODE is not supported by the hardware");
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case MSPCodes.MSP2_INAV_SET_MC_BRAKING:
|
case MSPCodes.MSP2_INAV_SET_MC_BRAKING:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue