mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 23:05:36 +08:00
Clarify CSimulatedAircraft method name
This commit is contained in:
@@ -66,7 +66,7 @@ namespace BlackGui::Settings
|
||||
if (textMessage.isRadioMessage())
|
||||
{
|
||||
if (!this->popupFrequencyMessages()) { return false; }
|
||||
if (ownAircraft.isActiveFrequencyWithinChannelSpacing(textMessage.getFrequency())) { return true; }
|
||||
if (ownAircraft.hasComActiveFrequency(textMessage.getFrequency())) { return true; }
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -563,7 +563,7 @@ namespace BlackMisc::Simulation
|
||||
m_pilot.setCallsign(callsign);
|
||||
}
|
||||
|
||||
bool CSimulatedAircraft::isActiveFrequencyWithinChannelSpacing(const CFrequency &comFrequency) const
|
||||
bool CSimulatedAircraft::hasComActiveFrequency(const CFrequency &comFrequency) const
|
||||
{
|
||||
return m_com1system.isActiveFrequencySameFrequency(comFrequency) ||
|
||||
m_com2system.isActiveFrequencySameFrequency(comFrequency);
|
||||
|
||||
@@ -290,8 +290,8 @@ namespace BlackMisc
|
||||
//! Identical COM system?
|
||||
bool hasSameComData(const Aviation::CComSystem &com1, const Aviation::CComSystem &com2, const Aviation::CTransponder &transponder);
|
||||
|
||||
//! Is any (COM1/2) active frequency within the COM units channel spacing?
|
||||
bool isActiveFrequencyWithinChannelSpacing(const PhysicalQuantities::CFrequency &comFrequency) const;
|
||||
//! Is comFrequency selected in COM1 or COM2 as active frequency (with 5 kHz spacing for .x20/.x25 and .x70/.x75)
|
||||
bool hasComActiveFrequency(const PhysicalQuantities::CFrequency &comFrequency) const;
|
||||
|
||||
//! Get transponder
|
||||
const Aviation::CTransponder &getTransponder() const { return m_transponder; }
|
||||
|
||||
Reference in New Issue
Block a user