]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/flight.hxx
Don't restore initial screen geometry because there is nothing in fg_os* to resize...
[flightgear.git] / src / FDM / flight.hxx
index 36df52e429fb163e42541585bd6527fcdb160c8a..f26824d15d6a58d42175a07d4a6d00e5620fe0a5 100644 (file)
@@ -16,7 +16,7 @@
 //
 // You should have received a copy of the GNU General Public License
 // along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 //
 // $Id$
 
@@ -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, 
@@ -368,11 +369,10 @@ public:
     inline void _set_Density( double d ) { density = d; }
     inline void _set_Mach_number( double m ) { mach_number = m; }
     inline void _set_Static_pressure( double sp ) { static_pressure = sp; }
-    inline void _set_Static_temperature( double t ) { static_temperature = t; }
+    inline void _set_Static_temperature( double t ) { static_temperature = t; } 
+    inline void _set_Total_temperature( double tat ) { total_temperature = tat; } //JW
     inline void _set_Sea_level_radius( double r ) { sea_level_radius = r; }
-    inline void _set_Earth_position_angle(double a) {
-       earth_position_angle = a;
-    }
+    inline void _set_Earth_position_angle(double a) { earth_position_angle = a; }
     inline void _set_Runway_altitude( double alt ) { runway_altitude = alt; }
     inline void _set_Climb_Rate(double rate) { climb_rate = rate; }
     inline void _set_sin_lat_geocentric(double parm) {
@@ -977,6 +977,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 +1133,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.