mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-10 05:55:33 +08:00
refs #369, changed interpolation to a working (but still too bad performing) version
* using split by callsign everywhere * helper function to insert_front * revised linear interpolator * renamed to remoteAircraft * renamed to container() in providers (gettters are usually copies) Issues why changes did so long: * insert in list is not adding in front, but same as push_back (that was confusing) * naming of values before/after in interpolator was ambigious * QMap keeps values sorted by key, not arbitrarily
This commit is contained in:
@@ -36,8 +36,16 @@ namespace BlackCore
|
||||
|
||||
void CAirspaceWatchdog::resetCallsign(const CCallsign &callsign)
|
||||
{
|
||||
Q_ASSERT(m_callsignTimestamps.contains(callsign));
|
||||
m_callsignTimestamps[callsign] = QDateTime::currentDateTimeUtc();
|
||||
if (m_callsignTimestamps.contains(callsign))
|
||||
{
|
||||
m_callsignTimestamps[callsign] = QDateTime::currentDateTimeUtc();
|
||||
}
|
||||
else
|
||||
{
|
||||
// that should rarely happen
|
||||
CLogMessage(this).warning("Watchdog reset for non-existing callsign: %1") << callsign;
|
||||
this->addCallsign(callsign);
|
||||
}
|
||||
}
|
||||
|
||||
void CAirspaceWatchdog::removeCallsign(const CCallsign &callsign)
|
||||
|
||||
Reference in New Issue
Block a user