Merge pull request #125 from gaelj/BF_MSP_RC_DEADBAND_deadband3d_throttle

MSP_RC_DEADBAND: add deadband3d_throttle
10.3.x-maintenance
borisbstyle 2016-07-18 12:18:28 +02:00 committed by GitHub
commit 8e8bb77c9b
1 changed files with 6 additions and 0 deletions

View File

@ -597,6 +597,12 @@ var MSP = {
RC_deadband.deadband = data.getUint8(offset++, 1);
RC_deadband.yaw_deadband = data.getUint8(offset++, 1);
RC_deadband.alt_hold_deadband = data.getUint8(offset++, 1);
if (semver.gte(CONFIG.apiVersion, "1.17.0")) {
_3D.deadband3d_throttle = data.getUint16(offset, 1);
offset += 2;
}
break;
case MSP_codes.MSP_SENSOR_ALIGNMENT:
var offset = 0;