]> git.mxchange.org Git - flightgear.git/commitdiff
- make certain UVW velocities don't overright airspeed-kt at startup
authorcurt <curt>
Mon, 16 Jul 2001 04:34:46 +0000 (04:34 +0000)
committercurt <curt>
Mon, 16 Jul 2001 04:34:46 +0000 (04:34 +0000)
src/FDM/flight.cxx
src/FDM/flight.hxx

index 5c065ca21b2215ad1ad4a5ae9e2bef0e022e1974..1caf20c99885648d04d7eb726ada81a615a22a41 100644 (file)
@@ -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)
index cf3a33dd9db2868e54187ffd0bf677033c97a238..a09520f2d44148b147b76bd20a317f4b4e471d90 100644 (file)
@@ -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; }