]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/External.cxx
Added flap_deflection so that remote fdm can pass back actual flap deflection
[flightgear.git] / src / FDM / External.cxx
index b0406dc38bd47bd645a9a5520bc1ea2502a3d819..b4794c7ddef3bbae78b13b0b91953fb279db08fe 100644 (file)
@@ -25,7 +25,7 @@
 
 
 FGExternal::FGExternal( double dt ) {
-    set_delta_t( dt );
+//     set_delta_t( dt );
 }
 
 
@@ -37,18 +37,19 @@ FGExternal::~FGExternal() {
 // for each subsequent iteration through the EOM
 void FGExternal::init() {
     // cout << "FGExternal::init()" << endl;
+
+    // Explicitly call the superclass's
+    // init method first.
+    common_init();
 }
 
 
 // Run an iteration of the EOM.  This is essentially a NOP here
 // because these values are getting filled in elsewhere based on
 // external input.
-bool FGExternal::update( int multiloop ) {
+void FGExternal::update( double dt ) {
     // cout << "FGExternal::update()" << endl;
 
     // double time_step = (1.0 / fgGetInt("/sim/model-hz"))
     //                     * multiloop;
-
-
-    return true;
 }