mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 21:56:43 +08:00
Dont assert on external data
This commit is contained in:
@@ -796,7 +796,6 @@ namespace BlackCore
|
||||
int frequencyKHz = pos->frequency;
|
||||
CFrequency freq(frequencyKHz, CFrequencyUnit::kHz());
|
||||
freq.switchUnit(CFrequencyUnit::MHz()); // we would not need to bother, but this makes it easier to identify
|
||||
Q_ASSERT(CComSystem::isValidCivilAviationFrequency(freq));
|
||||
emit cbvar_cast(cbvar)->atcPositionUpdate(
|
||||
CCallsign(cbvar_cast(cbvar)->fromFSD(callsign), CCallsign::Atc), freq,
|
||||
CCoordinateGeodetic(pos->latitude, pos->longitude, 0), CLength(pos->visibleRange, CLengthUnit::NM()));
|
||||
|
||||
Reference in New Issue
Block a user