From 6ea3c2a09109875b619db7b519838741b0ec5e90 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Mon, 20 Jul 2020 16:45:48 +0900 Subject: [PATCH] Copter: compile fix for winch --- ArduCopter/RC_Channel.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ArduCopter/RC_Channel.cpp b/ArduCopter/RC_Channel.cpp index 5e67b86ba8..ccc4e07c29 100644 --- a/ArduCopter/RC_Channel.cpp +++ b/ArduCopter/RC_Channel.cpp @@ -465,15 +465,15 @@ void RC_Channel_Copter::do_aux_function(const aux_func_t ch_option, const AuxSwi case AUX_FUNC::WINCH_CONTROL: #if WINCH_ENABLED == ENABLED switch (ch_flag) { - case LOW: + case AuxSwitchPos::LOW: // raise winch at maximum speed copter.g2.winch.set_desired_rate(-copter.g2.winch.get_rate_max()); break; - case HIGH: + case AuxSwitchPos::HIGH: // lower winch at maximum speed copter.g2.winch.set_desired_rate(copter.g2.winch.get_rate_max()); break; - case MIDDLE: + case AuxSwitchPos::MIDDLE: copter.g2.winch.set_desired_rate(0.0f); break; }