]> git.mxchange.org Git - flightgear.git/blobdiff - src/FDM/SP/ADA.cxx
new FSF address
[flightgear.git] / src / FDM / SP / ADA.cxx
index 11728b7bf2940b7a091249849f1aace8629d6b16..f303704fc2f3c689846c20838f819019111c5f0c 100644 (file)
@@ -12,7 +12,7 @@
 //
 // You should have received a copy of the GNU General Public License
 // along with this program; if not, write to the Free Software
-// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 //
 // $Id$
 
 #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"
 
 #define numberofbytes 472 // from FDM to visuals
 #define nbytes 8       //from visuals to FDM
 
-struct {
+static struct {
     double number_of_bytes;
     double lat_geoc;
     double lon_geoc;
@@ -112,7 +111,7 @@ struct {
 
 double view_offset; //if this zero, means center window
 
-struct {
+static struct {
        double ground_elevation;
 } visuals_to_sixdof;
 
@@ -235,7 +234,7 @@ void FGADA::update( double dt ) {
 
 // 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;
 }