AP_ServoRelayEvents: do-set-servo affects sprayer and gripper

This commit is contained in:
Randy Mackay 2020-02-05 10:33:07 +09:00 committed by Andrew Tridgell
parent e0af13a6ad
commit d40862de9c
1 changed files with 6 additions and 0 deletions

View File

@ -36,6 +36,9 @@ bool AP_ServoRelayEvents::do_set_servo(uint8_t _channel, uint16_t pwm)
{ {
case SRV_Channel::k_none: case SRV_Channel::k_none:
case SRV_Channel::k_manual: case SRV_Channel::k_manual:
case SRV_Channel::k_sprayer_pump:
case SRV_Channel::k_sprayer_spinner:
case SRV_Channel::k_gripper:
case SRV_Channel::k_rcin1 ... SRV_Channel::k_rcin16: // rc pass-thru case SRV_Channel::k_rcin1 ... SRV_Channel::k_rcin16: // rc pass-thru
break; break;
default: default:
@ -88,6 +91,9 @@ bool AP_ServoRelayEvents::do_repeat_servo(uint8_t _channel, uint16_t _servo_valu
{ {
case SRV_Channel::k_none: case SRV_Channel::k_none:
case SRV_Channel::k_manual: case SRV_Channel::k_manual:
case SRV_Channel::k_sprayer_pump:
case SRV_Channel::k_sprayer_spinner:
case SRV_Channel::k_gripper:
case SRV_Channel::k_rcin1 ... SRV_Channel::k_rcin16: // rc pass-thru case SRV_Channel::k_rcin1 ... SRV_Channel::k_rcin16: // rc pass-thru
break; break;
default: default: