1
0
Fork 0

KLN89: Move some KLN89 specific configuration from dclgps to kln89

This commit is contained in:
Dave Luff 2010-12-05 17:36:32 +00:00
parent d1601ff8b2
commit 7a0c2c2e8a
4 changed files with 8 additions and 6 deletions

View file

@ -224,6 +224,10 @@ KLN89::KLN89(RenderArea2D* instrument)
_mapScaleIndex = 7; // I think that the above is more accurate for no-flightplan default, but this is more sane for initial testing!
_mapScaleAuto = true;
// Configuration. Eventually this may be user-achivable in order that settings can be persistent between sessions.
_suaAlertEnabled = false;
_altAlertEnabled = false;
// Mega-hack - hardwire airport town and state names for the FG base area since we don't have any data for these at the moment
// TODO - do this better one day!
_airportTowns["KSFO"] = "San Francisco";

View file

@ -292,6 +292,10 @@ private:
// Sometimes the datapages can be used to review a waypoint whilst the user makes a decision,
// and we need to remember why.
bool _dtoReview; // Set true when we a reviewing a waypoint for DTO operation.
// Configuration settings that the user can set via. the KLN89 SET pages.
bool _suaAlertEnabled; // Alert user to potential SUA entry
bool _altAlertEnabled; // Alert user to min safe alt violation
};
#endif // _KLN89_HXX

View file

@ -211,8 +211,6 @@ DCLGPS::DCLGPS(RenderArea2D* instrument) {
// Configuration Initialisation
// Should this be in kln89.cxx ?
_turnAnticipationEnabled = false;
_suaAlertEnabled = false;
_altAlertEnabled = false;
_time = new SGTime;

View file

@ -473,10 +473,6 @@ protected:
// Configuration that affects flightplan operation
bool _turnAnticipationEnabled;
// Configuration that affects general operation
bool _suaAlertEnabled; // Alert user to potential SUA entry
bool _altAlertEnabled; // Alert user to min safe alt violation
// Magvar stuff. Might get some of this stuff (such as time) from FG in future.
SGTime* _time;