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