1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-15 12:25:13 +03:00

Fix advanced tunig tab on F3 boards

This commit is contained in:
Pawel Spychalski (DzikuVx) 2020-05-17 12:32:39 +02:00
parent 259aa38132
commit 0d1066044c

View file

@ -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: