mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-09 05:28:09 +08:00
Ref T410, show number of SB4 packets received under simulator/information
This commit is contained in:
@@ -652,6 +652,9 @@ namespace BlackCore
|
||||
m_simulatorInternals.setSimulatorName(this->getSimulatorName());
|
||||
m_simulatorInternals.setSwiftPluginName(this->getSimulatorPluginInfo().toQString());
|
||||
|
||||
// model changed
|
||||
connect(this, &ISimulator::ownAircraftModelChanged, this, &ISimulator::onOwnModelChanged, Qt::QueuedConnection);
|
||||
|
||||
// info
|
||||
CLogMessage(this).info("Initialized simulator driver: '%1'") <<
|
||||
(this->getSimulatorInfo().isUnspecified() ?
|
||||
@@ -1026,6 +1029,12 @@ namespace BlackCore
|
||||
if (limited) { m_statsUpdateAircraftLimited++; }
|
||||
}
|
||||
|
||||
void ISimulator::onOwnModelChanged(const CAircraftModel &newModel)
|
||||
{
|
||||
Q_UNUSED(newModel);
|
||||
// can be overridden
|
||||
}
|
||||
|
||||
QString ISimulator::latestLoggedDataFormatted(const CCallsign &cs) const
|
||||
{
|
||||
const SituationLog s = m_interpolationLogger.getLastSituationLog(cs);
|
||||
|
||||
@@ -523,6 +523,9 @@ namespace BlackCore
|
||||
//! Update stats and flags
|
||||
void finishUpdateRemoteAircraftAndSetStatistics(qint64 startTime, bool limited = false);
|
||||
|
||||
//! Own model has been changed
|
||||
virtual void onOwnModelChanged(const BlackMisc::Simulation::CAircraftModel &newModel);
|
||||
|
||||
//! Lookup against DB data
|
||||
static BlackMisc::Simulation::CAircraftModel reverseLookupModel(const BlackMisc::Simulation::CAircraftModel &model);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user