AC_Sprayer: use new SRV_Channels API

This commit is contained in:
Andrew Tridgell 2017-01-07 12:06:40 +11:00
parent a10e8b9b4b
commit 5817cc400c
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}