Navigator: Don't try to go to next WP or loiter after landing, just stay in landing mode

This commit is contained in:
Julian Oes 2013-11-26 15:25:27 +01:00
parent 9a79ad4cdb
commit a989e79663
1 changed files with 6 additions and 1 deletions

View File

@ -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;