1 // raw_ctrls.hxx -- defines a common raw I/O interface to the flight
4 // Written by Curtis Olson, started July 2001.
6 // Copyright (C) 2001 Curtis L. Olson - curt@flightgear.com
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.
25 #ifndef _RAW_CTRLS_HXX
26 #define _RAW_CTRLS_HXX
30 # error This library requires C++
34 const int FG_MAX_ENGINES = 10;
35 const int FG_MAX_WHEELS = 3;
37 // Define a structure containing the control parameters
43 double aileron; // -1 ... 1
44 double elevator; // -1 ... 1
45 double elevator_trim; // -1 ... 1
46 double rudder; // -1 ... 1
47 double flaps; // 0 ... 1
48 double throttle[FG_MAX_ENGINES]; // 0 ... 1
49 double mixture[FG_MAX_ENGINES]; // 0 ... 1
50 double prop_advance[FG_MAX_ENGINES]; // 0 ... 1
51 double brake[FG_MAX_WHEELS]; // 0 ... 1
56 #endif // _RAW_CTRLS_HXX