1
0
Fork 0

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:
curt 2002-02-27 18:05:17 +00:00
parent d514e8c255
commit 249fbedcae

View file

@ -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 );