//
// 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
#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
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
// 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
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
// 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);
+ 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 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 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 (); // degrees
- static void setADFRotation (double rot); // degrees
// GPS
static string getTargetAirport ();
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