Add 8.33 kHz spacing helper methods

Related to #186
This commit is contained in:
Lars Toenning
2023-02-05 11:26:15 +01:00
parent b3e5539ec2
commit 5724d286d0
2 changed files with 20 additions and 0 deletions

View File

@@ -148,6 +148,13 @@ namespace BlackMisc::Aviation
//! Round passed frequency in kHz to 8.33 frequency spacing
static int round8_33kHzChannel(int fKHz);
//! Is frequency a "new" 8.33 kHz frequency and not within 25 kHz spacing
//! E.g. returns false for 122.825 but true for 118.305
static bool isExclusiveWithin8_33kHzChannel(const PhysicalQuantities::CFrequency &freq);
//! Is frequency within 25 kHz frequency spacing
static bool isWithin25kHzChannel(const PhysicalQuantities::CFrequency &freq);
//! Parses almost any shitty string to a valid COM frequency
static PhysicalQuantities::CFrequency parseComFrequency(const QString &input, PhysicalQuantities::CPqString::SeparatorMode sep);