Adopt high latency switching to new MAV_CMD design

This commit is contained in:
acfloria
2018-04-11 15:15:28 +02:00
committed by Beat Küng
parent fa1586249a
commit 17a157b9da
4 changed files with 14 additions and 38 deletions
+1 -1
View File
@@ -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;
}