mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-13 21:11:36 +08:00
commander: set home position on takeoff
instead of when arming and on takeoff. It is set on the first takeoff or if there was a disarm event between the last and the current takeoff.
This commit is contained in:
@@ -365,6 +365,7 @@ private:
|
||||
bool _was_armed{false};
|
||||
bool _failsafe_old{false}; ///< check which state machines for changes, clear "changed" flag
|
||||
bool _have_taken_off_since_arming{false};
|
||||
bool _should_set_home_on_takeoff{true};
|
||||
bool _flight_termination_printed{false};
|
||||
|
||||
main_state_t _main_state_pre_offboard{commander_state_s::MAIN_STATE_MANUAL};
|
||||
|
||||
Reference in New Issue
Block a user