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:
parent
c47d4f2f30
commit
e0d30cc412
1 changed files with 1 additions and 0 deletions
|
@ -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() );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue