]> git.mxchange.org Git - flightgear.git/blobdiff - Slew/slew.c
Add xgl wrappers for debugging.
[flightgear.git] / Slew / slew.c
index 7123a1c029356f03f90504d258b0628b82b2472c..12702e04dbcd4ccb58bd6185911aca4f9f7f682b 100644 (file)
@@ -28,8 +28,9 @@
 
 #include "slew.h"
 #include "../flight.h"
-#include "../../aircraft/aircraft.h"
-#include "../../controls/controls.h"
+#include "../../Aircraft/aircraft.h"
+#include "../../Controls/controls.h"
+#include "../../Include/constants.h"
 
 
 #ifndef M_PI                                    
@@ -43,7 +44,7 @@
 
 /* reset flight params to a specific position */
 void fgSlewInit(double pos_x, double pos_y, double pos_z, double heading) {
-    struct flight_params *f;
+    struct FLIGHT *f;
 
     f = &current_aircraft.flight;
 
@@ -69,17 +70,17 @@ void fgSlewInit(double pos_x, double pos_y, double pos_z, double heading) {
 
 /* update position based on inputs, positions, velocities, etc. */
 void fgSlewUpdate() {
-    struct flight_params *f;
-    struct control_params *c;
+    struct FLIGHT *f;
+    struct CONTROLS *c;
 
     f = &current_aircraft.flight;
     c = &current_aircraft.controls;
 
     /* f->Psi += ( c->aileron / 8 );
-    if ( f->Psi > PI2 ) {
-       f->Psi -= PI2;
+    if ( f->Psi > FG_2PI ) {
+       f->Psi -= FG_2PI;
     } else if ( f->Psi < 0 ) {
-       f->Psi += PI2;
+       f->Psi += FG_2PI;
     }
 
     f->vel_x = -c->elev;
@@ -90,9 +91,22 @@ void fgSlewUpdate() {
 
 
 /* $Log$
-/* Revision 1.3  1997/05/29 22:40:00  curt
-/* Working on incorporating the LaRCsim flight model.
+/* Revision 1.7  1997/12/15 23:54:42  curt
+/* Add xgl wrappers for debugging.
+/* Generate terrain normals on the fly.
 /*
+ * Revision 1.6  1997/08/27 03:30:11  curt
+ * Changed naming scheme of basic shared structures.
+ *
+ * Revision 1.5  1997/07/19 22:35:06  curt
+ * Moved fiddled with PI to avoid compiler warnings.
+ *
+ * Revision 1.4  1997/06/21 17:12:51  curt
+ * Capitalized subdirectory names.
+ *
+ * Revision 1.3  1997/05/29 22:40:00  curt
+ * Working on incorporating the LaRCsim flight model.
+ *
  * Revision 1.2  1997/05/29 12:30:19  curt
  * Some initial mods to work better in a timer environment.
  *