#include <Aircraft/aircraft.hxx>
#include <Ephemeris/ephemeris.hxx>
-#include <Autopilot/autopilot.hxx>
+#include <Autopilot/newauto.hxx>
#include <Cockpit/cockpit.hxx>
+#include <Cockpit/radiostack.hxx>
#include <Cockpit/steam.hxx>
#include <FDM/UIUCModel/uiuc_aircraft.h>
#include <FDM/UIUCModel/uiuc_aircraftdir.h>
if ( !t->getPause() ) {
// run Autopilot system
- fgAPRun();
+ current_autopilot->run();
// printf("updating flight model x %d\n", multi_loop);
/* fgFDMUpdate( current_options.get_flight_model(),
// Update solar system
ephem->update( t, cur_fdm_state->get_Latitude() );
+
+ // Update radio stack model
+ current_radiostack->update( cur_fdm_state->get_Longitude(),
+ cur_fdm_state->get_Latitude(),
+ cur_fdm_state->get_Altitude() * FEET_TO_METER );
}
// the main loop, so this will now work without seg faulting
// the system.
current_view.UpdateViewParams(cur_view_fdm);
- if ( current_options.get_panel_status() ) {
- FGPanel::OurPanel->ReInit(0, 0, 1024, 768);
- }
}
}
int main( int argc, char **argv ) {
#if defined( MACOS )
+ freopen ("stdout.txt", "w", stdout );
+ freopen ("stderr.txt", "w", stderr );
argc = ccommand( &argv );
#endif