mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 19:23:33 +08:00
mission_base: land_start_item invalid only when negative. (#22856)
rtl: land_start_item invalid only when negative. Update src/modules/navigator/rtl.cpp
This commit is contained in:
@@ -123,7 +123,7 @@ protected:
|
||||
* @return true If mission has a land start of land item and a land item
|
||||
* @return false otherwise
|
||||
*/
|
||||
bool hasMissionLandStart() const { return _mission.land_start_index > 0 && _mission.land_index > 0;};
|
||||
bool hasMissionLandStart() const { return _mission.land_start_index >= 0 && _mission.land_index >= 0;};
|
||||
/**
|
||||
* @brief Go to next Mission Item
|
||||
* Go to next non jump mission item
|
||||
|
||||
Reference in New Issue
Block a user