mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-04 08:55:43 +08:00
Ref T773, style
This commit is contained in:
committed by
Mat Sutcliffe
parent
e611f5109d
commit
f2096bd826
@@ -291,8 +291,8 @@ namespace BlackCore
|
|||||||
Fsd::CFSDClient *m_fsdClient = nullptr; //!< corresponding network interface
|
Fsd::CFSDClient *m_fsdClient = nullptr; //!< corresponding network interface
|
||||||
CAirspaceAnalyzer *m_analyzer = nullptr; //!< owned analyzer
|
CAirspaceAnalyzer *m_analyzer = nullptr; //!< owned analyzer
|
||||||
bool m_bookingsRequested = false; //!< bookings have been requested, it can happen we receive an BlackCore::Vatsim::CVatsimBookingReader::atcBookingsReadUnchanged signal
|
bool m_bookingsRequested = false; //!< bookings have been requested, it can happen we receive an BlackCore::Vatsim::CVatsimBookingReader::atcBookingsReadUnchanged signal
|
||||||
int m_maxDistanceNM = 125; //!< position range / FSD range
|
int m_maxDistanceNM = 125; //!< position range / FSD range
|
||||||
int m_maxDistanceNMHysteresis = qRound(1.1 * m_maxDistanceNM);
|
int m_maxDistanceNMHysteresis = qRound(1.1 * m_maxDistanceNM);
|
||||||
|
|
||||||
// Processing for queries etc. (fast)
|
// Processing for queries etc. (fast)
|
||||||
static constexpr int FastProcessIntervalMs = 50; //!< interval in ms
|
static constexpr int FastProcessIntervalMs = 50; //!< interval in ms
|
||||||
@@ -364,8 +364,8 @@ namespace BlackCore
|
|||||||
|
|
||||||
//! Store an aircraft situation under consideration of gnd.flags/CG and elevation
|
//! Store an aircraft situation under consideration of gnd.flags/CG and elevation
|
||||||
//! \threadsafe
|
//! \threadsafe
|
||||||
//! \remark sets gnd flag from parts if parts are available
|
//! \remark sets gnd.flag from parts if parts are available
|
||||||
//! \remark uses gnd elevation if found
|
//! \remark uses gnd.elevation if found
|
||||||
virtual BlackMisc::Aviation::CAircraftSituation storeAircraftSituation(const BlackMisc::Aviation::CAircraftSituation &situation, bool allowTestOffset = true) override;
|
virtual BlackMisc::Aviation::CAircraftSituation storeAircraftSituation(const BlackMisc::Aviation::CAircraftSituation &situation, bool allowTestOffset = true) override;
|
||||||
|
|
||||||
//! Add or update aircraft
|
//! Add or update aircraft
|
||||||
|
|||||||
@@ -380,16 +380,16 @@ namespace BlackCore
|
|||||||
|
|
||||||
void ISimulator::resetAircraftStatistics()
|
void ISimulator::resetAircraftStatistics()
|
||||||
{
|
{
|
||||||
m_statsUpdateAircraftRuns = 0;
|
m_statsUpdateAircraftRuns = 0;
|
||||||
m_statsUpdateAircraftTimeAvgMs = 0;
|
m_statsUpdateAircraftTimeAvgMs = 0;
|
||||||
m_statsUpdateAircraftTimeTotalMs = 0;
|
m_statsUpdateAircraftTimeTotalMs = 0;
|
||||||
m_statsMaxUpdateTimeMs = 0;
|
m_statsMaxUpdateTimeMs = 0;
|
||||||
m_statsCurrentUpdateTimeMs = 0;
|
m_statsCurrentUpdateTimeMs = 0;
|
||||||
m_statsPhysicallyAddedAircraft = 0;
|
m_statsPhysicallyAddedAircraft = 0;
|
||||||
m_statsPhysicallyRemovedAircraft = 0;
|
m_statsPhysicallyRemovedAircraft = 0;
|
||||||
m_statsLastUpdateAircraftRequestedMs = 0;
|
m_statsUpdateAircraftLimited = 0;
|
||||||
|
m_statsLastUpdateAircraftRequestedMs = 0;
|
||||||
m_statsUpdateAircraftRequestedDeltaMs = 0;
|
m_statsUpdateAircraftRequestedDeltaMs = 0;
|
||||||
m_statsUpdateAircraftLimited = 0;
|
|
||||||
ISimulationEnvironmentProvider::resetSimulationEnvironmentStatistics();
|
ISimulationEnvironmentProvider::resetSimulationEnvironmentStatistics();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -410,7 +410,7 @@ namespace BlackGui
|
|||||||
|
|
||||||
void CInterpolationLogDisplay::onInjectElevation()
|
void CInterpolationLogDisplay::onInjectElevation()
|
||||||
{
|
{
|
||||||
if (!m_simulator) { return; }
|
if (!m_simulator) { return; }
|
||||||
const QString elv = ui->le_InjectElevation->text().trimmed();
|
const QString elv = ui->le_InjectElevation->text().trimmed();
|
||||||
if (elv.isEmpty()) { return; }
|
if (elv.isEmpty()) { return; }
|
||||||
|
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ namespace BlackMisc
|
|||||||
|
|
||||||
int CElevationPlane::comparePropertyByIndex(const CPropertyIndex &index, const CElevationPlane &elevationPlane) const
|
int CElevationPlane::comparePropertyByIndex(const CPropertyIndex &index, const CElevationPlane &elevationPlane) const
|
||||||
{
|
{
|
||||||
Q_UNUSED(index);
|
Q_UNUSED(index)
|
||||||
return this->getAltitude().compare(elevationPlane.getAltitude());
|
return this->getAltitude().compare(elevationPlane.getAltitude());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -188,7 +188,7 @@ namespace BlackMisc
|
|||||||
{
|
{
|
||||||
// recalculate derivatives only if they changed
|
// recalculate derivatives only if they changed
|
||||||
const bool recalculate = (m_currentTimeMsSinceEpoch >= m_nextSampleAdjustedTime) || // new step
|
const bool recalculate = (m_currentTimeMsSinceEpoch >= m_nextSampleAdjustedTime) || // new step
|
||||||
(m_situationsLastModified > m_situationsLastModifiedUsed); // modified
|
(m_situationsLastModified > m_situationsLastModifiedUsed); // modified
|
||||||
|
|
||||||
if (recalculate)
|
if (recalculate)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user