rtl+mission: remove do_need_move_to_land and handleLanding duplicated code to reduce flash

This commit is contained in:
Konrad
2023-10-31 14:16:02 +01:00
committed by Roman Bapst
parent 698c57c5f8
commit c1214c847f
13 changed files with 215 additions and 384 deletions
+18
View File
@@ -279,6 +279,24 @@ protected:
*
*/
void publish_navigator_mission_item();
/**
* @brief Do need move to item
*
* @return true if the item is horizontally further away than the mission item
* @return false otherwise
*/
bool do_need_move_to_item();
/**
* @brief Handle landing
*
* @param new_work_item_type new work item type state machine to be set
* @param next_mission_items the next mission items after the current mission item
* @param num_found_items number of found next mission items
*/
void handleLanding(WorkItemType &new_work_item_type, mission_item_s next_mission_items[],
size_t &num_found_items);
/**
* @brief I position setpoint equal
*