]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/flight.hxx
Add a lower-bound type navaid lookup, and the ability to specify navaid type in the...
[flightgear.git] / src / FDM / flight.hxx
index 36df52e429fb163e42541585bd6527fcdb160c8a..dd32bde2cbb03afc0bab4b6ae835e5c720ef585a 100644 (file)
@@ -238,6 +238,7 @@ public:
     void _busdump(void);
     void _updateGeodeticPosition( double lat, double lon, double alt );
     void _updateGeocentricPosition( double lat_geoc, double lon, double alt );
+    void _update_ground_elev_at_pos( void );
     void _updateWeather( void );
 
     inline void _set_Inertias( double m, double xx, double yy, 
@@ -977,6 +978,7 @@ public:
     }
 
     inline double get_Runway_altitude() const { return runway_altitude; }
+    inline double get_Runway_altitude_m() const { return SG_FEET_TO_METER * runway_altitude; }
     // inline double get_Runway_latitude() const { return runway_latitude; }
     // inline void set_Runway_latitude( double lat ) { runway_latitude = lat; }
     // inline double get_Runway_longitude() const { return runway_longitude; }
@@ -1132,6 +1134,15 @@ public:
                     double contact[3], double normal[3], double vel[3],
                     int *type, double *loadCapacity,
                     double *frictionFactor, double *agl);
+    bool get_agl_m(double t, const double pt[3], double max_altoff,
+                   double contact[3], double normal[3], double vel[3],
+                   int *type, double *loadCapacity,
+                   double *frictionFactor, double *agl);
+    bool get_agl_ft(double t, const double pt[3], double max_altoff,
+                    double contact[3], double normal[3], double vel[3],
+                    int *type, double *loadCapacity,
+                    double *frictionFactor, double *agl);
+    double get_groundlevel_m(double lat, double lon, double alt);
 
 
     // Return 1 if the hook intersects with a wire.