#include <Aircraft/aircraft.h>
+fgCONTROLS cur_control_params;
+
+
void fgControlsInit( void ) {
int i;
- struct fgCONTROLS *c;
- c = ¤t_aircraft.controls;
+ fgCONTROLS *c;
+ c = current_aircraft.controls;
FG_Elevator = 0.0;
FG_Elev_Trim = 1.969572E-03;
void fgElevMove(double amt) {
- struct fgCONTROLS *c;
- c = ¤t_aircraft.controls;
+ fgCONTROLS *c;
+ c = current_aircraft.controls;
FG_Elevator += amt;
}
void fgElevSet(double pos) {
- struct fgCONTROLS *c;
- c = ¤t_aircraft.controls;
+ fgCONTROLS *c;
+ c = current_aircraft.controls;
FG_Elevator = pos;
}
void fgElevTrimMove(double amt) {
- struct fgCONTROLS *c;
- c = ¤t_aircraft.controls;
+ fgCONTROLS *c;
+ c = current_aircraft.controls;
FG_Elev_Trim += amt;
}
void fgElevTrimSet(double pos) {
- struct fgCONTROLS *c;
- c = ¤t_aircraft.controls;
+ fgCONTROLS *c;
+ c = current_aircraft.controls;
FG_Elev_Trim = pos;
}
void fgAileronMove(double amt) {
- struct fgCONTROLS *c;
- c = ¤t_aircraft.controls;
+ fgCONTROLS *c;
+ c = current_aircraft.controls;
FG_Aileron += amt;
}
void fgAileronSet(double pos) {
- struct fgCONTROLS *c;
- c = ¤t_aircraft.controls;
+ fgCONTROLS *c;
+ c = current_aircraft.controls;
FG_Aileron = pos;
}
void fgRudderMove(double amt) {
- struct fgCONTROLS *c;
- c = ¤t_aircraft.controls;
+ fgCONTROLS *c;
+ c = current_aircraft.controls;
FG_Rudder += amt;
}
void fgRudderSet(double pos) {
- struct fgCONTROLS *c;
- c = ¤t_aircraft.controls;
+ fgCONTROLS *c;
+ c = current_aircraft.controls;
FG_Rudder = pos;
void fgThrottleMove(int engine, double amt) {
int i;
- struct fgCONTROLS *c;
- c = ¤t_aircraft.controls;
+ fgCONTROLS *c;
+ c = current_aircraft.controls;
if ( engine == FG_Throttle_All ) {
for ( i = 0; i < FG_MAX_ENGINES; i++ ) {
void fgThrottleSet(int engine, double pos) {
int i;
- struct fgCONTROLS *c;
- c = ¤t_aircraft.controls;
+ fgCONTROLS *c;
+ c = current_aircraft.controls;
if ( engine == FG_Throttle_All ) {
for ( i = 0; i < FG_MAX_ENGINES; i++ ) {
/* $Log$
-/* 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.
+/* 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.
+ *
* Revision 1.5 1998/01/19 18:40:22 curt
* Tons of little changes to clean up the code and to remove fatal errors
* when building with the c++ compiler.