]> git.mxchange.org Git - flightgear.git/blobdiff - Slew/slew.cxx
Moved max node per tile definition to fg_constants.h
[flightgear.git] / Slew / slew.cxx
index f84c6c0cabb86ec83cb847021d802567ea99e598..2706b990641affd9845d55561742d8243604db24 100644 (file)
@@ -26,7 +26,7 @@
 
 #include "slew.hxx"
 
-#include <Flight/flight.hxx>
+#include <FDM/flight.hxx>
 #include <Aircraft/aircraft.hxx>
 #include <Controls/controls.hxx>
 #include <Include/fg_constants.h>
@@ -34,9 +34,9 @@
 
 // reset flight params to a specific position
 void fgSlewInit(double pos_x, double pos_y, double pos_z, double heading) {
-    fgFLIGHT *f;
-
-    f = current_aircraft.flight;
+    FGInterface *f;
+    
+    f = current_aircraft.fdm_state;
 
     /*
     f->pos_x = pos_x;
@@ -62,10 +62,10 @@ void fgSlewInit(double pos_x, double pos_y, double pos_z, double heading) {
 
 // update position based on inputs, positions, velocities, etc.
 void fgSlewUpdate( void ) {
-    fgFLIGHT *f;
-    fgCONTROLS *c;
+    FGInterface *f;
+    FGControls *c;
 
-    f = current_aircraft.flight;
+    f = current_aircraft.fdm_state;
     c = current_aircraft.controls;
 
     /* f->Psi += ( c->aileron / 8 );
@@ -83,6 +83,19 @@ void fgSlewUpdate( void ) {
 
 
 // $Log$
+// Revision 1.6  1999/02/05 21:29:05  curt
+// Modifications to incorporate Jon S. Berndts flight model code.
+//
+// Revision 1.5  1999/02/01 21:33:33  curt
+// Renamed FlightGear/Simulator/Flight to FlightGear/Simulator/FDM since
+// Jon accepted my offer to do this and thought it was a good idea.
+//
+// Revision 1.4  1998/12/05 16:13:14  curt
+// Renamed class fgCONTROLS to class FGControls.
+//
+// Revision 1.3  1998/12/05 15:54:16  curt
+// Renamed class fgFLIGHT to class FGState as per request by JSB.
+//
 // Revision 1.2  1998/10/17 01:34:17  curt
 // C++ ifying ...
 //