navigator: update mission after changing home position (#22834)

This commit is contained in:
Drone-Lab
2024-03-20 08:37:19 +01:00
committed by GitHub
parent 63850873eb
commit 37caddedbb
2 changed files with 35 additions and 0 deletions
+8
View File
@@ -448,8 +448,16 @@ private:
*/
bool checkMissionDataChanged(mission_s new_mission);
/**
* @brief update current mission altitude after the home position has changed.
*/
void updateMissionAltAfterHomeChanged();
bool canRunMissionFeasibility();
uint32_t _home_update_counter = 0; /**< Variable to store the previous value for home change detection.*/
bool _align_heading_necessary{false}; // if true, heading of vehicle needs to be aligned with heading of next waypoint. Used to create new mission items for heading alignment.
mission_item_s _last_gimbal_configure_item {};