Ref T773, style and comments

This commit is contained in:
Klaus Basan
2020-01-31 18:29:16 +01:00
committed by Mat Sutcliffe
parent 9924eb4551
commit 812619470b
3 changed files with 9 additions and 3 deletions

View File

@@ -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);
}

View File

@@ -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));
}

View File

@@ -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(); }