is paused.
double lon = longitude_node->getDoubleValue();
double alt = altitude_node->getDoubleValue() * SG_FEET_TO_METER;
+ SG_LOG( SG_ALL, SG_DEBUG, "FGAutopilot::run() lat = " << lat <<
+ " lon = " << lon << " alt = " << alt );
+
#ifdef FG_FORCE_AUTO_DISENGAGE
// see if somebody else has changed them
if( fabs(aileron - old_aileron) > disengage_threshold ||
old_lat = lat;
old_lon = lon;
- // Ok, we are done
+ // Ok, we are done
+ SG_LOG( SG_ALL, SG_DEBUG, "FGAutopilot::run( returns )" );
+
return 0;
}
fgSetPosFromAirportIDandHdg( AptId,
cur_fdm_state->get_Psi() *
SGD_RADIANS_TO_DEGREES);
- BusyCursor(0);
+ // BusyCursor(0);
fgReInitSubsystems();
// if ( global_tile_mgr.init() ) {
// Load the local scenery data
// "Error in Tile Manager initialization!" );
// exit(-1);
// }
- BusyCursor(1);
+ // BusyCursor(1);
} else {
AptId += " not in database.";
mkDialog(AptId.c_str());
show_pu_cursor = true;
puHideCursor();
}
- BusyCursor( 0 );
+ // BusyCursor( 0 );
mainMenuBar->hide();
CGlPrinter p( CGlPrinter::PRINT_BITMAP );
if( gui_menu_on ) {
mainMenuBar->reveal();
}
- BusyCursor(1);
+ // BusyCursor(1);
if ( show_pu_cursor ) {
puShowCursor();
}
void reInit(puObject *cb)
{
- BusyCursor(0);
+ // BusyCursor(0);
Quat0();
int freeze = globals->get_freeze();
fgReshape( xsize, ysize );
- BusyCursor(1);
+ // BusyCursor(1);
if ( !freeze ) {
globals->set_freeze( false );
SG_LOG(SG_INPUT, SG_INFO, "ReIniting TileCache");
if ( !freeze )
globals->set_freeze( true );
- BusyCursor(0);
+ // BusyCursor(0);
if ( global_tile_mgr.init() ) {
// Load the local scenery data
global_tile_mgr.update(fgGetDouble("/position/longitude-deg"),
"Error in Tile Manager initialization!" );
exit(-1);
}
- BusyCursor(1);
+ // BusyCursor(1);
if ( !freeze )
globals->set_freeze( false );
return true;
#include STL_IOSTREAM
+#include <ATC/ATCdisplay.hxx>
#include <Autopilot/newauto.hxx>
#include <Aircraft/aircraft.hxx>
#include <Time/tmp.hxx>
static void
setFreeze (bool freeze)
{
- globals->set_freeze(freeze);
+ globals->set_freeze(freeze);
+ if ( freeze ) {
+ // BusyCursor( 0 );
+ current_atcdisplay->CancelRepeatingMessage();
+ current_atcdisplay->RegisterRepeatingMessage("**** SIM IS PAUSED **** SIM IS PAUSED ****");
+ } else {
+ // BusyCursor( 1 );
+ current_atcdisplay->CancelRepeatingMessage();
+ }
}
/**