1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-25 17:25:18 +03:00

Move 3d_deadband_throttle to rcControlsConfig

This commit is contained in:
Konstantin Sharlaimov (DigitalEntity) 2017-02-01 01:02:19 +10:00
parent 8811a87ca6
commit cc2d7b01de
15 changed files with 27 additions and 29 deletions

View file

@ -1037,7 +1037,7 @@ static bool mspFcProcessOutCommand(uint8_t cmdMSP, sbuf_t *dst, mspPostProcessFn
sbufWriteU8(dst, rcControlsConfig()->deadband);
sbufWriteU8(dst, rcControlsConfig()->yaw_deadband);
sbufWriteU8(dst, rcControlsConfig()->alt_hold_deadband);
sbufWriteU16(dst, flight3DConfig()->deadband3d_throttle);
sbufWriteU16(dst, rcControlsConfig()->deadband3d_throttle);
break;
case MSP_SENSOR_ALIGNMENT:
@ -1515,7 +1515,7 @@ static mspResult_e mspFcProcessInCommand(uint8_t cmdMSP, sbuf_t *src)
rcControlsConfigMutable()->deadband = sbufReadU8(src);
rcControlsConfigMutable()->yaw_deadband = sbufReadU8(src);
rcControlsConfigMutable()->alt_hold_deadband = sbufReadU8(src);
flight3DConfigMutable()->deadband3d_throttle = sbufReadU16(src);
rcControlsConfigMutable()->deadband3d_throttle = sbufReadU16(src);
break;
case MSP_SET_RESET_CURR_PID: