Make the comments about switching to the DIR page more useful
This commit is contained in:
parent
f696c541be
commit
00d9abef42
1 changed files with 8 additions and 3 deletions
|
@ -523,9 +523,15 @@ void KLN89::ClrPressed() {
|
||||||
|
|
||||||
void KLN89::DtoPressed() {
|
void KLN89::DtoPressed() {
|
||||||
if(_activePage != _dir_page) {
|
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) {
|
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
|
if(!_activePage->GetId().empty()) { // Guard against no user waypoints defined
|
||||||
_dir_page->SetId(_activePage->GetId());
|
_dir_page->SetId(_activePage->GetId());
|
||||||
} else {
|
} else {
|
||||||
|
@ -535,7 +541,6 @@ void KLN89::DtoPressed() {
|
||||||
// NAV 4
|
// NAV 4
|
||||||
_dir_page->SetId(((KLN89NavPage*)_activePage)->GetNav4WpId());
|
_dir_page->SetId(((KLN89NavPage*)_activePage)->GetNav4WpId());
|
||||||
} else if(_curPage == 7 && _activePage->GetSubPage() == 0 && _mode == KLN89_MODE_CRSR) {
|
} else if(_curPage == 7 && _activePage->GetSubPage() == 0 && _mode == KLN89_MODE_CRSR) {
|
||||||
//cout << "Checking the fpl page!\n";
|
|
||||||
// FPL 0
|
// FPL 0
|
||||||
if(!_activePage->GetId().empty()) {
|
if(!_activePage->GetId().empty()) {
|
||||||
//cout << "Not empty!!!\n";
|
//cout << "Not empty!!!\n";
|
||||||
|
|
Loading…
Reference in a new issue