mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 11:05:33 +08:00
Ref T773, style and comments
This commit is contained in:
committed by
Mat Sutcliffe
parent
9924eb4551
commit
812619470b
@@ -365,9 +365,15 @@ namespace BlackCore
|
||||
if (this->isShuttingDown()) { return; }
|
||||
if (plane.isNull()) { return; }
|
||||
|
||||
// update in simulator
|
||||
ISimulationEnvironmentProvider::rememberGroundElevation(callsign, plane); // in simulator
|
||||
|
||||
// and in remote aircraft for given callsign
|
||||
const int updated = CRemoteAircraftAware::updateAircraftGroundElevation(callsign, plane, CAircraftSituation::FromProvider);
|
||||
Q_UNUSED(updated)
|
||||
|
||||
// signal we have received the elevation
|
||||
// used by log display
|
||||
emit this->receivedRequestedElevation(plane, callsign);
|
||||
}
|
||||
|
||||
|
||||
@@ -318,7 +318,7 @@ namespace BlackGui
|
||||
void CInterpolationLogDisplay::onPartsAdded(const CCallsign &callsign, const CAircraftParts &parts)
|
||||
{
|
||||
if (!this->logCallsign(callsign)) { return; }
|
||||
Q_UNUSED(parts);
|
||||
Q_UNUSED(parts)
|
||||
const CAircraftPartsList partsList = m_airspaceMonitor->remoteAircraftParts(callsign);
|
||||
ui->tvp_InboundAircraftParts->updateContainerAsync(partsList);
|
||||
ui->led_Parts->blink();
|
||||
@@ -444,7 +444,7 @@ namespace BlackGui
|
||||
if (!m_airspaceMonitor) { return; }
|
||||
static const QString info("%1/%2 hits %3 times: %4");
|
||||
const QString foundMissed = m_airspaceMonitor->getElevationsFoundMissedInfo();
|
||||
const QString reqTimes = m_airspaceMonitor->getElevationRequestTimesInfo();
|
||||
const QString reqTimes = m_airspaceMonitor->getElevationRequestTimesInfo();
|
||||
ui->le_ElevationReqRec->setText(info.arg(m_elvRequested).arg(m_elvReceived).arg(foundMissed, reqTimes));
|
||||
}
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace BlackMisc
|
||||
{
|
||||
// we keep latest at front
|
||||
// * we assume we find them faster
|
||||
// * and need the more frequently (the recent ones)
|
||||
// * and need them more frequently (the recent ones)
|
||||
const qint64 now = QDateTime::currentMSecsSinceEpoch();
|
||||
QWriteLocker l(&m_lockElvCoordinates);
|
||||
if (m_elvCoordinates.size() > m_maxElevations) { m_elvCoordinates.pop_back(); }
|
||||
|
||||
Reference in New Issue
Block a user