KLN89: Move some KLN89 specific configuration from dclgps to kln89
This commit is contained in:
parent
d1601ff8b2
commit
7a0c2c2e8a
4 changed files with 8 additions and 6 deletions
|
@ -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!
|
_mapScaleIndex = 7; // I think that the above is more accurate for no-flightplan default, but this is more sane for initial testing!
|
||||||
_mapScaleAuto = true;
|
_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
|
// 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!
|
// TODO - do this better one day!
|
||||||
_airportTowns["KSFO"] = "San Francisco";
|
_airportTowns["KSFO"] = "San Francisco";
|
||||||
|
|
|
@ -292,6 +292,10 @@ private:
|
||||||
// Sometimes the datapages can be used to review a waypoint whilst the user makes a decision,
|
// Sometimes the datapages can be used to review a waypoint whilst the user makes a decision,
|
||||||
// and we need to remember why.
|
// and we need to remember why.
|
||||||
bool _dtoReview; // Set true when we a reviewing a waypoint for DTO operation.
|
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
|
#endif // _KLN89_HXX
|
||||||
|
|
|
@ -211,8 +211,6 @@ DCLGPS::DCLGPS(RenderArea2D* instrument) {
|
||||||
// Configuration Initialisation
|
// Configuration Initialisation
|
||||||
// Should this be in kln89.cxx ?
|
// Should this be in kln89.cxx ?
|
||||||
_turnAnticipationEnabled = false;
|
_turnAnticipationEnabled = false;
|
||||||
_suaAlertEnabled = false;
|
|
||||||
_altAlertEnabled = false;
|
|
||||||
|
|
||||||
_time = new SGTime;
|
_time = new SGTime;
|
||||||
|
|
||||||
|
|
|
@ -473,10 +473,6 @@ protected:
|
||||||
|
|
||||||
// Configuration that affects flightplan operation
|
// Configuration that affects flightplan operation
|
||||||
bool _turnAnticipationEnabled;
|
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.
|
// Magvar stuff. Might get some of this stuff (such as time) from FG in future.
|
||||||
SGTime* _time;
|
SGTime* _time;
|
||||||
|
|
Loading…
Add table
Reference in a new issue