- make certain UVW velocities don't overright airspeed-kt at startup
This commit is contained in:
parent
c5c5a83ab2
commit
98b90a2a37
2 changed files with 22 additions and 5 deletions
|
@ -301,7 +301,8 @@ FGInterface::bind ()
|
|||
// Calibrated airspeed
|
||||
fgTie("/velocities/airspeed-kt", this,
|
||||
&FGInterface::get_V_calibrated_kts,
|
||||
&FGInterface::set_V_calibrated_kts);
|
||||
&FGInterface::set_V_calibrated_kts,
|
||||
false);
|
||||
|
||||
// Local velocities
|
||||
// fgTie("/velocities/speed-north-fps", this,
|
||||
|
@ -332,15 +333,18 @@ FGInterface::bind ()
|
|||
// the NED problem is fixed.
|
||||
fgTie("/velocities/uBody-fps", this,
|
||||
&FGInterface::get_uBody,
|
||||
&FGInterface::set_uBody);
|
||||
&FGInterface::set_uBody,
|
||||
false);
|
||||
fgSetArchivable("/velocities/uBody-fps");
|
||||
fgTie("/velocities/vBody-fps", this,
|
||||
&FGInterface::get_vBody,
|
||||
&FGInterface::set_vBody);
|
||||
&FGInterface::set_vBody,
|
||||
false);
|
||||
fgSetArchivable("/velocities/vBody-fps");
|
||||
fgTie("/velocities/wBody-fps", this,
|
||||
&FGInterface::get_wBody,
|
||||
&FGInterface::set_wBody);
|
||||
&FGInterface::set_wBody,
|
||||
false);
|
||||
fgSetArchivable("/velocities/wBody-fps");
|
||||
|
||||
// Climb and slip (read-only)
|
||||
|
|
|
@ -275,6 +275,10 @@ private:
|
|||
double Tank1Fuel; // Gals
|
||||
double Tank2Fuel; // Gals
|
||||
|
||||
double daux[16]; // auxilliary doubles
|
||||
float faux[16]; // auxilliary floats
|
||||
int iaux[16]; // auxilliary ints
|
||||
|
||||
// Engine list
|
||||
engine_list engines;
|
||||
|
||||
|
@ -442,6 +446,10 @@ protected:
|
|||
cos_latitude = cos(parm);
|
||||
}
|
||||
|
||||
inline void _set_daux( int n, double value ) { daux[n] = value; }
|
||||
inline void _set_faux( int n, float value ) { faux[n] = value; }
|
||||
inline void _set_iaux( int n, int value ) { iaux[n] = value; }
|
||||
|
||||
public:
|
||||
|
||||
FGInterface();
|
||||
|
@ -1119,6 +1127,11 @@ public:
|
|||
return cos_latitude;
|
||||
}
|
||||
|
||||
// Auxilliary variables
|
||||
inline double get_daux( int n ) const { return daux[n]; }
|
||||
inline float get_faux( int n ) const { return faux[n]; }
|
||||
inline int get_iaux( int n ) const { return iaux[n]; }
|
||||
|
||||
// Consumables
|
||||
inline double get_Tank1Fuel() const { return Tank1Fuel; }
|
||||
inline double get_Tank2Fuel() const { return Tank2Fuel; }
|
||||
|
|
Loading…
Reference in a new issue