commander sets vstatus.condition_landed = false for fw systems (until we have a landing detector): solves multiple issues with the state machine in the navigator app

This commit is contained in:
Thomas Gubler
2014-02-01 13:54:39 +01:00
parent c2911cbecf
commit 48f777d071
2 changed files with 9 additions and 8 deletions
+1 -8
View File
@@ -1443,14 +1443,7 @@ Navigator::check_mission_item_reached()
}
if (_mission_item.nav_cmd == NAV_CMD_LAND) {
if (_vstatus.is_rotary_wing) {
return _vstatus.condition_landed;
} else {
/* For fw there is currently no landing detector:
* make sure control is not stopped when overshooting the landing waypoint */
return false;
}
return _vstatus.condition_landed;
}
/* XXX TODO count turns */