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.1 2002/09/10 01:14:01 curt 39 Initial revision 40 41 Revision 1.3 2000/06/12 18:52:37 curt 42 Added differential braking (Alex and David). 43 44 Revision 1.2 1999/10/29 16:08:32 curt 45 Added flaps support to c172 model. 46 47 Revision 1.1.1.1 1999/06/17 18:07:34 curt 48 Start of 0.7.x branch 49 50 Revision 1.2 1999/04/22 18:47:25 curt 51 Wrap with extern "C" { } if building with __cplusplus compiler. 52 53 Revision 1.1.1.1 1999/04/05 21:32:45 curt 54 Start of 0.6.x branch. 55 56 Revision 1.5 1998/10/17 01:34:14 curt 57 C++ ifying ... 58 59 Revision 1.4 1998/08/06 12:46:39 curt 60 Header change. 61 62 Revision 1.3 1998/01/22 02:59:32 curt 63 Changed #ifdef FILE_H to #ifdef _FILE_H 64 65 Revision 1.2 1997/05/31 19:16:27 curt 66 Elevator trim added. 67 68 Revision 1.1 1997/05/29 00:09:54 curt 69 Initial Flight Gear revision. 70 71 * Revision 1.3 1995/03/15 12:32:10 bjax 72 * Added throttle_pct field. 73 * 74 * Revision 1.2 1995/02/28 20:37:02 bjax 75 * Changed name of gear_sel_down switch to gear_sel_up to reflect 76 * correct sense of switch. EBJ 77 * 78 * Revision 1.1 1993/12/21 14:39:04 bjax 79 * Initial revision 80 * 81 82 --------------------------------------------------------------------------*/ 83 84 85 #ifndef _LS_COCKPIT_H 86 #define _LS_COCKPIT_H 87 88 #ifdef __cplusplus 89 extern "C" { 90 #endif 91 92 typedef struct { 93 float long_stick, lat_stick, rudder_pedal; 94 float flap_handle; 95 float long_trim; 96 float throttle[4]; 97 short forward_trim, aft_trim, left_trim, right_trim; 98 short left_pb_on_stick, right_pb_on_stick, trig_pos_1, trig_pos_2; 99 short sb_extend, sb_retract, gear_sel_up; 100 float throttle_pct; 101 float brake_pct[2]; 102 } COCKPIT; 103 104 extern COCKPIT cockpit_; 105 106 #define Left_button cockpit_.left_pb_on_stick 107 #define Right_button cockpit_.right_pb_on_stick 108 #define Rudder_pedal cockpit_.rudder_pedal 109 #define Flap_handle cockpit_.flap_handle 110 #define Throttle cockpit_.throttle 111 #define Throttle_pct cockpit_.throttle_pct 112 #define First_trigger cockpit_.trig_pos_1 113 #define Second_trigger cockpit_.trig_pos_2 114 #define Long_control cockpit_.long_stick 115 #define Long_trim cockpit_.long_trim 116 #define Lat_control cockpit_.lat_stick 117 #define Fwd_trim cockpit_.forward_trim 118 #define Aft_trim cockpit_.aft_trim 119 #define Left_trim cockpit_.left_trim 120 #define Right_trim cockpit_.right_trim 121 #define SB_extend cockpit_.sb_extend 122 #define SB_retract cockpit_.sb_retract 123 #define Gear_sel_up cockpit_.gear_sel_up 124 #define Brake_pct cockpit_.brake_pct 125 126 127 #ifdef __cplusplus 128 } 129 #endif 130 131 #endif /* _LS_COCKPIT_H */ 132