#include "ls_cockpit.h"
#include "ls_interface.h"
#include "../flight.h"
+#include "../../aircraft/aircraft.h"
/* global variable declarations */
int ls_cockpit() {
+ struct control_params *c;
+
+ c = ¤t_aircraft.controls;
+
+ Lat_control = -c->aileron;
+ Long_control = -c->elev;
+
sim_control_.paused = 0;
Throttle_pct = 0.95;
/* Flight Gear Modification Log
*
* $Log$
+ * Revision 1.5 1997/05/30 23:26:25 curt
+ * Added elevator/aileron controls.
+ *
* Revision 1.4 1997/05/30 19:30:15 curt
* The LaRCsim flight model is starting to look like it is working.
*
switch (k) {
case GLUT_KEY_UP:
- c->elev -= 0.1;
+ c->elev -= 0.01;
return;
case GLUT_KEY_DOWN:
- c->elev += 0.1;
+ c->elev += 0.01;
return;
case GLUT_KEY_LEFT:
c->aileron += 0.01;
/* $Log$
-/* Revision 1.4 1997/05/27 17:44:31 curt
-/* Renamed & rearranged variables and routines. Added some initial simple
-/* timer/alarm routines so the flight model can be updated on a regular interval.
+/* Revision 1.5 1997/05/30 23:26:19 curt
+/* Added elevator/aileron controls.
/*
+ * Revision 1.4 1997/05/27 17:44:31 curt
+ * Renamed & rearranged variables and routines. Added some initial simple
+ * timer/alarm routines so the flight model can be updated on a regular interval.
+ *
* Revision 1.3 1997/05/23 15:40:25 curt
* Added GNU copyright headers.
* Fog now works!
#---------------------------------------------------------------------------
# For OpenGL
-# GRAPHICS_LIBS = -lGLU -lGL -lXmu -lX11
+GRAPHICS_LIBS = -lGLU -lGL -lXmu -lX11
# For Mesa
-MESA_LIBS = -L/usr/lib/mesa -lMesatk -lMesaaux -lMesaGLU -lMesaGL
-X11_LIBS = -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11
-GRAPHICS_LIBS = $(MESA_LIBS) $(X11_LIBS)
+# MESA_LIBS = -L/usr/lib/mesa -lMesatk -lMesaaux -lMesaGLU -lMesaGL
+# X11_LIBS = -L/usr/X11R6/lib -lXext -lXmu -lXi -lX11
+# GRAPHICS_LIBS = $(MESA_LIBS) $(X11_LIBS)
CFLAGS = $(STD_CFLAGS) $(INTERFACE_FLAGS)
#---------------------------------------------------------------------------
# $Log$
+# Revision 1.9 1997/05/30 23:26:19 curt
+# Added elevator/aileron controls.
+#
# Revision 1.8 1997/05/30 19:27:02 curt
# The LaRCsim flight model is starting to look like it is working.
#
int i, j, istep, jstep, iend, jend;
float temp;
- istep = jstep = 10; /* Detail level 1 -- 1200 ... */
+ istep = jstep = 4; /* Detail level 1 -- 1200 ... */
mesh = glGenLists(1);
glNewList(mesh, GL_COMPILE);
/* $Log$
-/* Revision 1.11 1997/05/30 19:27:02 curt
-/* The LaRCsim flight model is starting to look like it is working.
+/* Revision 1.12 1997/05/30 23:26:20 curt
+/* Added elevator/aileron controls.
/*
+ * Revision 1.11 1997/05/30 19:27:02 curt
+ * The LaRCsim flight model is starting to look like it is working.
+ *
* Revision 1.10 1997/05/30 03:54:11 curt
* Made a bit more progress towards integrating the LaRCsim flight model.
*