]> git.mxchange.org Git - flightgear.git/commitdiff
This backs out only the target climb rate calculation fix for the time being,
authorehofman <ehofman>
Sat, 19 Jul 2003 14:15:11 +0000 (14:15 +0000)
committerehofman <ehofman>
Sat, 19 Jul 2003 14:15:11 +0000 (14:15 +0000)
maybe for good

src/Autopilot/newauto.cxx

index a881edecf801f2d33a81937cbffb787af77aa853..e0bed6acdcd6b2ad15f0cb92a9c523e7d46aa7cc 100644 (file)
@@ -746,9 +746,9 @@ FGAutopilot::update (double dt)
        if ( altitude_mode == FG_ALTITUDE_LOCK ) {
            climb_rate =
                ( TargetAltitude -
-                 fgGetDouble("/instrumentation/altimeter/indicated-altitude-ft") * SG_FEET_TO_METER ) * (TargetClimbRate->getDoubleValue() * 0.016);
+                 fgGetDouble("/instrumentation/altimeter/indicated-altitude-ft") * SG_FEET_TO_METER ) * 8.0;
         } else if ( altitude_mode == FG_TRUE_ALTITUDE_LOCK ) {
-            climb_rate = ( TargetAltitude - alt ) * (TargetClimbRate->getDoubleValue() * 0.016);
+            climb_rate = ( TargetAltitude - alt ) * 8.0;
        } else if ( altitude_mode == FG_ALTITUDE_GS1 ) {
            double x = current_radiostack->get_navcom1()->get_nav_gs_dist();
            double y = (altitude_node->getDoubleValue()