X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Fbfi.hxx;h=dadebcfeb6142fe322530f241f31f9f2f3712d09;hb=f367e6d432525b40379529d5d64fe6d997ddf138;hp=ac2753c8858bda2d7623edb3db8bd64d54287daa;hpb=6574e8f4f639d627902dc16f149e9024a0c31c6e;p=flightgear.git diff --git a/src/Main/bfi.hxx b/src/Main/bfi.hxx index ac2753c88..dadebcfeb 100644 --- a/src/Main/bfi.hxx +++ b/src/Main/bfi.hxx @@ -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,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 @@ -53,217 +60,147 @@ public: static void update (); // Simulation - static int getFlightModel (); - static void setFlightModel (int flightModel); - - static const string &getAircraft (); - static void setAircraft (const string &aircraft); + static string getAircraftDir (); + static void setAircraftDir (string aircraftDir); - static const string &getAircraftDir (); - static void setAircraftDir (const string &aircraftDir); + static double getViewOffset (); + static void setViewOffset (double offset); + static double getGoalViewOffset (); + static void setGoalViewOffset (double offset); -// static time_t getTimeGMT (); -// static void setTimeGMT (time_t time); - static const string &getDateString (); - static void setDateString (const string &time_string); + static string getDateString ();// ISO 8601 subset + static void setDateString (string time_string); // ISO 8601 subset // deprecated - static const string &getGMTString (); - - static bool getHUDVisible (); - static void setHUDVisible (bool hudVisible); - - static bool getPanelVisible (); - static void setPanelVisible (bool panelVisible); - - static int getPanelXOffset (); - static void setPanelXOffset (int i); - - static int getPanelYOffset (); - static void setPanelYOffset (int i); - + static string getGMTString (); // Position - static double getLatitude (); - static void setLatitude (double latitude); + static double getLatitude (); // degrees + static void setLatitude (double latitude); // degrees - static double getLongitude (); - static void setLongitude (double longitude); + static double getLongitude (); // degrees + static void setLongitude (double longitude); // degrees - static double getAltitude (); - static void setAltitude (double altitude); + static double getAltitude (); // feet + static void setAltitude (double altitude); // feet - static double getAGL (); + static double getAGL (); // feet // Attitude - static double getHeading (); // true heading - static void setHeading (double heading); + static double getHeading (); // degrees + static void setHeading (double heading); // degrees - static double getHeadingMag (); // exact magnetic heading + static double getHeadingMag (); // degrees - static double getPitch (); - static void setPitch (double pitch); + static double getPitch (); // degrees + static void setPitch (double pitch); // degrees - static double getRoll (); - static void setRoll (double roll); + static double getRoll (); // degrees + static void setRoll (double roll); // degrees // Engine - static double getRPM (); - static void setRPM ( double rpm ); + static double getRPM (); // revolutions/minute + static void setRPM ( double rpm ); // revolutions/minute + + static double getEGT (); // deg Fahrenheit + static double getCHT (); // deg Fahrenheit + static double getMP (); // inches mercury + static double getFuelFlow (); // gals/hr - static double getEGT (); - static double getCHT (); - static double getMP (); + // Consumables + static double getTank1Fuel (); // gals + static void setTank1Fuel( double gals ); + static double getTank2Fuel (); // gals + static void setTank2Fuel( double gals ); // Velocities - static double getAirspeed (); - static void setAirspeed (double speed); + static double getAirspeed (); // knots + static void setAirspeed (double speed); // knots - static double getSideSlip (); + static double getSideSlip (); // [unit??] - static double getVerticalSpeed (); + static double getVerticalSpeed (); // feet/second - static double getSpeedNorth (); + static double getSpeedNorth (); // feet/second - static double getSpeedEast (); + static double getSpeedEast (); // feet/second - static double getSpeedDown (); + static double getSpeedDown (); // feet/second // static void setSpeedNorth (double speed); // static void setSpeedEast (double speed); // static void setSpeedDown (double speed); - // Controls - static double getThrottle (); - static void setThrottle (double throttle); - - static double getMixture (); - static void setMixture (double mixture); - - static double getPropAdvance (); - static void setPropAdvance (double pitch); - - static double getFlaps (); - static void setFlaps (double flaps); - - static double getAileron (); - static void setAileron (double aileron); - - static double getRudder (); - static void setRudder (double rudder); - - static double getElevator (); - static void setElevator (double elevator); - - static double getElevatorTrim (); - static void setElevatorTrim (double trim); - - static double getBrakes (); - static void setBrakes (double brake); - - static double getLeftBrake (); - static void setLeftBrake (double brake); - - static double getRightBrake (); - static void setRightBrake (double brake); - - static double getCenterBrake (); - static void setCenterBrake (double brake); - - // Autopilot static bool getAPAltitudeLock (); static void setAPAltitudeLock (bool lock); - static double getAPAltitude (); - static void setAPAltitude (double altitude); + 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 (); - static void setAPHeading (double heading); + static double getAPHeadingBug (); // degrees + static void setAPHeadingBug (double heading); // degrees - static double getAPHeadingMag (); - static void setAPHeadingMag (double heading); + 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 (); - - static double getNAV1SelRadial (); - static void setNAV1SelRadial (double radial); - - static double getNAV1DistDME (); - - 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 (); - - static double getNAV2SelRadial (); - static void setNAV2SelRadial (double radial); - - static double getNAV2DistDME (); - - static bool getNAV2TO (); - - static bool getNAV2FROM (); - - static bool getNAV2InRange (); - - static bool getNAV2DMEInRange (); - - static double getADFFreq (); - static void setADFFreq (double freq); + static bool getAPAutoThrottleLock (); + static void setAPAutoThrottleLock (bool lock); - static double getADFAltFreq (); - static void setADFAltFreq (double freq); + static double getAPRudderControl (); + static void setAPRudderControl (double value); + static double getAPElevatorControl (); + static void setAPElevatorControl (double value); + static double getAPThrottleControl (); + static void setAPThrottleControl (double value); - static double getADFRotation (); - static void setADFRotation (double rot); // GPS - static const string &getTargetAirport (); - static void setTargetAirport (const string &targetAirport); + static string getTargetAirport (); + static void setTargetAirport (string targetAirport); static bool getGPSLock (); static void setGPSLock (bool lock); - static double getGPSTargetLatitude (); + static double getGPSTargetLatitude (); // degrees - static double getGPSTargetLongitude (); + static double getGPSTargetLongitude (); // degrees // Weather - static double getVisibility (); - static void setVisibility (double visiblity); + static double getVisibility ();// meters + static void setVisibility (double visiblity); // meters + static double getWindNorth (); // feet/second + static void setWindNorth (double speed); // feet/second + static double getWindEast (); // feet/second + static void setWindEast (double speed); // feet/second + static double getWindDown (); // feet/second + 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 // Time (this varies with time) huh, huh - static double getMagVar (); - static double getMagDip (); + static double getMagVar (); // degrees + static double getMagDip (); // degrees private: