]> git.mxchange.org Git - flightgear.git/blob - LaRCsim/ls_cockpit.h
Changed #ifdef FILE_H to #ifdef _FILE_H
[flightgear.git] / 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.3  1998/01/22 02:59:32  curt
39 Changed #ifdef FILE_H to #ifdef _FILE_H
40
41 Revision 1.2  1997/05/31 19:16:27  curt
42 Elevator trim added.
43
44 Revision 1.1  1997/05/29 00:09:54  curt
45 Initial Flight Gear revision.
46
47  * Revision 1.3  1995/03/15  12:32:10  bjax
48  * Added throttle_pct field.
49  *
50  * Revision 1.2  1995/02/28  20:37:02  bjax
51  * Changed name of gear_sel_down switch to gear_sel_up to reflect
52  * correct sense of switch.  EBJ
53  *
54  * Revision 1.1  1993/12/21  14:39:04  bjax
55  * Initial revision
56  *
57
58 --------------------------------------------------------------------------*/
59
60
61 #ifndef _LS_COCKPIT_H
62 #define _LS_COCKPIT_H
63
64
65 typedef struct {
66     float   long_stick, lat_stick, rudder_pedal;
67     float   long_trim;
68     float   throttle[4];
69     short   forward_trim, aft_trim, left_trim, right_trim;
70     short   left_pb_on_stick, right_pb_on_stick, trig_pos_1, trig_pos_2;
71     short   sb_extend, sb_retract, gear_sel_up;
72     float   throttle_pct;
73 } COCKPIT;
74
75 extern COCKPIT cockpit_;
76
77 #define Left_button     cockpit_.left_pb_on_stick
78 #define Right_button    cockpit_.right_pb_on_stick
79 #define Rudder_pedal    cockpit_.rudder_pedal
80 #define Throttle        cockpit_.throttle
81 #define Throttle_pct    cockpit_.throttle_pct
82 #define First_trigger   cockpit_.trig_pos_1
83 #define Second_trigger  cockpit_.trig_pos_2
84 #define Long_control    cockpit_.long_stick
85 #define Long_trim       cockpit_.long_trim
86 #define Lat_control     cockpit_.lat_stick
87 #define Fwd_trim        cockpit_.forward_trim
88 #define Aft_trim        cockpit_.aft_trim
89 #define Left_trim       cockpit_.left_trim
90 #define Right_trim      cockpit_.right_trim
91 #define SB_extend       cockpit_.sb_extend
92 #define SB_retract      cockpit_.sb_retract
93 #define Gear_sel_up     cockpit_.gear_sel_up
94
95
96 #endif /* _LS_COCKPIT_H */