]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/ADA.cxx
Initial revision of Andy Ross's YASim code. This is (Y)et (A)nother Flight
[flightgear.git] / src / FDM / ADA.cxx
index 44fb78fe9ebcb73318c175dfd273cc4a5257e4be..1dd27bae8d337a35f5bcbe092d8f5d9d8b0c5f86 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;
 
@@ -228,8 +229,7 @@ bool FGADA::update( int multiloop ) {
 
 // Convert from the FGInterface struct to the FGADA struct (output)
 bool FGADA::copy_to_FGADA () {
-
-       ground_elevation = scenery.cur_elev;
+    ground_elevation = scenery.get_cur_elev();
     return true;
 }