]> 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 f5d3b8f4a10ac0f682f4302d8afb8a1f3bf5ed25..b4794c7ddef3bbae78b13b0b91953fb279db08fe 100644 (file)
 #include "External.hxx"
 
 
+FGExternal::FGExternal( double dt ) {
+//     set_delta_t( dt );
+}
+
+
+FGExternal::~FGExternal() {
+}
+
+
 // Initialize the External flight model, dt is the time increment
 // for each subsequent iteration through the EOM
-bool FGExternal::init( double dt ) {
+void FGExternal::init() {
     // cout << "FGExternal::init()" << endl;
 
-    // set valid time for this record
-    stamp_time();
-
-    return true;
+    // 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 / current_options.get_model_hz()) * multiloop;
-
-
-    return true;
+    // double time_step = (1.0 / fgGetInt("/sim/model-hz"))
+    //                     * multiloop;
 }