Fix a JSBSim airport elevation bug.
This commit is contained in:
parent
c3131e5e42
commit
9ff7217961
1 changed files with 6 additions and 1 deletions
|
@ -458,6 +458,8 @@ void FGInterface::extrapolate( int time_offset ) {
|
|||
|
||||
// Set the altitude (force)
|
||||
void fgFDMForceAltitude(const string &model, double alt_meters) {
|
||||
SG_LOG(SG_FLIGHT,SG_INFO, "fgFDMForceAltitude: " << alt_meters );
|
||||
|
||||
double sea_level_radius_meters;
|
||||
double lat_geoc;
|
||||
|
||||
|
@ -468,7 +470,10 @@ void fgFDMForceAltitude(const string &model, double alt_meters) {
|
|||
base_fdm_state.set_Altitude( alt_meters * SG_METER_TO_FEET );
|
||||
base_fdm_state.set_Sea_level_radius( sea_level_radius_meters *
|
||||
SG_METER_TO_FEET );
|
||||
|
||||
|
||||
cur_fdm_state->set_Altitude( alt_meters * SG_METER_TO_FEET );
|
||||
cur_fdm_state->set_Sea_level_radius( sea_level_radius_meters *
|
||||
SG_METER_TO_FEET );
|
||||
|
||||
// additional work needed for some flight models
|
||||
if ( model == "larcsim" ) {
|
||||
|
|
Loading…
Reference in a new issue