]> git.mxchange.org Git - flightgear.git/blobdiff - src/Main/bfi.hxx
Merged some of Alex's code changes.
[flightgear.git] / src / Main / bfi.hxx
index d18f09d4590c8f9b1b0b1fd806b5d859ec4efce4..867acce49e1570aa484f01606596be05487217b7 100644 (file)
@@ -46,6 +46,9 @@ class FGBFI
 {
 public:
 
+                               // Initialize before first use.
+  static void init ();
+
                                // Reinit if necessary.
   static void update ();
 
@@ -77,7 +80,8 @@ public:
 
 
                                // Attitude
-  static double getHeading ();
+  static double getHeading ();   // true heading
+  static double getHeadingMag (); // exact magnetic heading
   static double getPitch ();
   static double getRoll ();
 
@@ -107,26 +111,32 @@ public:
   static double getElevator ();
   static double getElevatorTrim ();
   static double getBrake ();
+  static double getLeftBrake ();
+  static double getRightBrake ();
 
   static void setThrottle (double throttle);
   static void setFlaps (double flaps);
+  static void setFlapsRaise (bool step);
+  static void setFlapsLower (bool step);
   static void setAileron (double aileron);
   static void setRudder (double rudder);
   static void setElevator (double elevator);
   static void setElevatorTrim (double trim);
   static void setBrake (double brake);
+  static void setLeftBrake (double brake);
+  static void setRightBrake (double brake);
 
 
                                // Autopilot
   static bool getAPAltitudeLock ();
   static double getAPAltitude ();
   static bool getAPHeadingLock ();
-  static double getAPHeading ();
+  static double getAPHeadingMag ();
 
   static void setAPAltitudeLock (bool lock);
   static void setAPAltitude (double altitude);
   static void setAPHeadingLock (bool lock);
-  static void setAPHeading (double heading);
+  static void setAPHeadingMag (double heading);
 
   static bool getAPNAV1Lock ();
   static void setAPNAV1Lock (bool lock);
@@ -136,13 +146,17 @@ public:
   static double getNAV1AltFreq ();
   static double getNAV1Radial ();
   static double getNAV1SelRadial ();
-  static double getNAV1Dist ();
+  static double getNAV1DistDME ();
+  static bool getNAV1InRange ();
+  static bool getNAV1DMEInRange ();
 
   static double getNAV2Freq ();
   static double getNAV2AltFreq ();
   static double getNAV2Radial ();
   static double getNAV2SelRadial ();
-  static double getNAV2Dist ();
+  static double getNAV2DistDME ();
+  static bool getNAV2InRange ();
+  static bool getNAV2DMEInRange ();
 
   static double getADFFreq ();
   static double getADFAltFreq ();