]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/bfi.hxx
SG_ namespace.
[flightgear.git] / src / Main / bfi.hxx
index 16f345ef473e64a400da08a843bae7bd8312990d..ac250b24d83a53a52ccd19824fba634ed5df6335 100644 (file)
@@ -4,6 +4,8 @@
 //
 // Copyright (C) 2000  David Megginson - david@megginson.com
 //
+// THIS INTERFACE IS DEPRECATED; USE THE PROPERTY MANAGER INSTEAD.
+//
 // This program is free software; you can redistribute it and/or
 // modify it under the terms of the GNU General Public License as
 // published by the Free Software Foundation; either version 2 of the
@@ -25,7 +27,7 @@
 
 #include <simgear/compiler.h>
 
-FG_USING_NAMESPACE(std);
+SG_USING_NAMESPACE(std);
 
 
 /**
@@ -70,19 +72,6 @@ public:
                                // deprecated
   static string getGMTString ();
 
-  static bool getHUDVisible ();
-  static void setHUDVisible (bool hudVisible);
-
-  static bool getPanelVisible ();
-  static void setPanelVisible (bool panelVisible);
-
-  static int getPanelXOffset (); // pixels
-  static void setPanelXOffset (int i); // pixels
-
-  static int getPanelYOffset (); // pixels
-  static void setPanelYOffset (int i); // pixels
-
-
                                // Position
   static double getLatitude ();        // degrees
   static void setLatitude (double latitude); // degrees
@@ -112,9 +101,16 @@ public:
   static double getRPM ();     // revolutions/minute
   static void setRPM ( double rpm ); // revolutions/minute
 
-  static double getEGT ();     // [unit??]
-  static double getCHT ();     // [unit??]
-  static double getMP ();      // [unit??]
+  static double getEGT ();     // deg Fahrenheit
+  static double getCHT ();     // deg Fahrenheit
+  static double getMP ();      // inches mercury
+  static double getFuelFlow (); // gals/hr
+
+                                 // Consumables
+  static double getTank1Fuel (); // gals
+  static void setTank1Fuel( double gals );
+  static double getTank2Fuel (); // gals
+  static void setTank2Fuel( double gals );
 
                                // Velocities
   static double getAirspeed ();        // knots
@@ -135,44 +131,6 @@ public:
 //   static void setSpeedDown (double speed);
 
 
-                               // Controls
-  static double getThrottle ();        // 0.0:1.0
-  static void setThrottle (double throttle); // 0.0:1.0
-
-  static double getMixture (); // 0.0:1.0
-  static void setMixture (double mixture); // 0.0:1.0
-
-  static double getPropAdvance (); // 0.0:1.0
-  static void setPropAdvance (double pitch); // 0.0:1.0
-
-  static double getFlaps ();   // 0.0:1.0
-  static void setFlaps (double flaps); // 0.0:1.0
-
-  static double getAileron (); // -1.0:1.0
-  static void setAileron (double aileron); // -1.0:1.0
-
-  static double getRudder ();  // -1.0:1.0
-  static void setRudder (double rudder); // -1.0:1.0
-
-  static double getElevator ();        // -1.0:1.0
-  static void setElevator (double elevator); // -1.0:1.0
-
-  static double getElevatorTrim (); // -1.0:1.0
-  static void setElevatorTrim (double trim); // -1.0:1.0
-
-  static double getBrakes ();  // 0.0:1.0
-  static void setBrakes (double brake);        // 0.0:1.0
-
-  static double getLeftBrake (); // 0.0:1.0
-  static void setLeftBrake (double brake); // 0.0:1.0
-
-  static double getRightBrake (); // 0.0:1.0
-  static void setRightBrake (double brake); // 0.0:1.0
-
-  static double getCenterBrake (); // 0.0:1.0
-  static void setCenterBrake (double brake); // 0.0:1.0
-
-
                                // Autopilot
   static bool getAPAltitudeLock ();
   static void setAPAltitudeLock (bool lock);
@@ -180,69 +138,21 @@ public:
   static double getAPAltitude (); // feet
   static void setAPAltitude (double altitude); // feet
 
+  static double getAPClimb (); // fpm
+  static void setAPClimb (double rate); // fpm
+
   static bool getAPHeadingLock ();
   static void setAPHeadingLock (bool lock);
 
-  static double getAPHeading (); // degrees
-  static void setAPHeading (double heading); // degrees
+  static double getAPHeadingBug (); // degrees
+  static void setAPHeadingBug (double heading); // degrees
 
-  static double getAPHeadingMag (); // degrees
-  static void setAPHeadingMag (double heading);        // degrees
+  static bool getAPWingLeveler ();
+  static void setAPWingLeveler (bool lock);
 
   static bool getAPNAV1Lock ();
   static void setAPNAV1Lock (bool lock);
 
-                               // Radio Navigation
-  static double getNAV1Freq ();
-  static void setNAV1Freq (double freq);
-
-  static double getNAV1AltFreq ();
-  static void setNAV1AltFreq (double freq);
-
-  static double getNAV1Radial (); // degrees
-
-  static double getNAV1SelRadial (); // degrees
-  static void setNAV1SelRadial (double radial);        // degrees
-
-  static double getNAV1DistDME (); // nautical miles
-
-  static bool getNAV1TO ();
-
-  static bool getNAV1FROM ();
-
-  static bool getNAV1InRange ();
-
-  static bool getNAV1DMEInRange ();
-
-  static double getNAV2Freq ();
-  static void setNAV2Freq (double freq);
-
-  static double getNAV2AltFreq ();
-  static void setNAV2AltFreq (double freq);
-
-  static double getNAV2Radial (); // degrees
-
-  static double getNAV2SelRadial (); // degrees
-  static void setNAV2SelRadial (double radial);        // degrees
-
-  static double getNAV2DistDME (); // nautical miles
-
-  static bool getNAV2TO ();
-
-  static bool getNAV2FROM ();
-
-  static bool getNAV2InRange ();
-
-  static bool getNAV2DMEInRange ();
-
-  static double getADFFreq ();
-  static void setADFFreq (double freq);
-
-  static double getADFAltFreq ();
-  static void setADFAltFreq (double freq);
-
-  static double getADFRotation (); // degrees
-  static void setADFRotation (double rot); // degrees
 
                                // GPS
   static string getTargetAirport ();
@@ -267,6 +177,8 @@ public:
   static void setWindDown (double speed); // feet/second
 
                                // View
+  static double getFOV ();     // degrees
+  static void setFOV (double fov); // degrees
   static void setViewAxisLong (double axis);// -1.0:1.0
   static void setViewAxisLat (double axis); // -1.0:1.0