]> git.mxchange.org Git - flightgear.git/blobdiff - src/Instrumentation/attitude_indicator.cxx
Make the AI models a bit more intelligent. The Gear should be extended and retracted...
[flightgear.git] / src / Instrumentation / attitude_indicator.cxx
index cc3220ea4bb84571316e99650885774af3bad331..a6cdfba2628a0e66192f4c1e90c9afefcc12455c 100644 (file)
@@ -127,9 +127,9 @@ 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 = 15.0;
+    const double max_pitch_error = 12.0;
     double roll_error;
     double pitch_error;
     if ( spin <= spin_thresh ) {
@@ -144,7 +144,6 @@ AttitudeIndicator::update (double dt)
 
     _roll_out_node->setDoubleValue(roll + roll_error);
     _pitch_out_node->setDoubleValue(pitch + pitch_error);
-    
 }
 
 // end of attitude_indicator.cxx