From: curt Date: Wed, 12 May 1999 15:06:44 +0000 (+0000) Subject: Autopilot changes contributed by Norman Vine. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=be0b6c4c369173a0710945e5d225d3d223eccd03;p=flightgear.git Autopilot changes contributed by Norman Vine. --- diff --git a/Simulator/Autopilot/autopilot.cxx b/Simulator/Autopilot/autopilot.cxx index 354a81bcd..1f270ed48 100644 --- a/Simulator/Autopilot/autopilot.cxx +++ b/Simulator/Autopilot/autopilot.cxx @@ -32,13 +32,13 @@ #include "autopilot.hxx" +#include #include +#include #include #include
-#include #include
-#include // The below routines were copied right from hud.c ( I hate reinventing // the wheel more than necessary) @@ -49,8 +49,7 @@ // -static double get_speed( void ) -{ +static double get_speed( void ) { return( current_aircraft.fdm_state->get_V_equiv_kts() ); } diff --git a/Simulator/Autopilot/autopilot.hxx b/Simulator/Autopilot/autopilot.hxx index 438feaf9b..8d2871fb3 100644 --- a/Simulator/Autopilot/autopilot.hxx +++ b/Simulator/Autopilot/autopilot.hxx @@ -80,6 +80,8 @@ void fgAPAltitudeAdjust( double inc ); void fgAPHeadingAdjust( double inc ); void fgAPAutoThrottleAdjust( double inc ); +void fgAPHeadingSet( double value ); + void fgAPReset(void); class puObject;