mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 15:45:46 +08:00
Consider Channel Spacing (50, 25, 8.33kHz) for COM frequencies.
Deals with a special topic: While frequencies at VATSIM/flightsim are usually set in 25kHz spacing, some ATC stations (radar) require 8.33kHz tuning. The now made extension handles this and allows to listen to a voice room even if the corresponding frequency is not exactly tuned in. Example: EKDK_CTR 135,270 but needs to be tuned in as 135,275
This commit is contained in:
@@ -87,13 +87,10 @@ namespace BlackCore
|
||||
*/
|
||||
CVoiceRoomList CContextNetwork::getSelectedVoiceRooms() const
|
||||
{
|
||||
CFrequency com1 = this->m_ownAircraft.getCom1System().getFrequencyActive();
|
||||
CFrequency com2 = this->m_ownAircraft.getCom2System().getFrequencyActive();
|
||||
|
||||
CAtcStationList stationsCom1 = this->m_atcStationsOnline.findBy(&CAtcStation::getFrequency, com1);
|
||||
CAtcStationList stationsCom2 = this->m_atcStationsOnline.findBy(&CAtcStation::getFrequency, com2);
|
||||
stationsCom1.sortBy(&CAtcStation::getDistanceToPlane);
|
||||
CAtcStationList stationsCom1 = this->m_atcStationsOnline.findIfComUnitTunedIn25KHz(this->m_ownAircraft.getCom1System());
|
||||
CAtcStationList stationsCom2 = this->m_atcStationsOnline.findIfComUnitTunedIn25KHz(this->m_ownAircraft.getCom2System());
|
||||
stationsCom1.sortBy(&CAtcStation::getDistanceToPlane);
|
||||
stationsCom2.sortBy(&CAtcStation::getDistanceToPlane);
|
||||
|
||||
CVoiceRoom vr;
|
||||
CVoiceRoomList rooms;
|
||||
|
||||
Reference in New Issue
Block a user