]> git.mxchange.org Git - flightgear.git/commitdiff
Add vertical speed fpm conversion since the fdm provides this value in
authorcurt <curt>
Wed, 4 Feb 2004 20:16:30 +0000 (20:16 +0000)
committercurt <curt>
Wed, 4 Feb 2004 20:16:30 +0000 (20:16 +0000)
fps.

src/Autopilot/xmlauto.cxx

index bf37d442c4d3172c1e78b48b83f9396ac3dc6a2c..e329d46b3dca5c624822ca2d0070065650f04ea4 100644 (file)
@@ -646,6 +646,14 @@ static void update_helper( double dt ) {
     if ( diff < -180.0 ) { diff += 360.0; }
     if ( diff > 180.0 ) { diff -= 360.0; }
     true_nav1->setDoubleValue( diff );
+
+    // Calculate vertical speed in fpm
+    static SGPropertyNode *vs_fps
+        = fgGetNode( "/velocities/vertical-speed-fps", true );
+    static SGPropertyNode *vs_fpm
+        = fgGetNode( "/autopilot/internal/vert-speed-fpm", true );
+
+    vs_fpm->setDoubleValue( vs_fps->getDoubleValue() * 60.0 );  
 }