From 98b90a2a377108dd645449224b4f2430f436cbde Mon Sep 17 00:00:00 2001 From: curt Date: Mon, 16 Jul 2001 04:34:46 +0000 Subject: [PATCH] - make certain UVW velocities don't overright airspeed-kt at startup --- src/FDM/flight.cxx | 12 ++++++++---- src/FDM/flight.hxx | 15 ++++++++++++++- 2 files changed, 22 insertions(+), 5 deletions(-) diff --git a/src/FDM/flight.cxx b/src/FDM/flight.cxx index 5c065ca21..1caf20c99 100644 --- a/src/FDM/flight.cxx +++ b/src/FDM/flight.cxx @@ -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) diff --git a/src/FDM/flight.hxx b/src/FDM/flight.hxx index cf3a33dd9..a09520f2d 100644 --- a/src/FDM/flight.hxx +++ b/src/FDM/flight.hxx @@ -274,7 +274,11 @@ private: double altitude_agl; 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; } -- 2.39.2