]> git.mxchange.org Git - flightgear.git/blobdiff - Autopilot/autopilot.hxx
C++ ifying ...
[flightgear.git] / Autopilot / autopilot.hxx
index 4c70a8f369ce5640f647026290fbe8bdf6ce9e47..9f729fa443f6877be332d75aeeb2999bd1aef521 100644 (file)
@@ -27,9 +27,9 @@
 #define _AUTOPILOT_H
                        
 
-#include <Aircraft/aircraft.h>
-#include <Flight/flight.h>
-#include <Controls/controls.h>
+#include <Aircraft/aircraft.hxx>
+#include <Flight/flight.hxx>
+#include <Controls/controls.hxx>
                        
                        
 #ifdef __cplusplus                                                          
@@ -39,12 +39,18 @@ extern "C" {
 
 // Structures
 typedef struct {
-    int heading_hold;  // the current state of the heading hold
-    int altitude_hold; // the current state of the altitude hold
+    int heading_hold;   // the current state of the heading hold
+    int altitude_hold;  // the current state of the altitude hold
+    int terrain_follow; // the current state of the terrain follower
+    int auto_throttle;  // the current state of the auto throttle
 
     double TargetHeading;     // the heading the AP should steer to.
     double TargetAltitude;    // altitude to hold
+    double TargetAGL;         // the terrain separation
+    double TargetClimbRate;   // climb rate to shoot for
+    double TargetSpeed;       // speed to shoot for
     double alt_error_accum;   // altitude error accumulator
+    double speed_error_accum; // speed error accumulator
 
     double TargetSlope; // the glide slope hold value
     
@@ -68,6 +74,8 @@ void fgAPInit( fgAIRCRAFT *current_aircraft );
 int fgAPRun( void );
 void fgAPToggleHeading( void );
 void fgAPToggleAltitude( void );
+void fgAPToggleTerrainFollow( void );
+void fgAPToggleAutoThrottle( void );
 
 
 #ifdef __cplusplus