Make sure when setting autopilot heading via the menu that the current
heading value is presented between 0 and 360.
This commit is contained in:
parent
d514e8c255
commit
249fbedcae
1 changed files with 1 additions and 0 deletions
|
@ -220,6 +220,7 @@ void NewHeading(puObject *cb)
|
|||
// string ApHeadingLabel( "Enter New Heading" );
|
||||
// ApHeadingDialogMessage -> setLabel(ApHeadingLabel.c_str());
|
||||
float heading = current_autopilot->get_DGTargetHeading();
|
||||
while ( heading < 0.0 ) { heading += 360.0; }
|
||||
ApHeadingDialogInput -> setValue ( heading );
|
||||
ApHeadingDialogInput -> acceptInput();
|
||||
FG_PUSH_PUI_DIALOG( ApHeadingDialog );
|
||||
|
|
Loading…
Add table
Reference in a new issue