1
0
Fork 0

Patch from Melchior Franz:

altitude_mode is still undefined when FGAutopilot::update is
first run.
This commit is contained in:
david 2002-03-30 12:51:02 +00:00
parent 412ca9a3d4
commit 1ba6272e3c
2 changed files with 2 additions and 0 deletions

View file

@ -256,6 +256,7 @@ void FGAutopilot::init ()
altitude_hold = false ; // turn the altitude hold off
auto_throttle = false ; // turn the auto throttle off
heading_mode = DEFAULT_AP_HEADING_LOCK;
altitude_mode = DEFAULT_AP_ALTITUDE_LOCK;
DGTargetHeading = fgGetDouble("/autopilot/settings/heading-bug-deg");
TargetHeading = fgGetDouble("/autopilot/settings/heading-bug-deg");

View file

@ -267,6 +267,7 @@ private:
#define DEFAULT_AP_HEADING_LOCK FGAutopilot::FG_DG_HEADING_LOCK
// #define DEFAULT_AP_HEADING_LOCK FGAutopilot::FG_TRUE_HEADING_LOCK
#define DEFAULT_AP_ALTITUDE_LOCK FGAutopilot::FG_ALTITUDE_LOCK
/**