]> git.mxchange.org Git - flightgear.git/blobdiff - src/Environment/environment_mgr.hxx
Fix two bugs in the new autopilot code
[flightgear.git] / src / Environment / environment_mgr.hxx
index e45e353309adba6b5e15c08a76bf73e05f61022d..490340c4aec2a4988313b2c0104b9912fcda734d 100644 (file)
@@ -25,6 +25,7 @@
 
 #include <simgear/compiler.h>
 #include <simgear/structure/subsystem_mgr.hxx>
+#include <simgear/math/SGMath.hxx>
 
 #ifdef SG_HAVE_STD_INCLUDES
 #  include <cmath>
@@ -34,6 +35,8 @@
 
 class FGEnvironment;
 class FGEnvironmentCtrl;
+class FGMetarCtrl;
+class FGMetarFetcher;
 class FGClouds;
 class FGPrecipitationMgr;
 
@@ -70,10 +73,9 @@ public:
   virtual FGEnvironment getEnvironment (double lat, double lon,
                                        double alt) const;
 
+  virtual FGEnvironment getEnvironment(const SGGeod& aPos) const;
 private:
 
-  void _update_fdm () const;
-
   double get_cloud_layer_span_m (int index) const;
   void set_cloud_layer_span_m (int index, double span_m);
   double get_cloud_layer_elevation_ft (int index) const;
@@ -87,6 +89,8 @@ private:
 
   FGEnvironment * _environment;        // always the same, for now
   FGEnvironmentCtrl * _controller; // always the same, for now
+  FGMetarCtrl * _metarcontroller; 
+  FGMetarFetcher * _metarfetcher;
   FGPrecipitationMgr* _precipitationManager;
 
   FGClouds *fgClouds;