1
0
Fork 0

Jim Wilson:

This is a fix for my earlier "Remove some hardcoded dependencies between fdm,
viewer and acmodel" patch.  The problem was discovered when testing the
wrightFlyer.
This commit is contained in:
curt 2004-03-23 13:19:40 +00:00
parent 2b721e8443
commit 349195795e
2 changed files with 1 additions and 7 deletions

View file

@ -286,7 +286,7 @@ void FGLaRCsim::update( double dt ) {
// Inform LaRCsim of the local terrain altitude
// Runway_altitude = get_Runway_altitude();
Runway_altitude = getACModel()->get3DModel()->getSGLocation()->get_cur_elev_m() * SG_METER_TO_FEET;
Runway_altitude = fgGetDouble("/position/ground-elev-m") * SG_METER_TO_FEET;
// Weather
/* V_north_airmass = get_V_north_airmass();
V_east_airmass = get_V_east_airmass();

View file

@ -223,9 +223,6 @@ private:
// SGTimeStamp valid_stamp; // time this record is valid
// SGTimeStamp next_stamp; // time this record is valid
// Model tied to FDM
FGAircraftModel * _acmodel;
protected:
int _calc_multiloop (double dt);
@ -1080,9 +1077,6 @@ public:
inline float get_faux( int n ) const { return faux[n]; }
inline int get_iaux( int n ) const { return iaux[n]; }
// Model tied to FDM
FGAircraftModel * getACModel() const { return _acmodel; }
// Note that currently this is the "same" value runway altitude...
inline double get_ground_elev_ft() const { return runway_altitude; }