From 2fac753991a147abb7fb3b341c5821a77733e094 Mon Sep 17 00:00:00 2001 From: curt Date: Thu, 4 May 2000 05:21:50 +0000 Subject: [PATCH] minor tweaks. --- src/Autopilot/newauto.cxx | 6 +++--- src/Cockpit/radiostack.cxx | 1 + src/Main/fg_init.cxx | 6 +++--- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Autopilot/newauto.cxx b/src/Autopilot/newauto.cxx index c5a83ec98..c07f5a677 100644 --- a/src/Autopilot/newauto.cxx +++ b/src/Autopilot/newauto.cxx @@ -295,7 +295,7 @@ int FGAutopilot::run() { } #endif - // heading hold enabled? + // heading hold if ( heading_hold == true ) { if ( heading_mode == FG_HEADING_LOCK ) { @@ -444,7 +444,7 @@ int FGAutopilot::run() { // controls.set_rudder( 0.0 ); } - // altitude hold? + // altitude hold if ( altitude_hold ) { double speed, max_climb, error; double prop_error, int_error; @@ -537,7 +537,7 @@ int FGAutopilot::run() { controls.set_elevator( total_adj ); } - // auto throttle enabled? + // auto throttle if ( auto_throttle ) { double error; double prop_error, int_error; diff --git a/src/Cockpit/radiostack.cxx b/src/Cockpit/radiostack.cxx index fe5e3f35d..456ef8427 100644 --- a/src/Cockpit/radiostack.cxx +++ b/src/Cockpit/radiostack.cxx @@ -33,6 +33,7 @@ FGRadioStack *current_radiostack; // Constructor FGRadioStack::FGRadioStack() { + nav1_dist = 0.0; need_update = true; } diff --git a/src/Main/fg_init.cxx b/src/Main/fg_init.cxx index 14cc5978f..d0953e7f3 100644 --- a/src/Main/fg_init.cxx +++ b/src/Main/fg_init.cxx @@ -483,11 +483,11 @@ bool fgInitSubsystems( void ) { current_radiostack->set_nav1_freq( 117.30 ); current_radiostack->set_nav1_alt_freq( 110.30 ); - current_radiostack->set_nav1_sel_radial( 299.0 ); + current_radiostack->set_nav1_sel_radial( 119.0 ); - current_radiostack->set_nav2_freq( 115.70 ); + current_radiostack->set_nav2_freq( 111.80 ); current_radiostack->set_nav2_alt_freq( 115.70 ); - current_radiostack->set_nav2_sel_radial( 45.0 ); + current_radiostack->set_nav2_sel_radial( 029.0 ); current_radiostack->set_adf_freq( 266.0 );