1
0
Fork 0
mirror of https://github.com/betaflight/betaflight-configurator.git synced 2025-07-18 22:05:13 +03:00

Merge pull request #621 from spuder/small_angle

Configure Small_angle
This commit is contained in:
Michael Keller 2017-10-13 19:53:27 +13:00 committed by GitHub
commit bd757f49af
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")) {
@ -1254,6 +1257,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);