1
0
Fork 0

Compute /position/altitude-agl-ft in MagicCarpet FDM

Add the same computation of /position/altitude-agl-ft for
the magic carpet fdm as it is used in the ufo fdm. This
property is used in the environment controller to interpolate
between the individual weather-condition layers.
This commit is contained in:
Torsten Dreyer 2010-07-13 21:11:49 +02:00
parent c47d4f2f30
commit e0d30cc412

View file

@ -115,4 +115,5 @@ void FGMagicCarpet::update( double dt ) {
_update_ground_elev_at_pos();
_set_Sea_level_radius( sl_radius * SG_METER_TO_FEET);
_set_Altitude( get_Altitude() + climb );
_set_Altitude_AGL( get_Altitude() - get_Runway_altitude() );
}