mirror of https://github.com/ArduPilot/ardupilot
AC_Sprayer: use new SRV_Channels API
This commit is contained in:
parent
a10e8b9b4b
commit
5817cc400c
|
@ -85,8 +85,8 @@ void AC_Sprayer::run(const bool true_false)
|
|||
|
||||
void AC_Sprayer::stop_spraying()
|
||||
{
|
||||
SRV_Channels::set_servo_limit(SRV_Channel::k_sprayer_pump, SRV_CHANNEL_LIMIT_MIN);
|
||||
SRV_Channels::set_servo_limit(SRV_Channel::k_sprayer_spinner, SRV_CHANNEL_LIMIT_MIN);
|
||||
SRV_Channels::set_output_limit(SRV_Channel::k_sprayer_pump, SRV_Channel::SRV_CHANNEL_LIMIT_MIN);
|
||||
SRV_Channels::set_output_limit(SRV_Channel::k_sprayer_spinner, SRV_Channel::SRV_CHANNEL_LIMIT_MIN);
|
||||
|
||||
_flags.spraying = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue