1
0
Fork 0

Make the comments about switching to the DIR page more useful

This commit is contained in:
daveluff 2009-11-03 22:54:05 +00:00 committed by Tim Moore
parent f696c541be
commit 00d9abef42

View file

@ -523,9 +523,15 @@ void KLN89::ClrPressed() {
void KLN89::DtoPressed() {
if(_activePage != _dir_page) {
// Figure out which waypoint the dir page should display
// Figure out which waypoint the dir page should display, according to the following rules:
// 1. If the FPL 0 page is displayed AND the cursor is over one of the waypoints, display that waypoint.
// 2. If the NAV 4 page is displayed with the inner knob pulled out, display the waypoint highlighted in the lower RH corner of the nav page.
// 3. If any of APT, VOR, NDB, INT, USR or ACT pages is displayed then display the waypoint being viewed.
// 4. If none of the above, display the active waypoint, unless the active waypoint is the MAP of an approach and it has been flown past
// (no waypoint sequence past the MAP), in which case display the first waypoint of the missed approach procedure.
// 5. If none of the above (i.e. no active waypoint) then display blanks.
if(_curPage <= 5) {
// Apt, Vor, Ndb, Int, Usr or Act
// APT, VOR, NDB, INT, USR or ACT
if(!_activePage->GetId().empty()) { // Guard against no user waypoints defined
_dir_page->SetId(_activePage->GetId());
} else {
@ -535,7 +541,6 @@ void KLN89::DtoPressed() {
// NAV 4
_dir_page->SetId(((KLN89NavPage*)_activePage)->GetNav4WpId());
} else if(_curPage == 7 && _activePage->GetSubPage() == 0 && _mode == KLN89_MODE_CRSR) {
//cout << "Checking the fpl page!\n";
// FPL 0
if(!_activePage->GetId().empty()) {
//cout << "Not empty!!!\n";