]> git.mxchange.org Git - flightgear.git/blob - src/FDM/LaRCsim/ls_cockpit.h
f315b08dde25d13faaf6e228b1e39497dc2ee24e
[flightgear.git] / src / FDM / LaRCsim / ls_cockpit.h
1 /***************************************************************************
2
3         TITLE:          ls_cockpit.h
4         
5 ----------------------------------------------------------------------------
6
7         FUNCTION:       Header for cockpit IO
8
9 ----------------------------------------------------------------------------
10
11         MODULE STATUS:  Developmental
12
13 ----------------------------------------------------------------------------
14
15         GENEALOGY:      Created 20 DEC 93 by E. B. Jackson
16
17 ----------------------------------------------------------------------------
18
19         DESIGNED BY:    E. B. Jackson
20         
21         CODED BY:       E. B. Jackson
22         
23         MAINTAINED BY:  E. B. Jackson
24
25 ----------------------------------------------------------------------------
26
27         MODIFICATION HISTORY:
28         
29         DATE    PURPOSE                                         BY
30
31         950314  Added "throttle_pct" field to cockpit header for both
32                 display and trim purposes.                      EBJ
33         
34         CURRENT RCS HEADER:
35
36 $Header$
37 $Log$
38 Revision 1.2  1999/04/22 18:47:25  curt
39 Wrap with extern "C" { } if building with __cplusplus compiler.
40
41 Revision 1.1.1.1  1999/04/05 21:32:45  curt
42 Start of 0.6.x branch.
43
44 Revision 1.5  1998/10/17 01:34:14  curt
45 C++ ifying ...
46
47 Revision 1.4  1998/08/06 12:46:39  curt
48 Header change.
49
50 Revision 1.3  1998/01/22 02:59:32  curt
51 Changed #ifdef FILE_H to #ifdef _FILE_H
52
53 Revision 1.2  1997/05/31 19:16:27  curt
54 Elevator trim added.
55
56 Revision 1.1  1997/05/29 00:09:54  curt
57 Initial Flight Gear revision.
58
59  * Revision 1.3  1995/03/15  12:32:10  bjax
60  * Added throttle_pct field.
61  *
62  * Revision 1.2  1995/02/28  20:37:02  bjax
63  * Changed name of gear_sel_down switch to gear_sel_up to reflect
64  * correct sense of switch.  EBJ
65  *
66  * Revision 1.1  1993/12/21  14:39:04  bjax
67  * Initial revision
68  *
69
70 --------------------------------------------------------------------------*/
71
72
73 #ifndef _LS_COCKPIT_H
74 #define _LS_COCKPIT_H
75
76 #ifdef __cplusplus
77 extern "C" { 
78 #endif
79
80 typedef struct {
81     float   long_stick, lat_stick, rudder_pedal;
82     float   long_trim;
83     float   throttle[4];
84     short   forward_trim, aft_trim, left_trim, right_trim;
85     short   left_pb_on_stick, right_pb_on_stick, trig_pos_1, trig_pos_2;
86     short   sb_extend, sb_retract, gear_sel_up;
87     float   throttle_pct;
88     float   brake_pct;
89 } COCKPIT;
90
91 extern COCKPIT cockpit_;
92
93 #define Left_button     cockpit_.left_pb_on_stick
94 #define Right_button    cockpit_.right_pb_on_stick
95 #define Rudder_pedal    cockpit_.rudder_pedal
96 #define Throttle        cockpit_.throttle
97 #define Throttle_pct    cockpit_.throttle_pct
98 #define First_trigger   cockpit_.trig_pos_1
99 #define Second_trigger  cockpit_.trig_pos_2
100 #define Long_control    cockpit_.long_stick
101 #define Long_trim       cockpit_.long_trim
102 #define Lat_control     cockpit_.lat_stick
103 #define Fwd_trim        cockpit_.forward_trim
104 #define Aft_trim        cockpit_.aft_trim
105 #define Left_trim       cockpit_.left_trim
106 #define Right_trim      cockpit_.right_trim
107 #define SB_extend       cockpit_.sb_extend
108 #define SB_retract      cockpit_.sb_retract
109 #define Gear_sel_up     cockpit_.gear_sel_up
110 #define Brake_pct       cockpit_.brake_pct
111
112
113 #ifdef __cplusplus
114 }
115 #endif
116
117 #endif /* _LS_COCKPIT_H */