Fixes to magnetic compass.
Fixed a typo in disabling autothrottle.
This commit is contained in:
parent
fb2a4f6909
commit
f886e46623
2 changed files with 2 additions and 1 deletions
|
@ -840,7 +840,7 @@ void FGAutopilot::AutoThrottleAdjust( double inc ) {
|
||||||
void FGAutopilot::set_AutoThrottleEnabled( bool value ) {
|
void FGAutopilot::set_AutoThrottleEnabled( bool value ) {
|
||||||
auto_throttle = value;
|
auto_throttle = value;
|
||||||
|
|
||||||
if ( auto_throttle = true ) {
|
if ( auto_throttle == true ) {
|
||||||
TargetSpeed = FGBFI::getAirspeed();
|
TargetSpeed = FGBFI::getAirspeed();
|
||||||
speed_error_accum = 0.0;
|
speed_error_accum = 0.0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -189,6 +189,7 @@ MagRibbon::draw () const
|
||||||
yoffset = 0.0;
|
yoffset = 0.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
xoffset = 1.0 - xoffset;
|
||||||
// Adjust to put the number in the centre
|
// Adjust to put the number in the centre
|
||||||
xoffset -= 0.25;
|
xoffset -= 0.25;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue