1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-19 14:25:14 +03:00

Adds small angle to gui

This commit is contained in:
Spencer Owen 2017-08-15 22:40:21 -06:00
parent 7672fcf064
commit 614f2b5ffd
6 changed files with 66 additions and 2 deletions

View file

@ -322,6 +322,9 @@ MspHelper.prototype.process_data = function(dataHandler) {
ARMING_CONFIG.auto_disarm_delay = data.readU8();
ARMING_CONFIG.disarm_kill_switch = data.readU8();
}
if (semver.gte(CONFIG.apiVersion, "1.37.0")) {
ARMING_CONFIG.small_angle = data.readU8();
}
break;
case MSPCodes.MSP_LOOP_TIME:
if (semver.gte(CONFIG.apiVersion, "1.8.0")) {
@ -1251,6 +1254,9 @@ MspHelper.prototype.crunch = function(code) {
case MSPCodes.MSP_SET_ARMING_CONFIG:
buffer.push8(ARMING_CONFIG.auto_disarm_delay)
.push8(ARMING_CONFIG.disarm_kill_switch);
if (semver.gte(CONFIG.apiVersion, "1.37.0")) {
buffer.push8(ARMING_CONFIG.small_angle);
}
break;
case MSPCodes.MSP_SET_LOOP_TIME:
buffer.push16(FC_CONFIG.loopTime);