mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-15 19:21:41 +08:00
Adopt high latency switching to new MAV_CMD design
This commit is contained in:
@@ -4202,7 +4202,7 @@ protected:
|
||||
|
||||
// failure flags, requires an initial value of 0, set by the default values
|
||||
if (_status_flags_time > 0) {
|
||||
if (status_flags.gps_failure || !status_flags.condition_global_position_valid) {
|
||||
if (!status_flags.condition_global_position_valid) { //TODO check if there is a better way to get only GPS failure
|
||||
msg.failure_flags |= HL_FAILURE_FLAG_GPS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user