]> git.mxchange.org Git - flightgear.git/commitdiff
Patch from Melchior Franz:
authordavid <david>
Sat, 30 Mar 2002 12:51:02 +0000 (12:51 +0000)
committerdavid <david>
Sat, 30 Mar 2002 12:51:02 +0000 (12:51 +0000)
altitude_mode is still undefined when FGAutopilot::update is
first run.

src/Autopilot/newauto.cxx
src/Autopilot/newauto.hxx

index 8d13af2a97bb83951dee44558dac60d1a3c29874..a2d188a6adbbd5e4d20df4bc87690877a8f36b40 100644 (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");
index 6097303c1b727ae05f7f4afe116f4d31331dbd0e..2c1124d12ca01a565f5bc0a9ef9b5ecd17f4a9d4 100644 (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
 
 
 /**