mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
[FSD] Correctly set queried frequency
This commit is contained in:
committed by
Mat Sutcliffe
parent
325c869413
commit
14192585e2
@@ -1186,8 +1186,11 @@ namespace BlackCore
|
|||||||
}
|
}
|
||||||
else if (clientResponse.m_queryType == ClientQueryType::Com1Freq)
|
else if (clientResponse.m_queryType == ClientQueryType::Com1Freq)
|
||||||
{
|
{
|
||||||
emit com1FrequencyResponseReceived(clientResponse.sender(), responseData1);
|
if (responseData1.isEmpty()) { return; }
|
||||||
return;
|
bool ok;
|
||||||
|
const double freqMHz = responseData1.toDouble(&ok);
|
||||||
|
if (!ok) { return; }
|
||||||
|
emit com1FrequencyResponseReceived(clientResponse.sender(), CFrequency(freqMHz, CFrequencyUnit::MHz()));
|
||||||
}
|
}
|
||||||
else if (clientResponse.m_queryType == ClientQueryType::RealName)
|
else if (clientResponse.m_queryType == ClientQueryType::RealName)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -206,7 +206,7 @@ namespace BlackCore
|
|||||||
void aircraftConfigReceived(const QString &sender, const QJsonObject &config, qint64 currentOffsetTimeMs);
|
void aircraftConfigReceived(const QString &sender, const QJsonObject &config, qint64 currentOffsetTimeMs);
|
||||||
void validAtcResponseReceived(const QString &callsign, bool isValidAtc);
|
void validAtcResponseReceived(const QString &callsign, bool isValidAtc);
|
||||||
void capabilityResponseReceived(const BlackMisc::Aviation::CCallsign &sender, BlackMisc::Network::CClient::Capabilities capabilities);
|
void capabilityResponseReceived(const BlackMisc::Aviation::CCallsign &sender, BlackMisc::Network::CClient::Capabilities capabilities);
|
||||||
void com1FrequencyResponseReceived(const QString &sender, const QString &frequency);
|
void com1FrequencyResponseReceived(const QString &sender, const BlackMisc::PhysicalQuantities::CFrequency &frequency);
|
||||||
void realNameResponseReceived(const QString &sender, const QString &realName);
|
void realNameResponseReceived(const QString &sender, const QString &realName);
|
||||||
void serverResponseReceived(const QString &sender, const QString &hostName);
|
void serverResponseReceived(const QString &sender, const QString &hostName);
|
||||||
void planeInformationReceived(const QString &sender, const QString &aircraft, const QString &airline, const QString &livery);
|
void planeInformationReceived(const QString &sender, const QString &aircraft, const QString &airline, const QString &livery);
|
||||||
|
|||||||
Reference in New Issue
Block a user