mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
refs #386, further improvements on interpolation
* extended unit tests for interpolator / parts testing * allow to skip sorting when splitting by time * update ot aircraft to FSX in own member function * Skip time sync parts (FSX) when disabled
This commit is contained in:
@@ -76,9 +76,17 @@ namespace BlackMisc
|
||||
void CRemoteAircraftProviderDummy::insertNewSituation(const CAircraftSituation &situation)
|
||||
{
|
||||
this->m_situations.push_frontMaxElements(situation, 20);
|
||||
this->m_situations.sortLatestFirst(); // like in real world, latest should be first
|
||||
emit addedRemoteAircraftSituation(situation);
|
||||
}
|
||||
|
||||
void CRemoteAircraftProviderDummy::insertNewAircraftParts(const CAircraftParts &parts)
|
||||
{
|
||||
this->m_parts.push_frontMaxElements(parts, 20);
|
||||
this->m_parts.sortLatestFirst(); // like in real world, latest should be first
|
||||
emit addedRemoteAircraftParts(parts);
|
||||
}
|
||||
|
||||
void CRemoteAircraftProviderDummy::clear()
|
||||
{
|
||||
m_situations.clear();
|
||||
|
||||
Reference in New Issue
Block a user