1 /**************************************************************************
2 * autopilot.h -- autopilot defines and prototypes (very alpha)
4 * Written by Jeff Goeke-Smith, started April 1998.
6 * Copyright (C) 1998 Jeff Goeke-Smith - jgoeke@voyager.net
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of the
11 * License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 **************************************************************************/
30 #include <Aircraft/aircraft.h>
31 #include <Flight/flight.h>
32 #include <Controls/controls.h>
41 int Mode ; // the current mode the AP is operating in
42 double Heading; // the heading the AP should steer to.
43 double MaxRoll ; // the max the plane can roll for the turn
44 double RollOut; // when the plane should roll out
45 // measured from Heading
46 double MaxAileron; // how far to move the aleroin from center
47 double RollOutSmooth; // deg to use for smoothing Aileron Control
49 } fgAPData, *fgAPDataPtr ;
53 void fgAPInit( fgAIRCRAFT *current_aircraft );
55 void fgAPSetMode( int mode);
63 #endif // _AUTOPILOT_H