1
0
Fork 0

Add vertical speed fpm conversion since the fdm provides this value in

fps.
This commit is contained in:
curt 2004-02-04 20:16:30 +00:00
parent 8191e743f0
commit 266534259d

View 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 );
}