]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/ADA.cxx
First commit of properties code. JSBSim now has a basic property tree all
[flightgear.git] / src / FDM / ADA.cxx
index ae8e33ed31b92f30bf6bbaa2f4509223d5bb3b96..0fc0aeee813ac1db4e9614565a494dfb7184b4a3 100644 (file)
@@ -168,9 +168,10 @@ FGADA::~FGADA() {
 // for each subsequent iteration through the EOM
 void FGADA::init() {
 
-       // explicitly call the superclass's
-       // init() method first.
-    FGInterface::init();
+    //do init common to all FDM"s
+    common_init();
+    
+    //now do ADA-specific init.
 
     // cout << "FGADA::init()" << endl;
 
@@ -197,7 +198,7 @@ void FGADA::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 FGADA::update( int multiloop ) {
+void FGADA::update( int multiloop ) {
     // cout << "FGADA::update()" << endl;
 
     char Buffer[numberofbytes];
@@ -222,8 +223,6 @@ bool FGADA::update( int multiloop ) {
          memcpy (&OutBuffer, &visuals_to_sixdof, sizeof (OutBuffer));
                 int result = fdmsock->write(OutBuffer, nbytes);
        }
-
-    return true;
 }
 
 // Convert from the FGInterface struct to the FGADA struct (output)