#include <Time/tmp.hxx>
#include <Main/fg_props.hxx>
#include <Main/globals.hxx>
+#include <Scenery/scenery.hxx>
#include "native_gui.hxx"
net->fuel_quantity[i] = node->getDoubleValue("level-gal_us");
}
- // the following really aren't used in this context
+ // Environment
net->cur_time = globals->get_time_params()->get_cur_time();
net->warp = globals->get_warp();
+ net->ground_elev = globals->get_scenery()->get_cur_elev();
// Approach
net->tuned_freq = current_radiostack->get_navcom1()->get_nav_freq();
net->cur_time = htonl( net->cur_time );
net->warp = htonl( net->warp );
+ net->ground_elev = htonl( net->ground_elev );
htonf(net->tuned_freq);
htonf(net->nav_radial);
net->cur_time = ntohl(net->cur_time);
net->warp = ntohl(net->warp);
+ net->ground_elev = htonl( net->ground_elev );
htonf(net->tuned_freq);
net->in_range = htonl(net->in_range);
}
globals->set_warp( net->warp );
+ globals->get_scenery()->set_cur_elev( net->ground_elev );
// Approach
fgSetDouble( "/radios/nav[0]/frequencies/selected-mhz",
#endif
-const int FG_NET_GUI_VERSION = 3;
+const int FG_NET_GUI_VERSION = 4;
// Define a structure containing the top level flight dynamics model
// Environment
time_t cur_time; // current unix time
long int warp; // offset in seconds to unix time
+ float ground_elev; // ground elev (meters)
// Approach
float tuned_freq; // currently tuned frequency