mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 00:16:51 +08:00
Increase ATIS range to be equal with APP/DEP having 150 nm
Summary: The previous 50 nm were too short. Maniphest Tasks: T481 Differential Revision: https://dev.swift-project.org/D83
This commit is contained in:
committed by
Mat Sutcliffe
parent
90bc693509
commit
f9a215a336
@@ -1044,7 +1044,7 @@ namespace BlackCore
|
||||
CLength range(pos->visibleRange, CLengthUnit::NM());
|
||||
QString cs = cbvar_cast(cbvar)->fromFSD(callsign);
|
||||
// ATIS often have a range of 0 nm. Correct this to a proper value.
|
||||
if (cs.contains("_ATIS") && pos->visibleRange == 0) { range.setValueSameUnit(50.0); }
|
||||
if (cs.contains("_ATIS") && pos->visibleRange == 0) { range.setValueSameUnit(150.0); }
|
||||
CCoordinateGeodetic position(pos->latitude, pos->longitude, 0);
|
||||
emit cbvar_cast(cbvar)->atcPositionUpdate(CCallsign(cs, CCallsign::Atc), freq, position, range);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user