1 // kln89_page_*.[ch]xx - this file is one of the "pages" that
2 // are used in the KLN89 GPS unit simulation.
4 // Written by David Luff, started 2005.
6 // Copyright (C) 2005 - David C Luff - david.luff@nottingham.ac.uk
8 // This program is free software; you can redistribute it and/or
9 // modify it under the terms of the GNU General Public License as
10 // published by the Free Software Foundation; either version 2 of the
11 // License, or (at your option) any later version.
13 // This program is distributed in the hope that it will be useful, but
14 // WITHOUT ANY WARRANTY; without even the implied warranty of
15 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 // General Public License for more details.
18 // You should have received a copy of the GNU General Public License
19 // along with this program; if not, write to the Free Software
20 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26 class KLN89NavPage : public KLN89Page {
29 KLN89NavPage(KLN89* parent);
32 void Update(double dt);
44 // Returns the id string of the selected waypoint on NAV4 if valid, else returns an empty string.
48 int _posFormat; // 0 => lat,lon; 1 => ref to wp.
50 int _vnv; // 0 => To, 1 => Fr, 2 => off.
52 // The data snippet to be displayed in field 1 when the moving map is active (NAV 4)
53 int _nav4DataSnippet; // 0 => DTK, 1 => groundspeed, 2 => ETE, 3 => cross-track correction.
55 // Format to draw in the CDI field.
56 // 0 => CDI, 1 => Cross track correction (eg " Fly R 2.15nm"), 2 => cdi scale (eg "CDI Scale:5.0nm")
59 // Drawing of apt, vor and sua on the moving map can be temporarily suspended
60 // Note that this should be cleared when page focus is lost, or when the menu is displayed.
67 // NAV 4 waypoint scan drawing housekeeping.