mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-30 05:51:23 +08:00
[FSD] Style and comments
This commit is contained in:
committed by
Mat Sutcliffe
parent
22c0f57667
commit
991ba5ede8
@@ -40,7 +40,7 @@ namespace BlackCore
|
|||||||
{
|
{
|
||||||
BlackMisc::CLogMessage(static_cast<ClientResponse *>(nullptr)).warning(u"Wrong number of arguments.");
|
BlackMisc::CLogMessage(static_cast<ClientResponse *>(nullptr)).warning(u"Wrong number of arguments.");
|
||||||
return {};
|
return {};
|
||||||
};
|
}
|
||||||
|
|
||||||
QStringList responseData;
|
QStringList responseData;
|
||||||
if (tokens.size() > 3) { responseData = tokens.mid(3); }
|
if (tokens.size() > 3) { responseData = tokens.mid(3); }
|
||||||
|
|||||||
@@ -907,6 +907,10 @@ namespace BlackCore
|
|||||||
// IVAO only
|
// IVAO only
|
||||||
// Ref: https://github.com/DemonRem/X-IvAP/blob/1b0a14880532a0f5c8fe84be44e462c6892a5596/src/XIvAp/FSDprotocol.h
|
// Ref: https://github.com/DemonRem/X-IvAP/blob/1b0a14880532a0f5c8fe84be44e462c6892a5596/src/XIvAp/FSDprotocol.h
|
||||||
m_messageTypeMapping["!R"] = MessageType::RegistrationInfo;
|
m_messageTypeMapping["!R"] = MessageType::RegistrationInfo;
|
||||||
|
|
||||||
|
// IVAO parts
|
||||||
|
// https://discordapp.com/channels/539048679160676382/695961646992195644/707915838845485187
|
||||||
|
// https://dev.swift-project.org/w/knowhow/simandinterpolation/ivaoparts/
|
||||||
}
|
}
|
||||||
|
|
||||||
void CFSDClient::handleAtcDataUpdate(const QStringList &tokens)
|
void CFSDClient::handleAtcDataUpdate(const QStringList &tokens)
|
||||||
|
|||||||
@@ -285,6 +285,7 @@ namespace BlackCore
|
|||||||
if (str.isEmpty()) return ClientQueryType::Unknown;
|
if (str.isEmpty()) return ClientQueryType::Unknown;
|
||||||
|
|
||||||
// valid queries
|
// valid queries
|
||||||
|
// second part of a $CQ:, e.g. $CQ:DI, $CQ:ATC
|
||||||
if (str == "ATC") return ClientQueryType::IsValidATC;
|
if (str == "ATC") return ClientQueryType::IsValidATC;
|
||||||
if (str == "CAPS") return ClientQueryType::Capabilities;
|
if (str == "CAPS") return ClientQueryType::Capabilities;
|
||||||
if (str == "C?") return ClientQueryType::Com1Freq;
|
if (str == "C?") return ClientQueryType::Com1Freq;
|
||||||
|
|||||||
Reference in New Issue
Block a user