diff --git a/Rover/mode.h b/Rover/mode.h index 4e4f0d09c1..605b1c65fe 100644 --- a/Rover/mode.h +++ b/Rover/mode.h @@ -276,6 +276,13 @@ public: FUNCTOR_BIND_MEMBER(&ModeAuto::verify_command_callback, bool, const AP_Mission::Mission_Command&), FUNCTOR_BIND_MEMBER(&ModeAuto::exit_mission, void)}; + enum Mis_Done_Behave { + MIS_DONE_BEHAVE_HOLD = 0, + MIS_DONE_BEHAVE_LOITER = 1, + MIS_DONE_BEHAVE_ACRO = 2, + MIS_DONE_BEHAVE_MANUAL = 3 + }; + protected: bool _enter() override; @@ -324,13 +331,6 @@ private: void do_set_reverse(const AP_Mission::Mission_Command& cmd); void do_guided_limits(const AP_Mission::Mission_Command& cmd); - enum Mis_Done_Behave { - MIS_DONE_BEHAVE_HOLD = 0, - MIS_DONE_BEHAVE_LOITER = 1, - MIS_DONE_BEHAVE_ACRO = 2, - MIS_DONE_BEHAVE_MANUAL = 3 - }; - bool waiting_to_start; // true if waiting for EKF origin before starting mission bool auto_triggered; // true when auto has been triggered to start