]> git.mxchange.org Git - flightgear.git/commitdiff
Added elevator/aileron controls.
authorcurt <curt>
Fri, 30 May 1997 23:26:19 +0000 (23:26 +0000)
committercurt <curt>
Fri, 30 May 1997 23:26:19 +0000 (23:26 +0000)
LaRCsim/ls_interface.c
Main/GLUTkey.c
Main/Makefile
Main/mesh2GL.c

index 9ff1dd431c65e6ae1b0ccd60ed8cbd06812fd0a2..8a0b3400b2e1cea7dc98564487a0584ec6c77f6a 100644 (file)
@@ -236,6 +236,7 @@ $Original log: LaRCsim.c,v $
 #include "ls_cockpit.h"
 #include "ls_interface.h"
 #include "../flight.h"
+#include "../../aircraft/aircraft.h"
 
 /* global variable declarations */
 
@@ -494,6 +495,13 @@ int initialize;
 
 
 int ls_cockpit() {
+    struct control_params *c;
+
+    c = &current_aircraft.controls;
+
+    Lat_control = -c->aileron;
+    Long_control = -c->elev;
+
     sim_control_.paused = 0;
 
     Throttle_pct = 0.95;
@@ -900,6 +908,9 @@ int fgLaRCsim_2_Flight (struct flight_params *f) {
 /* 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.
  *
index 4c3ab3a18caeff4e84da822ca2caab88c08b658b..19a9450ec251d192241d39d157ddf06e1ec8d3e7 100644 (file)
@@ -43,10 +43,10 @@ void GLUTkey(unsigned char k, int x, int y) {
 
     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;
@@ -84,10 +84,13 @@ void GLUTkey(unsigned char k, int x, int y) {
 
 
 /* $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!
index e19a5f3ae96f1604a7f315a2581ab35aec84c582..cf435bc75e4810d5b107c5781023af05a1b56127 100644 (file)
@@ -53,12 +53,12 @@ INTERFACE_FILES = GLUTkey.c
 #---------------------------------------------------------------------------
 
 # 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)
@@ -103,6 +103,9 @@ mesh2GL.o: mesh2GL.c ../scenery/mesh.h
 
 #---------------------------------------------------------------------------
 # $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.
 #
index 52decf023c7f910098cd0e0533224ef65cf97410..2b312c01114893e0b7893b5e4c89e682926bc896 100644 (file)
@@ -44,7 +44,7 @@ GLint mesh2GL(struct mesh *m) {
     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);
@@ -104,9 +104,12 @@ GLint mesh2GL(struct mesh *m) {
 
 
 /* $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.
  *