]> git.mxchange.org Git - flightgear.git/blobdiff - Autopilot/autopilot.hxx
C++ ifying ...
[flightgear.git] / Autopilot / autopilot.hxx
index 73ec8884b45a9c23b3dba1ee84fb84c83e2100b1..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                                                          
@@ -42,13 +42,15 @@ typedef struct {
     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 TargetAGL;         // the terrain separation
+    double speed_error_accum; // speed error accumulator
 
     double TargetSlope; // the glide slope hold value
     
@@ -73,6 +75,7 @@ int fgAPRun( void );
 void fgAPToggleHeading( void );
 void fgAPToggleAltitude( void );
 void fgAPToggleTerrainFollow( void );
+void fgAPToggleAutoThrottle( void );
 
 
 #ifdef __cplusplus