1
0
Fork 0
mirror of https://github.com/iNavFlight/inav-configurator.git synced 2025-07-15 20:35:19 +03:00

adapting RC_CONTROLS to Dominic's changes

This commit is contained in:
NightHawk32 2015-12-27 16:17:41 -05:00
parent f1a29d29e6
commit a13db678a9
3 changed files with 1 additions and 5 deletions

View file

@ -538,7 +538,6 @@ function configuration_restore(callback) {
deadband: 0, deadband: 0,
yaw_deadband: 0, yaw_deadband: 0,
alt_hold_deadband: 40, alt_hold_deadband: 40,
alt_hold_fast_change: 1
}; };
} }
} }

View file

@ -182,8 +182,7 @@ var DATAFLASH = {
var RC_controls = { var RC_controls = {
deadband: 0, deadband: 0,
yaw_deadband: 0, yaw_deadband: 0,
alt_hold_deadband: 0, alt_hold_deadband: 0
alt_hold_fast_change: 0
}; };
var SENSOR_ALIGNMENT = { var SENSOR_ALIGNMENT = {

View file

@ -530,7 +530,6 @@ var MSP = {
RC_controls.deadband = data.getUint8(offset++, 1); RC_controls.deadband = data.getUint8(offset++, 1);
RC_controls.yaw_deadband = data.getUint8(offset++, 1); RC_controls.yaw_deadband = data.getUint8(offset++, 1);
RC_controls.alt_hold_deadband = data.getUint8(offset++, 1); RC_controls.alt_hold_deadband = data.getUint8(offset++, 1);
RC_controls.alt_hold_fast_change = data.getUint8(offset++, 1);
break; break;
case MSP_codes.MSP_SENSOR_ALIGNMENT: case MSP_codes.MSP_SENSOR_ALIGNMENT:
var offset = 0; var offset = 0;
@ -1285,7 +1284,6 @@ MSP.crunch = function (code) {
buffer.push(RC_controls.deadband); buffer.push(RC_controls.deadband);
buffer.push(RC_controls.yaw_deadband); buffer.push(RC_controls.yaw_deadband);
buffer.push(RC_controls.alt_hold_deadband); buffer.push(RC_controls.alt_hold_deadband);
buffer.push(RC_controls.alt_hold_fast_change);
break; break;
case MSP_codes.MSP_SET_SENSOR_ALIGNMENT: case MSP_codes.MSP_SET_SENSOR_ALIGNMENT: