]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/bfi.hxx
- removed bfi.cxx and bfi.hxx
[flightgear.git] / src / Main / bfi.hxx
index 1e81416379669754112b6da4a4ee205a9f093bf7..dadebcfeb6142fe322530f241f31f9f2f3712d09 100644 (file)
 
 #include <simgear/compiler.h>
 
-FG_USING_NAMESPACE(std);
+SG_USING_NAMESPACE(std);
 
+// Uncomment the appropriate line to get the desired heading hold
+// autopilot behavior
+
+// #define DEFAULT_AP_HEADING_LOCK FGAutopilot::FG_TRUE_HEADING_LOCK
+#define DEFAULT_AP_HEADING_LOCK FGAutopilot::FG_DG_HEADING_LOCK
 
 /**
  * Big Flat Interface
@@ -55,17 +60,14 @@ public:
   static void update ();
 
                                // Simulation
-  static int getFlightModel ();
-  static void setFlightModel (int flightModel);
-
-  static string getAircraft ();
-  static void setAircraft (string aircraft);
-
   static string getAircraftDir ();
   static void setAircraftDir (string aircraftDir);
 
-//   static time_t getTimeGMT ();
-//   static void setTimeGMT (time_t time);
+  static double getViewOffset ();
+  static void setViewOffset (double offset);
+  static double getGoalViewOffset ();
+  static void setGoalViewOffset (double offset);
+
   static string getDateString ();// ISO 8601 subset
   static void setDateString (string time_string); // ISO 8601 subset
 
@@ -101,9 +103,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
@@ -128,24 +137,37 @@ public:
   static bool getAPAltitudeLock ();
   static void setAPAltitudeLock (bool lock);
 
+  static bool getAPGSLock ();
+  static void setAPGSLock (bool lock);
+
   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 getAPHeadingDG (); // degrees
-  static void setAPHeadingDG (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);
 
+  static bool getAPAutoThrottleLock ();
+  static void setAPAutoThrottleLock (bool lock);
+
+  static double getAPRudderControl ();
+  static void setAPRudderControl (double value);
+  static double getAPElevatorControl ();
+  static void setAPElevatorControl (double value);
+  static double getAPThrottleControl ();
+  static void setAPThrottleControl (double value);
+
 
                                // GPS
   static string getTargetAirport ();
@@ -170,6 +192,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