1 /**************************************************************************
2 * GLmain.c -- top level sim routines
4 * Written by Curtis Olson for OpenGL, started May 1997.
6 * Copyright (C) 1997 Curtis L. Olson - curt@infoplane.com
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of the
11 * License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 * (Log is kept at end of this file)
24 **************************************************************************/
38 #include "../constants.h"
40 #include "../Aircraft/aircraft.h"
41 #include "../Scenery/mesh.h"
42 #include "../Scenery/scenery.h"
43 #include "../Math/fg_geodesy.h"
44 #include "../Math/fg_random.h"
45 #include "../Math/mat3.h"
46 #include "../Math/polar.h"
47 #include "../Time/fg_timer.h"
48 #include "../Time/sunpos.h"
49 #include "../Weather/weather.h"
52 /* This is a record containing all the info for the aircraft currently
54 struct aircraft_params current_aircraft;
57 static GLfloat win_ratio = 1.0;
60 static GLfloat sun_vec[4] = {1.0, 0.0, 0.0, 0.0 };
63 /* extern struct mesh *mesh_ptr; */
64 /* Function prototypes */
65 /* GLint fgSceneryCompile_OLD(); */
66 /* static void fgSceneryDraw_OLD(); */
68 /* pointer to scenery structure */
69 /* static GLint scenery, runway; */
72 double fogDensity = 60000.0; /* in meters */
73 double view_offset = 0.0;
74 double goal_view_offset = 0.0;
77 #define DEFAULT_TIMER_HZ 20
78 #define DEFAULT_MULTILOOP 6
79 #define DEFAULT_MODEL_HZ (DEFAULT_TIMER_HZ * DEFAULT_MULTILOOP)
87 /**************************************************************************
88 * fgInitVisuals() -- Initialize various GL/view parameters
89 **************************************************************************/
91 static void fgInitVisuals() {
92 /* if the 4th field is 0.0, this specifies a direction ... */
93 static GLfloat fogColor[4] = {0.65, 0.65, 0.85, 1.0};
95 glEnable( GL_DEPTH_TEST );
96 /* glFrontFace(GL_CW); */
97 glEnable( GL_CULL_FACE );
99 /* If enabled, normal vectors specified with glNormal are scaled
100 to unit length after transformation. See glNormal. */
101 glEnable( GL_NORMALIZE );
103 glLightfv( GL_LIGHT0, GL_POSITION, sun_vec );
104 glEnable( GL_LIGHTING );
105 glEnable( GL_LIGHT0 );
107 glShadeModel( GL_FLAT ); /* glShadeModel( GL_SMOOTH ); */
110 glFogi (GL_FOG_MODE, GL_LINEAR);
111 /* glFogf (GL_FOG_START, 1.0); */
112 glFogf (GL_FOG_END, fogDensity);
113 glFogfv (GL_FOG_COLOR, fogColor);
114 /* glFogf (GL_FOG_DENSITY, fogDensity); */
115 /* glHint (GL_FOG_HINT, GL_FASTEST); */
117 glClearColor(0.6, 0.6, 0.9, 1.0);
121 /**************************************************************************
122 * Update the view volume, position, and orientation
123 **************************************************************************/
125 static void fgUpdateViewParams() {
126 struct fgCartesianPoint view_pos /*, alt_up */;
127 struct flight_params *f;
128 MAT3mat R, TMP, UP, LOCAL, VIEW;
129 MAT3vec vec, view_up, forward, view_forward, local_up;
131 f = ¤t_aircraft.flight;
133 /* Tell GL we are about to modify the projection parameters */
134 glMatrixMode(GL_PROJECTION);
136 gluPerspective(45.0, 1.0/win_ratio, 1.0, 200000.0);
138 glMatrixMode(GL_MODELVIEW);
141 glLightfv( GL_LIGHT0, GL_POSITION, sun_vec );
143 /* calculate view position in current FG view coordinate system */
144 view_pos = fgPolarToCart(FG_Longitude, FG_Lat_geocentric,
145 FG_Radius_to_vehicle * FEET_TO_METER + 1.0);
146 view_pos.x -= scenery.center.x;
147 view_pos.y -= scenery.center.y;
148 view_pos.z -= scenery.center.z;
150 printf("View pos = %.4f, %.4f, %.4f\n", view_pos.x, view_pos.y, view_pos.z);
152 /* Derive the LOCAL aircraft rotation matrix (roll, pitch, yaw) */
153 MAT3_SET_VEC(vec, 0.0, 0.0, 1.0);
154 MAT3rotate(R, vec, FG_Phi);
155 /* printf("Roll matrix\n"); */
156 /* MAT3print(R, stdout); */
158 MAT3_SET_VEC(vec, 0.0, 1.0, 0.0);
159 /* MAT3mult_vec(vec, vec, R); */
160 MAT3rotate(TMP, vec, FG_Theta);
161 /* printf("Pitch matrix\n"); */
162 /* MAT3print(TMP, stdout); */
165 MAT3_SET_VEC(vec, 1.0, 0.0, 0.0);
166 /* MAT3mult_vec(vec, vec, R); */
167 /* MAT3rotate(TMP, vec, FG_Psi - FG_PI_2); */
168 MAT3rotate(TMP, vec, -FG_Psi);
169 /* printf("Yaw matrix\n");
170 MAT3print(TMP, stdout); */
171 MAT3mult(LOCAL, R, TMP);
172 /* printf("LOCAL matrix\n"); */
173 /* MAT3print(LOCAL, stdout); */
175 /* Derive the local UP transformation matrix based on *geodetic*
177 MAT3_SET_VEC(vec, 0.0, 0.0, 1.0);
178 MAT3rotate(R, vec, FG_Longitude); /* R = rotate about Z axis */
179 /* printf("Longitude matrix\n"); */
180 /* MAT3print(R, stdout); */
182 MAT3_SET_VEC(vec, 0.0, 1.0, 0.0);
183 MAT3mult_vec(vec, vec, R);
184 MAT3rotate(TMP, vec, -FG_Latitude); /* TMP = rotate about X axis */
185 /* printf("Latitude matrix\n"); */
186 /* MAT3print(TMP, stdout); */
188 MAT3mult(UP, R, TMP);
189 /* printf("Local up matrix\n"); */
190 /* MAT3print(UP, stdout); */
192 MAT3_SET_VEC(local_up, 1.0, 0.0, 0.0);
193 MAT3mult_vec(local_up, local_up, UP);
195 printf(" Local Up = (%.4f, %.4f, %.4f)\n", local_up[0], local_up[1],
198 /* Alternative method to Derive local up vector based on
199 * *geodetic* coordinates */
200 /* alt_up = fgPolarToCart(FG_Longitude, FG_Latitude, 1.0); */
201 /* printf(" Alt Up = (%.4f, %.4f, %.4f)\n",
202 alt_up.x, alt_up.y, alt_up.z); */
204 /* Derive the VIEW matrix */
205 MAT3mult(VIEW, LOCAL, UP);
206 /* printf("VIEW matrix\n"); */
207 /* MAT3print(VIEW, stdout); */
209 /* generate the current up, forward, and fwrd-view vectors */
210 MAT3_SET_VEC(vec, 1.0, 0.0, 0.0);
211 MAT3mult_vec(view_up, vec, VIEW);
213 MAT3_SET_VEC(vec, 0.0, 0.0, 1.0);
214 MAT3mult_vec(forward, vec, VIEW);
215 printf("Forward vector is (%.2f,%.2f,%.2f)\n", forward[0], forward[1],
218 MAT3rotate(TMP, view_up, view_offset);
219 MAT3mult_vec(view_forward, forward, TMP);
221 gluLookAt(view_pos.x, view_pos.y, view_pos.z,
222 view_pos.x + view_forward[0], view_pos.y + view_forward[1],
223 view_pos.z + view_forward[2],
224 view_up[0], view_up[1], view_up[2]);
228 /**************************************************************************
229 * Update all Visuals (redraws anything graphics related)
230 **************************************************************************/
232 static void fgUpdateVisuals( void ) {
233 /* update view volume parameters */
234 fgUpdateViewParams();
236 glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
238 /* Tell GL we are switching to model view parameters */
239 glMatrixMode(GL_MODELVIEW);
240 /* glLoadIdentity(); */
251 /**************************************************************************
252 * Update internal time dependent calculations (i.e. flight model)
253 **************************************************************************/
255 void fgUpdateTimeDepCalcs(int multi_loop) {
256 struct flight_params *f;
257 struct fgCartesianPoint sunpos;
258 double sun_lon, sun_gd_lat, sun_gc_lat, sl_radius;
261 f = ¤t_aircraft.flight;
263 /* update the flight model */
264 if ( multi_loop < 0 ) {
265 multi_loop = DEFAULT_MULTILOOP;
268 /* printf("updating flight model x %d\n", multi_loop); */
269 fgFlightModelUpdate(FG_LARCSIM, f, multi_loop);
271 /* refresh sun position */
272 fgSunPosition(time(NULL), &sun_lon, &sun_gd_lat);
273 fgGeodToGeoc(sun_gd_lat, 0, &sl_radius, &sun_gc_lat);
274 sunpos = fgPolarToCart(sun_lon, sun_gc_lat, sl_radius);
275 printf("Sun position is (%.2f, %.2f, %.2f)\n",
276 sunpos.x, sunpos.y, sunpos.z);
277 /* not necessary to divide, but I'm just doing it by a "random"
278 * constant to get near the magnitude of the number down to the
280 sun_vec[0] = -sunpos.x;
281 sun_vec[1] = -sunpos.y;
282 sun_vec[2] = -sunpos.z;
283 sun_vec[3] = 0.0; /* make this a directional light source only */
285 /* update the view angle */
286 for ( i = 0; i < multi_loop; i++ ) {
287 if ( fabs(goal_view_offset - view_offset) < 0.05 ) {
288 view_offset = goal_view_offset;
291 /* move view_offset towards goal_view_offset */
292 if ( goal_view_offset > view_offset ) {
293 if ( goal_view_offset - view_offset < FG_PI ) {
299 if ( view_offset - goal_view_offset < FG_PI ) {
305 if ( view_offset > FG_2PI ) {
306 view_offset -= FG_2PI;
307 } else if ( view_offset < 0 ) {
308 view_offset += FG_2PI;
315 void fgInitTimeDepCalcs() {
316 /* initialize timer */
319 fgTimerInit( 1.0 / DEFAULT_TIMER_HZ, fgUpdateTimeDepCalcs );
325 /**************************************************************************
326 * Scenery management routines
327 **************************************************************************/
329 /* static void fgSceneryInit_OLD() { */
331 /* scenery = fgSceneryCompile_OLD();
332 runway = fgRunwayHack_OLD(0.69, 53.07);
336 /* create the scenery */
337 /* GLint fgSceneryCompile_OLD() {
340 scenery = mesh2GL(mesh_ptr_OLD);
346 /* hack in a runway */
347 /* GLint fgRunwayHack_OLD(double width, double length) {
348 static GLfloat concrete[4] = { 0.5, 0.5, 0.5, 1.0 };
349 static GLfloat line[4] = { 0.9, 0.9, 0.9, 1.0 };
352 float line_len, line_width_2, cur_pos;
354 runway = glGenLists(1);
355 glNewList(runway, GL_COMPILE);
358 /* glBegin(GL_POLYGON);
359 glMaterialfv( GL_FRONT, GL_AMBIENT_AND_DIFFUSE, concrete );
360 glNormal3f(0.0, 0.0, 1.0);
362 glVertex3d( 0.0, -width/2.0, 0.0);
363 glVertex3d( 0.0, width/2.0, 0.0);
364 glVertex3d(length, width/2.0, 0.0);
365 glVertex3d(length, -width/2.0, 0.0);
368 /* draw center line */
369 /* glMaterialfv( GL_FRONT, GL_AMBIENT_AND_DIFFUSE, line );
370 line_len = length / ( 2 * num_lines + 1);
371 printf("line_len = %.3f\n", line_len);
374 for ( i = 0; i < num_lines; i++ ) {
376 glVertex3d( cur_pos, -line_width_2, 0.005);
377 glVertex3d( cur_pos, line_width_2, 0.005);
379 glVertex3d( cur_pos, line_width_2, 0.005);
380 glVertex3d( cur_pos, -line_width_2, 0.005);
391 /* draw the scenery */
392 /*static void fgSceneryDraw_OLD() {
393 static float z = 32.35;
399 printf("*** Drawing runway at %.2f\n", z);
401 glTranslatef( -398391.28, 120070.41, 32.35);
402 glRotatef(170.0, 0.0, 0.0, 1.0);
409 /* What should we do when we have nothing else to do? How about get
410 * ready for the next move and update the display? */
411 static void fgMainLoop( void ) {
412 static int remainder = 0;
413 int elapsed, multi_loop;
415 struct flight_params *f;
417 f = ¤t_aircraft.flight;
419 elapsed = fgGetTimeInterval();
420 printf("Time interval is = %d, previous remainder is = %d\n", elapsed,
422 printf("--> Frame rate is = %.2f\n", 1000.0 / (float)elapsed);
423 elapsed += remainder;
425 multi_loop = ((float)elapsed * 0.001) * DEFAULT_MODEL_HZ;
426 remainder = elapsed - ((multi_loop*1000) / DEFAULT_MODEL_HZ);
427 printf("Model iterations needed = %d, new remainder = %d\n", multi_loop,
433 if ( ! use_signals ) {
435 fgUpdateTimeDepCalcs(multi_loop);
438 /* I'm just sticking this here for now, it should probably move
440 rough_elev = mesh_altitude(FG_Longitude * RAD_TO_ARCSEC,
441 FG_Latitude * RAD_TO_ARCSEC);
442 printf("Ground elevation is %.2f meters here.\n", rough_elev);
443 /* FG_Runway_altitude = rough_elev * METER_TO_FEET; */
445 if ( FG_Altitude * FEET_TO_METER < rough_elev + 3.758099) {
446 /* set this here, otherwise if we set runway height above our
447 current height we get a really nasty bounce. */
448 FG_Runway_altitude = FG_Altitude - 3.758099;
450 /* now set aircraft altitude above ground */
451 FG_Altitude = rough_elev * METER_TO_FEET + 3.758099;
452 printf("<*> resetting altitude to %.0f meters\n",
453 FG_Altitude * FEET_TO_METER);
456 /* update the weather for our current position */
457 fgWeatherUpdate(FG_Longitude * RAD_TO_ARCSEC,
458 FG_Latitude * RAD_TO_ARCSEC,
459 FG_Altitude * FEET_TO_METER);
463 /**************************************************************************
464 * Handle new window size or exposure
465 **************************************************************************/
467 static void fgReshape( int width, int height ) {
468 /* Do this so we can call fgReshape(0,0) ourselves without having to know
469 * what the values of width & height are. */
470 if ( (height > 0) && (width > 0) ) {
471 win_ratio = (GLfloat) height / (GLfloat) width;
474 /* Inform gl of our view window size */
475 glViewport(0, 0, (GLint)width, (GLint)height);
477 fgUpdateViewParams();
479 glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
483 /**************************************************************************
485 **************************************************************************/
487 int main( int argc, char *argv[] ) {
488 struct flight_params *f;
491 f = ¤t_aircraft.flight;
493 printf("Flight Gear: prototype code to test OpenGL, LaRCsim, and VRML\n\n");
496 /**********************************************************************
497 * Initialize the Window/Graphics environment.
498 **********************************************************************/
501 /* initialize GLUT */
502 glutInit(&argc, argv);
504 /* Define Display Parameters */
505 glutInitDisplayMode( GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE );
507 /* Define initial window size */
508 glutInitWindowSize(640, 480);
510 /* Initialize windows */
511 glutCreateWindow("Flight Gear");
514 /* seed the random number generater */
517 /* setup view parameters, only makes GL calls */
521 /****************************************************************
522 * The following section sets up the flight model EOM parameters and
523 * should really be read in from one or more files.
524 ****************************************************************/
526 /* Globe Aiport, AZ */
527 FG_Runway_altitude = 3234.5;
528 FG_Runway_latitude = 120070.41;
529 FG_Runway_longitude = -398391.28;
530 FG_Runway_heading = 102.0 * DEG_TO_RAD;
532 /* Initial Position */
533 FG_Latitude = ( 120070.41 / 3600.0 ) * DEG_TO_RAD;
534 FG_Longitude = ( -398391.28 / 3600.0 ) * DEG_TO_RAD;
535 FG_Altitude = FG_Runway_altitude + 3.758099;
537 /* FG_Latitude = 0.0; */
538 /* FG_Longitude = 0.0; */
539 /* FG_Altitude = 15000.0; */
541 printf("Initial position is: (%.4f, %.4f, %.2f)\n", FG_Latitude,
542 FG_Longitude, FG_Altitude);
544 /* Initial Velocity */
545 FG_V_north = 0.0 /* 7.287719E+00 */;
546 FG_V_east = 0.0 /* 1.521770E+03 */;
547 FG_V_down = 0.0 /* -1.265722E-05 */;
549 /* Initial Orientation */
550 FG_Phi = -2.658474E-06;
551 FG_Theta = 7.401790E-03;
552 /* FG_Psi = 270.0 * DEG_TO_RAD; */
553 FG_Psi = 0.0 * DEG_TO_RAD;
555 /* Initial Angular B rates */
556 FG_P_body = 7.206685E-05;
557 FG_Q_body = 0.000000E+00;
558 FG_R_body = 9.492658E-05;
560 FG_Earth_position_angle = 0.000000E+00;
562 /* Mass properties and geometry values */
563 FG_Mass = 8.547270E+01;
564 FG_I_xx = 1.048000E+03;
565 FG_I_yy = 3.000000E+03;
566 FG_I_zz = 3.530000E+03;
567 FG_I_xz = 0.000000E+00;
569 /* CG position w.r.t. ref. point */
570 FG_Dx_cg = 0.000000E+00;
571 FG_Dy_cg = 0.000000E+00;
572 FG_Dz_cg = 0.000000E+00;
574 /* Set initial position and slew parameters */
575 /* fgSlewInit(-398391.3, 120070.41, 244, 3.1415); */ /* GLOBE Airport */
576 /* fgSlewInit(-335340,162540, 15, 4.38); */
577 /* fgSlewInit(-398673.28,120625.64, 53, 4.38); */
579 /* Initialize the Scenery Management system */
582 /* Tell the Scenery Management system where we are so it can load
583 * the correct scenery data */
584 fgSceneryUpdate(FG_Latitude, FG_Longitude, FG_Altitude);
586 /* I'm just sticking this here for now, it should probably move
588 rough_elev = mesh_altitude(FG_Longitude * RAD_TO_DEG * 3600.0,
589 FG_Latitude * RAD_TO_DEG * 3600.0);
590 printf("Ground elevation is %.2f meters here.\n", rough_elev);
591 if ( rough_elev > -9990.0 ) {
592 FG_Runway_altitude = rough_elev * METER_TO_FEET;
595 if ( FG_Altitude < FG_Runway_altitude ) {
596 FG_Altitude = FG_Runway_altitude + 3.758099;
598 /* end of thing that I just stuck in that I should probably move */
600 /* Initialize the flight model data structures base on above values */
601 fgFlightModelInit( FG_LARCSIM, f, 1.0 / DEFAULT_MODEL_HZ );
604 /* init timer routines, signals, etc. Arrange for an alarm
605 signal to be generated, etc. */
606 fgInitTimeDepCalcs();
609 /* Initialize the weather modeling subsystem */
612 /**********************************************************************
613 * Initialize the Event Handlers.
614 **********************************************************************/
617 /* call fgReshape() on window resizes */
618 glutReshapeFunc( fgReshape );
620 /* call key() on keyboard event */
621 glutKeyboardFunc( GLUTkey );
622 glutSpecialFunc( GLUTspecialkey );
624 /* call fgMainLoop() whenever there is nothing else to do */
625 glutIdleFunc( fgMainLoop );
628 glutDisplayFunc( fgUpdateVisuals );
630 /* pass control off to the GLUT event handler */
640 int printf (const char *format, ...) {
646 /* Revision 1.3 1997/08/06 00:24:22 curt
647 /* Working on correct real time sun lighting.
649 * Revision 1.2 1997/08/04 20:25:15 curt
650 * Organizational tweaking.
652 * Revision 1.1 1997/08/02 18:45:00 curt
653 * Renamed GLmain.c GLUTmain.c
655 * Revision 1.43 1997/08/02 16:23:47 curt
658 * Revision 1.42 1997/08/01 19:43:33 curt
659 * Making progress with coordinate system overhaul.
661 * Revision 1.41 1997/07/31 22:52:37 curt
662 * Working on redoing internal coordinate systems & scenery transformations.
664 * Revision 1.40 1997/07/30 16:12:42 curt
665 * Moved fg_random routines from Util/ to Math/
667 * Revision 1.39 1997/07/21 14:45:01 curt
670 * Revision 1.38 1997/07/19 23:04:47 curt
671 * Added an initial weather section.
673 * Revision 1.37 1997/07/19 22:34:02 curt
674 * Moved PI definitions to ../constants.h
675 * Moved random() stuff to ../Utils/ and renamed fg_random()
677 * Revision 1.36 1997/07/18 23:41:25 curt
678 * Tweaks for building with Cygnus Win32 compiler.
680 * Revision 1.35 1997/07/18 14:28:34 curt
681 * Hacked in some support for wind/turbulence.
683 * Revision 1.34 1997/07/16 20:04:48 curt
684 * Minor tweaks to aid Win32 port.
686 * Revision 1.33 1997/07/12 03:50:20 curt
687 * Added an #include <Windows32/Base.h> to help compiling for Win32
689 * Revision 1.32 1997/07/11 03:23:18 curt
690 * Solved some scenery display/orientation problems. Still have a positioning
691 * (or transformation?) problem.
693 * Revision 1.31 1997/07/11 01:29:58 curt
694 * More tweaking of terrian floor.
696 * Revision 1.30 1997/07/10 04:26:37 curt
697 * We now can interpolated ground elevation for any position in the grid. We
698 * can use this to enforce a "hard" ground. We still need to enforce some
699 * bounds checking so that we don't try to lookup data points outside the
702 * Revision 1.29 1997/07/09 21:31:12 curt
703 * Working on making the ground "hard."
705 * Revision 1.28 1997/07/08 18:20:12 curt
706 * Working on establishing a hard ground.
708 * Revision 1.27 1997/07/07 20:59:49 curt
709 * Working on scenery transformations to enable us to fly fluidly over the
710 * poles with no discontinuity/distortion in scenery.
712 * Revision 1.26 1997/07/05 20:43:34 curt
713 * renamed mat3 directory to Math so we could add other math related routines.
715 * Revision 1.25 1997/06/29 21:19:17 curt
716 * Working on scenery management system.
718 * Revision 1.24 1997/06/26 22:14:53 curt
719 * Beginning work on a scenery management system.
721 * Revision 1.23 1997/06/26 19:08:33 curt
722 * Restructuring make, adding automatic "make dep" support.
724 * Revision 1.22 1997/06/25 15:39:47 curt
725 * Minor changes to compile with rsxnt/win32.
727 * Revision 1.21 1997/06/22 21:44:41 curt
728 * Working on intergrating the VRML (subset) parser.
730 * Revision 1.20 1997/06/21 17:12:53 curt
731 * Capitalized subdirectory names.
733 * Revision 1.19 1997/06/18 04:10:31 curt
734 * A couple more runway tweaks ...
736 * Revision 1.18 1997/06/18 02:21:24 curt
739 * Revision 1.17 1997/06/17 16:51:58 curt
740 * Timer interval stuff now uses gettimeofday() instead of ftime()
742 * Revision 1.16 1997/06/17 04:19:16 curt
743 * More timer related tweaks with respect to view direction changes.
745 * Revision 1.15 1997/06/17 03:41:10 curt
746 * Nonsignal based interval timing is now working.
747 * This would be a good time to look at cleaning up the code structure a bit.
749 * Revision 1.14 1997/06/16 19:32:51 curt
750 * Starting to add general timer support.
752 * Revision 1.13 1997/06/02 03:40:06 curt
753 * A tiny bit more view tweaking.
755 * Revision 1.12 1997/06/02 03:01:38 curt
756 * Working on views (side, front, back, transitions, etc.)
758 * Revision 1.11 1997/05/31 19:16:25 curt
759 * Elevator trim added.
761 * Revision 1.10 1997/05/31 04:13:52 curt
764 * Continuing work on the LaRCsim flight model integration.
765 * Added some MSFS-like keyboard input handling.
767 * Revision 1.9 1997/05/30 19:27:01 curt
768 * The LaRCsim flight model is starting to look like it is working.
770 * Revision 1.8 1997/05/30 03:54:10 curt
771 * Made a bit more progress towards integrating the LaRCsim flight model.
773 * Revision 1.7 1997/05/29 22:39:49 curt
774 * Working on incorporating the LaRCsim flight model.
776 * Revision 1.6 1997/05/29 12:31:39 curt
777 * Minor tweaks, moving towards general flight model integration.
779 * Revision 1.5 1997/05/29 02:33:23 curt
780 * Updated to reflect changing interfaces in other "modules."
782 * Revision 1.4 1997/05/27 17:44:31 curt
783 * Renamed & rearranged variables and routines. Added some initial simple
784 * timer/alarm routines so the flight model can be updated on a regular
787 * Revision 1.3 1997/05/23 15:40:25 curt
788 * Added GNU copyright headers.
791 * Revision 1.2 1997/05/23 00:35:12 curt
792 * Trying to get fog to work ...
794 * Revision 1.1 1997/05/21 15:57:51 curt
795 * Renamed due to added GLUT support.
797 * Revision 1.3 1997/05/19 18:22:42 curt
798 * Parameter tweaking ... starting to stub in fog support.
800 * Revision 1.2 1997/05/17 00:17:34 curt
801 * Trying to stub in support for standard OpenGL.
803 * Revision 1.1 1997/05/16 16:05:52 curt