]> git.mxchange.org Git - flightgear.git/commitdiff
Make the comments about switching to the DIR page more useful
authordaveluff <daveluff>
Tue, 3 Nov 2009 22:54:05 +0000 (22:54 +0000)
committerTim Moore <timoore@redhat.com>
Wed, 4 Nov 2009 22:15:41 +0000 (23:15 +0100)
src/Instrumentation/KLN89/kln89.cxx

index 4387ddc1959bce9c115797374c49b96c95d8870e..eebf46e168d4e959e7f06337a6de0e0f1b2928f8 100644 (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";