diff --git a/ArduPlane/RC_Channel.cpp b/ArduPlane/RC_Channel.cpp index 3a016702db..17835b05b4 100644 --- a/ArduPlane/RC_Channel.cpp +++ b/ArduPlane/RC_Channel.cpp @@ -135,11 +135,6 @@ void RC_Channel_Plane::do_aux_function_flare(AuxSwitchPos ch_flag) } } -void RC_Channel_Plane::do_aux_function_mission_reset(const AuxSwitchPos ch_flag) -{ - plane.mission.start(); - plane.prev_WP_loc = plane.current_loc; -} void RC_Channel_Plane::init_aux_function(const RC_Channel::aux_func_t ch_option, const RC_Channel::AuxSwitchPos ch_flag) diff --git a/ArduPlane/RC_Channel.h b/ArduPlane/RC_Channel.h index 05959b42a4..9b14f5efe2 100644 --- a/ArduPlane/RC_Channel.h +++ b/ArduPlane/RC_Channel.h @@ -26,8 +26,6 @@ private: void do_aux_function_flare(AuxSwitchPos ch_flag); - void do_aux_function_mission_reset(const AuxSwitchPos ch_flag) override; - }; class RC_Channels_Plane : public RC_Channels diff --git a/libraries/RC_Channel/RC_Channel.h b/libraries/RC_Channel/RC_Channel.h index 97058cd1f1..11d515c28c 100644 --- a/libraries/RC_Channel/RC_Channel.h +++ b/libraries/RC_Channel/RC_Channel.h @@ -297,7 +297,7 @@ protected: void do_aux_function_clear_wp(const AuxSwitchPos ch_flag); void do_aux_function_gripper(const AuxSwitchPos ch_flag); void do_aux_function_lost_vehicle_sound(const AuxSwitchPos ch_flag); - virtual void do_aux_function_mission_reset(const AuxSwitchPos ch_flag); + void do_aux_function_mission_reset(const AuxSwitchPos ch_flag); void do_aux_function_rc_override_enable(const AuxSwitchPos ch_flag); void do_aux_function_relay(uint8_t relay, bool val); void do_aux_function_sprayer(const AuxSwitchPos ch_flag);