Browse Source

Rover: sailboat tack triggered by any switch movement

mission-4.1.18
Randy Mackay 6 years ago
parent
commit
69e5a4b262
  1. 5
      APMrover2/RC_Channel.cpp

5
APMrover2/RC_Channel.cpp

@ -237,9 +237,8 @@ void RC_Channel_Rover::do_aux_function(const aux_func_t ch_option, const aux_swi @@ -237,9 +237,8 @@ void RC_Channel_Rover::do_aux_function(const aux_func_t ch_option, const aux_swi
// trigger sailboat tack
case SAILBOAT_TACK:
if (ch_flag == HIGH) {
rover.control_mode->handle_tack_request();
}
// any switch movement interpreted as request to tack
rover.control_mode->handle_tack_request();
break;
default:

Loading…
Cancel
Save