Added a brake.
This commit is contained in:
parent
d23495ec1e
commit
94d4bbdd09
2 changed files with 32 additions and 6 deletions
|
@ -45,6 +45,7 @@ void fgControlsInit( void ) {
|
|||
FG_Throttle[i] = 0.0;
|
||||
}
|
||||
|
||||
FG_Brake_Amt = 0.0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -169,11 +170,30 @@ void fgThrottleSet(int engine, double pos) {
|
|||
}
|
||||
|
||||
|
||||
double fgBrakeGet( void ) {
|
||||
fgCONTROLS *c;
|
||||
c = current_aircraft.controls;
|
||||
|
||||
return FG_Brake_Amt;
|
||||
}
|
||||
|
||||
|
||||
void fgBrakeSet( double brake_amt ) {
|
||||
fgCONTROLS *c;
|
||||
c = current_aircraft.controls;
|
||||
|
||||
FG_Brake_Amt = brake_amt;
|
||||
}
|
||||
|
||||
|
||||
/* $Log$
|
||||
/* Revision 1.7 1998/02/07 15:29:36 curt
|
||||
/* Incorporated HUD changes and struct/typedef changes from Charlie Hotchkiss
|
||||
/* <chotchkiss@namg.us.anritsu.com>
|
||||
/* Revision 1.8 1998/09/29 02:01:31 curt
|
||||
/* Added a brake.
|
||||
/*
|
||||
* Revision 1.7 1998/02/07 15:29:36 curt
|
||||
* Incorporated HUD changes and struct/typedef changes from Charlie Hotchkiss
|
||||
* <chotchkiss@namg.us.anritsu.com>
|
||||
*
|
||||
* Revision 1.6 1998/01/19 19:27:02 curt
|
||||
* Merged in make system changes from Bob Kuehne <rpk@sgi.com>
|
||||
* This should simplify things tremendously.
|
||||
|
|
|
@ -44,6 +44,7 @@ typedef struct {
|
|||
double elevator_trim;
|
||||
double rudder;
|
||||
double throttle[FG_MAX_ENGINES];
|
||||
double brake_amt;
|
||||
} fgCONTROLS, *pfgControls;
|
||||
|
||||
|
||||
|
@ -53,6 +54,7 @@ typedef struct {
|
|||
#define FG_Throttle c->throttle
|
||||
#define FG_Throttle_All -1
|
||||
#define FG_Elev_Trim c->elevator_trim
|
||||
#define FG_Brake_Amt c->brake_amt
|
||||
|
||||
/*
|
||||
#define Left_button cockpit_.left_pb_on_stick
|
||||
|
@ -81,7 +83,8 @@ void fgRudderMove(double amt);
|
|||
void fgRudderSet(double pos);
|
||||
void fgThrottleMove(int engine, double amt);
|
||||
void fgThrottleSet(int engine, double pos);
|
||||
|
||||
void fgBrakeSet( double brake_amt );
|
||||
double fgBrakeGet( void );
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -92,9 +95,12 @@ void fgThrottleSet(int engine, double pos);
|
|||
|
||||
|
||||
/* $Log$
|
||||
/* Revision 1.15 1998/04/25 22:06:27 curt
|
||||
/* Edited cvs log messages in source files ... bad bad bad!
|
||||
/* Revision 1.16 1998/09/29 02:01:32 curt
|
||||
/* Added a brake.
|
||||
/*
|
||||
* Revision 1.15 1998/04/25 22:06:27 curt
|
||||
* Edited cvs log messages in source files ... bad bad bad!
|
||||
*
|
||||
* Revision 1.14 1998/04/22 13:26:19 curt
|
||||
* C++ - ifing the code a bit.
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue