Geofence - Rename _warning_action_on to _geofence_warning_action_on

since it is only set by the geofence logic. Simplify conditions in IF
statements.
This commit is contained in:
bresch
2019-06-04 08:35:56 +02:00
committed by Julian Oes
parent f8f967f073
commit 2307c7c390
2 changed files with 32 additions and 25 deletions
+1 -2
View File
@@ -163,10 +163,9 @@ private:
float _load_factor_ratio{0.5f}; /**< ratio of maximum load factor predicted by stall speed to measured load factor */
float _apsd_innov_integ_state{0.0f}; /**< inegral of excess normalised airspeed innovation (sec) */
/* geofence flags */
bool _geofence_loiter_on{false};
bool _geofence_rtl_on{false};
bool _warning_action_on{false};
bool _geofence_warning_action_on{false};
bool _geofence_violated_prev{false};
FailureDetector _failure_detector;