mirror of
https://gitee.com/xiaohuolufeihua/bizhang_-obav.git
synced 2026-05-22 09:28:58 +00:00
commander: allow POSCTL with local position
We want to allow flying POSCTL with optical flow only without GPS.
This commit is contained in:
@@ -674,7 +674,8 @@ bool set_nav_state(struct vehicle_status_s *status, struct commander_state_s *in
|
||||
}
|
||||
|
||||
/* As long as there is RC, we can fallback to ALTCTL, or STAB. */
|
||||
} else if (status_flags->gps_failure && armed) {
|
||||
/* A local position estimate is enough for POSCTL, this enables POSCTL using e.g. flow. */
|
||||
} else if (!status_flags->condition_local_position_valid && armed) {
|
||||
status->failsafe = true;
|
||||
|
||||
if (status_flags->condition_local_altitude_valid) {
|
||||
|
||||
Reference in New Issue
Block a user