- 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
|
// Calibrated airspeed
|
||||||
fgTie("/velocities/airspeed-kt", this,
|
fgTie("/velocities/airspeed-kt", this,
|
||||||
&FGInterface::get_V_calibrated_kts,
|
&FGInterface::get_V_calibrated_kts,
|
||||||
&FGInterface::set_V_calibrated_kts);
|
&FGInterface::set_V_calibrated_kts,
|
||||||
|
false);
|
||||||
|
|
||||||
// Local velocities
|
// Local velocities
|
||||||
// fgTie("/velocities/speed-north-fps", this,
|
// fgTie("/velocities/speed-north-fps", this,
|
||||||
|
@ -332,15 +333,18 @@ FGInterface::bind ()
|
||||||
// the NED problem is fixed.
|
// the NED problem is fixed.
|
||||||
fgTie("/velocities/uBody-fps", this,
|
fgTie("/velocities/uBody-fps", this,
|
||||||
&FGInterface::get_uBody,
|
&FGInterface::get_uBody,
|
||||||
&FGInterface::set_uBody);
|
&FGInterface::set_uBody,
|
||||||
|
false);
|
||||||
fgSetArchivable("/velocities/uBody-fps");
|
fgSetArchivable("/velocities/uBody-fps");
|
||||||
fgTie("/velocities/vBody-fps", this,
|
fgTie("/velocities/vBody-fps", this,
|
||||||
&FGInterface::get_vBody,
|
&FGInterface::get_vBody,
|
||||||
&FGInterface::set_vBody);
|
&FGInterface::set_vBody,
|
||||||
|
false);
|
||||||
fgSetArchivable("/velocities/vBody-fps");
|
fgSetArchivable("/velocities/vBody-fps");
|
||||||
fgTie("/velocities/wBody-fps", this,
|
fgTie("/velocities/wBody-fps", this,
|
||||||
&FGInterface::get_wBody,
|
&FGInterface::get_wBody,
|
||||||
&FGInterface::set_wBody);
|
&FGInterface::set_wBody,
|
||||||
|
false);
|
||||||
fgSetArchivable("/velocities/wBody-fps");
|
fgSetArchivable("/velocities/wBody-fps");
|
||||||
|
|
||||||
// Climb and slip (read-only)
|
// Climb and slip (read-only)
|
||||||
|
|
|
@ -274,7 +274,11 @@ private:
|
||||||
double altitude_agl;
|
double altitude_agl;
|
||||||
double Tank1Fuel; // Gals
|
double Tank1Fuel; // Gals
|
||||||
double Tank2Fuel; // Gals
|
double Tank2Fuel; // Gals
|
||||||
|
|
||||||
|
double daux[16]; // auxilliary doubles
|
||||||
|
float faux[16]; // auxilliary floats
|
||||||
|
int iaux[16]; // auxilliary ints
|
||||||
|
|
||||||
// Engine list
|
// Engine list
|
||||||
engine_list engines;
|
engine_list engines;
|
||||||
|
|
||||||
|
@ -442,6 +446,10 @@ protected:
|
||||||
cos_latitude = cos(parm);
|
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:
|
public:
|
||||||
|
|
||||||
FGInterface();
|
FGInterface();
|
||||||
|
@ -1119,6 +1127,11 @@ public:
|
||||||
return cos_latitude;
|
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
|
// Consumables
|
||||||
inline double get_Tank1Fuel() const { return Tank1Fuel; }
|
inline double get_Tank1Fuel() const { return Tank1Fuel; }
|
||||||
inline double get_Tank2Fuel() const { return Tank2Fuel; }
|
inline double get_Tank2Fuel() const { return Tank2Fuel; }
|
||||||
|
|
Loading…
Reference in a new issue