forked from Archive/PX4-Autopilot
Navigator: Don't try to go to next WP or loiter after landing, just stay in landing mode
This commit is contained in:
parent
9a79ad4cdb
commit
a989e79663
|
@ -944,11 +944,16 @@ Navigator::reset_mission_item_reached()
|
||||||
void
|
void
|
||||||
Navigator::check_mission_item_reached()
|
Navigator::check_mission_item_reached()
|
||||||
{
|
{
|
||||||
// warnx("checking mission item reached");
|
/* don't check if mission item is already reached */
|
||||||
if (_mission_item_reached) {
|
if (_mission_item_reached) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* don't try to reach the landing mission, just stay in that mode */
|
||||||
|
if (_mission_item_triplet.current.nav_cmd == MAV_CMD_NAV_LAND) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
uint64_t now = hrt_absolute_time();
|
uint64_t now = hrt_absolute_time();
|
||||||
float orbit;
|
float orbit;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue