Skip to content

Commit

Permalink
Airspace/AirspaceClass: add UNCLASSIFIED to AirspaceClass
Browse files Browse the repository at this point in the history
  • Loading branch information
ubx committed Feb 5, 2024
1 parent 5a017a2 commit 5b567f4
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NEWS.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ Version 7.42 - not yet released
- fix bogus "Latin-1 to UTF-8 conversion failed" error
* Kobo
- Wifi setup, display signal level in dBm for new models
* airspace
- add UNCLASSIFIED to airspace class

Version 7.41 - 2023/12/21
* data files
Expand Down
1 change: 1 addition & 0 deletions src/Airspace/AirspaceParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ static constexpr AirspaceClassStringCouple airspace_class_strings[] = {
{ "RMZ", RMZ },
{ "MATZ", MATZ },
{ "GSEC", WAVE },
{ "UNCLASSIFIED", UNCLASSIFIED },
};

static constexpr AirspaceClassCharCouple airspace_tnp_class_chars[] = {
Expand Down
1 change: 1 addition & 0 deletions src/Engine/Airspace/AirspaceClass.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@ enum AirspaceClass : uint8_t
CLASSG,
MATZ,
RMZ,
UNCLASSIFIED,
AIRSPACECLASSCOUNT
};
2 changes: 2 additions & 0 deletions src/Formatter/AirspaceFormatter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ static const TCHAR *const airspace_class_names[] = {
_T("Class G"),
_T("Military Aerodrome Traffic Zone"),
_T("Radio Mandatory Zone"),
_T("Unclassified"),
};

static_assert(ARRAY_SIZE(airspace_class_names) ==
Expand All @@ -50,6 +51,7 @@ static const TCHAR *const airspace_class_short_names[] = {
_T("G"),
_T("MATZ"),
_T("RMZ"),
_T(""),
};

static_assert(ARRAY_SIZE(airspace_class_short_names) ==
Expand Down

0 comments on commit 5b567f4

Please sign in to comment.