1997-05-29 00:09:51 +00:00
|
|
|
/***************************************************************************
|
|
|
|
|
|
|
|
TITLE: ls_cockpit.h
|
|
|
|
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
FUNCTION: Header for cockpit IO
|
|
|
|
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
MODULE STATUS: Developmental
|
|
|
|
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
GENEALOGY: Created 20 DEC 93 by E. B. Jackson
|
|
|
|
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
DESIGNED BY: E. B. Jackson
|
|
|
|
|
|
|
|
CODED BY: E. B. Jackson
|
|
|
|
|
|
|
|
MAINTAINED BY: E. B. Jackson
|
|
|
|
|
|
|
|
----------------------------------------------------------------------------
|
|
|
|
|
|
|
|
MODIFICATION HISTORY:
|
|
|
|
|
|
|
|
DATE PURPOSE BY
|
|
|
|
|
|
|
|
950314 Added "throttle_pct" field to cockpit header for both
|
|
|
|
display and trim purposes. EBJ
|
|
|
|
|
|
|
|
CURRENT RCS HEADER:
|
|
|
|
|
|
|
|
$Header$
|
|
|
|
$Log$
|
2000-06-12 20:52:36 +00:00
|
|
|
Revision 1.3 2000/06/12 18:52:37 curt
|
|
|
|
Added differential braking (Alex and David).
|
|
|
|
|
1999-10-29 18:08:31 +00:00
|
|
|
Revision 1.2 1999/10/29 16:08:32 curt
|
|
|
|
Added flaps support to c172 model.
|
|
|
|
|
|
|
|
Revision 1.1.1.1 1999/06/17 18:07:34 curt
|
|
|
|
Start of 0.7.x branch
|
1999-06-17 20:07:19 +00:00
|
|
|
|
1999-04-22 18:47:25 +00:00
|
|
|
Revision 1.2 1999/04/22 18:47:25 curt
|
|
|
|
Wrap with extern "C" { } if building with __cplusplus compiler.
|
|
|
|
|
|
|
|
Revision 1.1.1.1 1999/04/05 21:32:45 curt
|
|
|
|
Start of 0.6.x branch.
|
1999-04-05 21:32:32 +00:00
|
|
|
|
1998-10-17 01:33:52 +00:00
|
|
|
Revision 1.5 1998/10/17 01:34:14 curt
|
|
|
|
C++ ifying ...
|
|
|
|
|
1998-08-06 12:46:37 +00:00
|
|
|
Revision 1.4 1998/08/06 12:46:39 curt
|
|
|
|
Header change.
|
|
|
|
|
1998-01-22 02:59:23 +00:00
|
|
|
Revision 1.3 1998/01/22 02:59:32 curt
|
|
|
|
Changed #ifdef FILE_H to #ifdef _FILE_H
|
|
|
|
|
1997-05-31 19:16:24 +00:00
|
|
|
Revision 1.2 1997/05/31 19:16:27 curt
|
|
|
|
Elevator trim added.
|
|
|
|
|
1997-05-29 00:09:51 +00:00
|
|
|
Revision 1.1 1997/05/29 00:09:54 curt
|
|
|
|
Initial Flight Gear revision.
|
|
|
|
|
|
|
|
* Revision 1.3 1995/03/15 12:32:10 bjax
|
|
|
|
* Added throttle_pct field.
|
|
|
|
*
|
|
|
|
* Revision 1.2 1995/02/28 20:37:02 bjax
|
|
|
|
* Changed name of gear_sel_down switch to gear_sel_up to reflect
|
|
|
|
* correct sense of switch. EBJ
|
|
|
|
*
|
|
|
|
* Revision 1.1 1993/12/21 14:39:04 bjax
|
|
|
|
* Initial revision
|
|
|
|
*
|
|
|
|
|
|
|
|
--------------------------------------------------------------------------*/
|
|
|
|
|
1998-01-22 02:59:23 +00:00
|
|
|
|
|
|
|
#ifndef _LS_COCKPIT_H
|
|
|
|
#define _LS_COCKPIT_H
|
|
|
|
|
1999-04-22 18:47:25 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
1998-01-22 02:59:23 +00:00
|
|
|
|
1997-05-29 00:09:51 +00:00
|
|
|
typedef struct {
|
|
|
|
float long_stick, lat_stick, rudder_pedal;
|
1999-10-29 18:08:31 +00:00
|
|
|
float flap_handle;
|
1997-05-31 19:16:24 +00:00
|
|
|
float long_trim;
|
1997-05-29 00:09:51 +00:00
|
|
|
float throttle[4];
|
|
|
|
short forward_trim, aft_trim, left_trim, right_trim;
|
|
|
|
short left_pb_on_stick, right_pb_on_stick, trig_pos_1, trig_pos_2;
|
|
|
|
short sb_extend, sb_retract, gear_sel_up;
|
|
|
|
float throttle_pct;
|
2000-06-12 20:52:36 +00:00
|
|
|
float brake_pct[2];
|
1997-05-29 00:09:51 +00:00
|
|
|
} COCKPIT;
|
|
|
|
|
|
|
|
extern COCKPIT cockpit_;
|
|
|
|
|
|
|
|
#define Left_button cockpit_.left_pb_on_stick
|
|
|
|
#define Right_button cockpit_.right_pb_on_stick
|
|
|
|
#define Rudder_pedal cockpit_.rudder_pedal
|
1999-10-29 18:08:31 +00:00
|
|
|
#define Flap_handle cockpit_.flap_handle
|
1997-05-29 00:09:51 +00:00
|
|
|
#define Throttle cockpit_.throttle
|
|
|
|
#define Throttle_pct cockpit_.throttle_pct
|
|
|
|
#define First_trigger cockpit_.trig_pos_1
|
|
|
|
#define Second_trigger cockpit_.trig_pos_2
|
|
|
|
#define Long_control cockpit_.long_stick
|
1997-05-31 19:16:24 +00:00
|
|
|
#define Long_trim cockpit_.long_trim
|
1997-05-29 00:09:51 +00:00
|
|
|
#define Lat_control cockpit_.lat_stick
|
|
|
|
#define Fwd_trim cockpit_.forward_trim
|
|
|
|
#define Aft_trim cockpit_.aft_trim
|
|
|
|
#define Left_trim cockpit_.left_trim
|
|
|
|
#define Right_trim cockpit_.right_trim
|
|
|
|
#define SB_extend cockpit_.sb_extend
|
|
|
|
#define SB_retract cockpit_.sb_retract
|
|
|
|
#define Gear_sel_up cockpit_.gear_sel_up
|
1998-10-17 01:33:52 +00:00
|
|
|
#define Brake_pct cockpit_.brake_pct
|
1998-01-22 02:59:23 +00:00
|
|
|
|
|
|
|
|
1999-04-22 18:47:25 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
1998-01-22 02:59:23 +00:00
|
|
|
#endif /* _LS_COCKPIT_H */
|