#include <simgear/io/sg_socket.hxx>
#include <simgear/constants.h>
-#include <Controls/controls.hxx>
+#include <Aircraft/controls.hxx>
+#include <Scenery/scenery.hxx> //to pass ground elevation to FDM
#include <Main/globals.hxx>
-
#include <Main/fg_props.hxx> //to get ID of window (left/right or center)
-#include <Scenery/scenery.hxx> //to pass ground elevation to FDM
#include "ADA.hxx"
// Convert from the FGInterface struct to the FGADA struct (output)
bool FGADA::copy_to_FGADA () {
- ground_elevation = globals->get_scenery()->get_cur_elev();
+ ground_elevation = get_Runway_altitude_m();
return true;
}