3D msp fix, corresponding to firmware in MSP_SET_RC_DEADBAND

10.3.x-maintenance
NightHawk32 2016-08-08 08:54:32 -04:00
parent 7934d78e5f
commit dbb2c67c8b
1 changed files with 4 additions and 0 deletions

View File

@ -1629,6 +1629,10 @@ MSP.crunch = function (code) {
buffer.push(RC_deadband.deadband);
buffer.push(RC_deadband.yaw_deadband);
buffer.push(RC_deadband.alt_hold_deadband);
if (semver.gte(CONFIG.apiVersion, "1.17.0")) {
buffer.push(lowByte(_3D.deadband3d_throttle));
buffer.push(highByte(_3D.deadband3d_throttle));
}
break;
case MSP_codes.MSP_SET_SENSOR_ALIGNMENT: