Patch from Melchior Franz:
altitude_mode is still undefined when FGAutopilot::update is first run.
This commit is contained in:
parent
412ca9a3d4
commit
1ba6272e3c
2 changed files with 2 additions and 0 deletions
src/Autopilot
|
@ -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");
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue