]> git.mxchange.org Git - flightgear.git/commitdiff
Make the attitude indicator gyro error kick in earlier in the gyro spin down
authorcurt <curt>
Tue, 27 May 2003 19:13:51 +0000 (19:13 +0000)
committercurt <curt>
Tue, 27 May 2003 19:13:51 +0000 (19:13 +0000)
process.
Add the annunciator model to the list of managed instrumentation modules.

src/Instrumentation/attitude_indicator.cxx
src/Instrumentation/instrument_mgr.cxx

index b4d8c79226e0d7dbf13cee50964f91474bbbece0..a6cdfba2628a0e66192f4c1e90c9afefcc12455c 100644 (file)
@@ -127,7 +127,7 @@ AttitudeIndicator::update (double dt)
     _pitch_int_node->setDoubleValue(pitch);
 
     // add in a gyro underspin "error" if gyro is spinning too slowly
-    const double spin_thresh = 0.4;
+    const double spin_thresh = 0.8;
     const double max_roll_error = 40.0;
     const double max_pitch_error = 12.0;
     double roll_error;
index 2e927f8d8db5957ab85d4e2da9adcd46d7c90970..6a0ea21244c429ffb01e948960381a2fea05007d 100644 (file)
@@ -6,6 +6,7 @@
 
 #include "instrument_mgr.hxx"
 #include "airspeed_indicator.hxx"
+#include "annunciator.hxx"
 #include "attitude_indicator.hxx"
 #include "altimeter.hxx"
 #include "turn_indicator.hxx"
@@ -21,6 +22,7 @@
 FGInstrumentMgr::FGInstrumentMgr ()
 {
     set_subsystem("asi", new AirspeedIndicator);
+    set_subsystem("annunciator", new Annunciator);
     set_subsystem("ai", new AttitudeIndicator);
     set_subsystem("alt", new Altimeter);
     set_subsystem("ti", new TurnIndicator);