X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Fbfi.hxx;h=dadebcfeb6142fe322530f241f31f9f2f3712d09;hb=f367e6d432525b40379529d5d64fe6d997ddf138;hp=dc2bd2f91ac847acd42bf58f0e5a85e11a07e8f0;hpb=7a4da944253124295957728d9e8e550ddbb913d7;p=flightgear.git diff --git a/src/Main/bfi.hxx b/src/Main/bfi.hxx index dc2bd2f91..dadebcfeb 100644 --- a/src/Main/bfi.hxx +++ b/src/Main/bfi.hxx @@ -27,8 +27,13 @@ #include -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 ();