1
0
Fork 0

minor tweaks.

This commit is contained in:
curt 2000-05-04 05:21:50 +00:00
parent 2cda6e7082
commit 2fac753991
3 changed files with 7 additions and 6 deletions

View file

@ -295,7 +295,7 @@ int FGAutopilot::run() {
} }
#endif #endif
// heading hold enabled? // heading hold
if ( heading_hold == true ) { if ( heading_hold == true ) {
if ( heading_mode == FG_HEADING_LOCK ) { if ( heading_mode == FG_HEADING_LOCK ) {
@ -444,7 +444,7 @@ int FGAutopilot::run() {
// controls.set_rudder( 0.0 ); // controls.set_rudder( 0.0 );
} }
// altitude hold? // altitude hold
if ( altitude_hold ) { if ( altitude_hold ) {
double speed, max_climb, error; double speed, max_climb, error;
double prop_error, int_error; double prop_error, int_error;
@ -537,7 +537,7 @@ int FGAutopilot::run() {
controls.set_elevator( total_adj ); controls.set_elevator( total_adj );
} }
// auto throttle enabled? // auto throttle
if ( auto_throttle ) { if ( auto_throttle ) {
double error; double error;
double prop_error, int_error; double prop_error, int_error;

View file

@ -33,6 +33,7 @@ FGRadioStack *current_radiostack;
// Constructor // Constructor
FGRadioStack::FGRadioStack() { FGRadioStack::FGRadioStack() {
nav1_dist = 0.0;
need_update = true; need_update = true;
} }

View file

@ -483,11 +483,11 @@ bool fgInitSubsystems( void ) {
current_radiostack->set_nav1_freq( 117.30 ); current_radiostack->set_nav1_freq( 117.30 );
current_radiostack->set_nav1_alt_freq( 110.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_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 ); current_radiostack->set_adf_freq( 266.0 );