]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/mk_viii.hxx
GPWS: avoid "altitude_callout_voice != NULL" assertion
[flightgear.git] / src / Instrumentation / mk_viii.hxx
index fe9f564fabebecd766bcc1d3c320a5af0fa35f73..e37fc972be2bfa2fa9bfe9ae2b862b9609bed99c 100755 (executable)
@@ -1,4 +1,4 @@
-// mk_viii.cxx -- Honeywell MK VIII EGPWS emulation
+// mk_viii.hxx -- Honeywell MK VIII EGPWS emulation
 //
 // Written by Jean-Yves Lefort, started September 2005.
 //
@@ -201,6 +201,7 @@ class MK_VIII : public SGSubsystem
       SGPropertyNode_ptr altitude;
       SGPropertyNode_ptr altitude_agl;
       SGPropertyNode_ptr altitude_gear_agl;
+      SGPropertyNode_ptr altitude_radar_agl;
       SGPropertyNode_ptr orientation_roll;
       SGPropertyNode_ptr asi_serviceable;
       SGPropertyNode_ptr asi_speed;
@@ -481,7 +482,7 @@ public:
       bool                     alternate_steep_approach;
       bool                     use_internal_gps;
       bool                     localizer_enabled;
-      bool                     use_gear_altitude;
+      int                      altitude_source;
       bool                     use_attitude_indicator;
     } conf;
 
@@ -609,6 +610,7 @@ public:
     void update_egpws_alert_discrete_2 ();
     void update_egpwc_alert_discrete_3 ();
     void update_outputs ();
+    void reposition ();
 
     void update_lamps ();
     void set_lamp (Lamp lamp);
@@ -635,10 +637,11 @@ public:
       typedef deque< Sample<double> > samples_type;
       samples_type             samples;
       double                   value;
+      double                   last_update;
 
     public:
       inline TerrainClearanceFilter ()
-       : value(0) {}
+       : value(0.0), last_update(-1.0) {}
 
       double update (double agl);
       void reset ();