]> git.mxchange.org Git - flightgear.git/blobdiff - src/Environment/atmosphere.hxx
Basics on catalog list model in the GUI.
[flightgear.git] / src / Environment / atmosphere.hxx
index 55ccfb3f9e580a76d6d08c4ee1006fcb714bef02..8c21186bb73979d271cfa982d24120d41e80323c 100644 (file)
@@ -31,8 +31,6 @@
 #include <cmath>
 #include <utility>
 
-using namespace std;
-
 /**
  * Model the atmosphere in a way consistent with the laws
  * of physics.
@@ -110,6 +108,15 @@ public:
 // Field pressure in pascals
 // Valid for fields within the troposphere only.
     double QNH(const double field_elev, const double field_press);
+/**
+ * Invert the QNH calculation to get the field pressure from a metar
+ * report. Valid for fields within the troposphere only.
+ * @param field_elev field elevation in m
+ * @param qnh altimeter setting in pascals
+ * @return field pressure _in pascals_. Caller gets to convert to inHg
+ * or millibars 
+ */
+    static double fieldPressure(const double field_elev, const double qnh);
 };
 
 
@@ -129,9 +136,6 @@ public:
 
 
 class FGAltimeter : public FGAtmoCache {
-    double kset;
-    double kft;
-
 public:
     FGAltimeter();
     double reading_ft(const double p_inHg,