**************************************************************************/
-#include "controls.h"
-#include "../Aircraft/aircraft.h"
+#include <Controls/controls.h>
+#include <Aircraft/aircraft.h>
-void fgControlsInit() {
+void fgControlsInit( void ) {
int i;
- struct control_params *c;
+ struct fgCONTROLS *c;
c = ¤t_aircraft.controls;
FG_Elevator = 0.0;
void fgElevMove(double amt) {
- struct control_params *c;
+ struct fgCONTROLS *c;
c = ¤t_aircraft.controls;
FG_Elevator += amt;
}
void fgElevSet(double pos) {
- struct control_params *c;
+ struct fgCONTROLS *c;
c = ¤t_aircraft.controls;
FG_Elevator = pos;
}
void fgElevTrimMove(double amt) {
- struct control_params *c;
+ struct fgCONTROLS *c;
c = ¤t_aircraft.controls;
FG_Elev_Trim += amt;
}
void fgElevTrimSet(double pos) {
- struct control_params *c;
+ struct fgCONTROLS *c;
c = ¤t_aircraft.controls;
FG_Elev_Trim = pos;
}
void fgAileronMove(double amt) {
- struct control_params *c;
+ struct fgCONTROLS *c;
c = ¤t_aircraft.controls;
FG_Aileron += amt;
}
void fgAileronSet(double pos) {
- struct control_params *c;
+ struct fgCONTROLS *c;
c = ¤t_aircraft.controls;
FG_Aileron = pos;
}
void fgRudderMove(double amt) {
- struct control_params *c;
+ struct fgCONTROLS *c;
c = ¤t_aircraft.controls;
FG_Rudder += amt;
}
void fgRudderSet(double pos) {
- struct control_params *c;
+ struct fgCONTROLS *c;
c = ¤t_aircraft.controls;
FG_Rudder = pos;
void fgThrottleMove(int engine, double amt) {
int i;
- struct control_params *c;
+ struct fgCONTROLS *c;
c = ¤t_aircraft.controls;
if ( engine == FG_Throttle_All ) {
void fgThrottleSet(int engine, double pos) {
int i;
- struct control_params *c;
+ struct fgCONTROLS *c;
c = ¤t_aircraft.controls;
if ( engine == FG_Throttle_All ) {
/* $Log$
-/* Revision 1.2 1997/06/21 17:12:48 curt
-/* Capitalized subdirectory names.
+/* 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.
+ *
+ * Revision 1.4 1997/12/10 22:37:41 curt
+ * Prepended "fg" on the name of all global structures that didn't have it yet.
+ * i.e. "struct WEATHER {}" became "struct fgWEATHER {}"
+ *
+ * Revision 1.3 1997/08/27 03:30:01 curt
+ * Changed naming scheme of basic shared structures.
+ *
+ * Revision 1.2 1997/06/21 17:12:48 curt
+ * Capitalized subdirectory names.
+ *
* Revision 1.1 1997/05/31 19:24:04 curt
* Initial revision.
*