@@ -34,7 +34,7 @@ namespace swift::simplugin::msfs2024common
3434 setupProvider, remoteAircraftProvider, logger))
3535 {
3636 this ->resetCameraPositions ();
37- m_type = aircraft. isTerrainProbe () ? TerrainProbe : AircraftNonAtc;
37+ m_type = AircraftNonAtc;
3838 m_interpolator->initCorrespondingModel (aircraft.getModel ());
3939 m_callsignByteArray = aircraft.getCallsignAsString ().toLatin1 ();
4040 }
@@ -43,7 +43,7 @@ namespace swift::simplugin::msfs2024common
4343 {
4444 m_aircraft = aircraft;
4545 m_callsignByteArray = aircraft.getCallsignAsString ().toLatin1 ();
46- m_type = aircraft. isTerrainProbe () ? TerrainProbe : AircraftNonAtc;
46+ m_type = AircraftNonAtc;
4747 }
4848
4949 void CSimConnectObject::setAircraftModelString (const QString &modelString)
@@ -78,7 +78,6 @@ namespace swift::simplugin::msfs2024common
7878 DWORD os = 0 ;
7979 switch (this ->getType ())
8080 {
81- case TerrainProbe: os = static_cast <DWORD>(CSimulatorMsfs2024::offsetSimObjTerrainProbe (offset)); break ;
8281 case AircraftNonAtc:
8382 case AircraftSimulatedObject:
8483 default : os = static_cast <DWORD>(CSimulatorMsfs2024::offsetSimObjAircraft (offset)); break ;
@@ -233,7 +232,6 @@ namespace swift::simplugin::msfs2024common
233232
234233 CSimConnectObject::SimObjectType CSimConnectObject::requestIdToType (DWORD requestId)
235234 {
236- if (CSimulatorMsfs2024::isRequestForSimObjTerrainProbe (requestId)) { return TerrainProbe; }
237235 if (CSimulatorMsfs2024::isRequestForSimObjAircraft (requestId)) { return AircraftNonAtc; }
238236 Q_ASSERT_X (false , Q_FUNC_INFO, " Wrong range" );
239237 return AircraftNonAtc;
@@ -243,13 +241,12 @@ namespace swift::simplugin::msfs2024common
243241 {
244242 static const QString a1 (" aircraft (non ATC)" );
245243 static const QString a2 (" aircraft (sim.object)" );
246- static const QString p (" probe" );
244+ // static const QString p("probe");
247245 static const QString u (" unknown" );
248246 switch (type)
249247 {
250248 case AircraftNonAtc: return a1;
251249 case AircraftSimulatedObject: return a2;
252- case TerrainProbe: return p;
253250 default : break ;
254251 }
255252 return u;
@@ -296,6 +293,7 @@ namespace swift::simplugin::msfs2024common
296293 return this ->getSimObjectForObjectId (objectId).getCallsign ();
297294 }
298295
296+ // TODO TZ optimize?
299297 CCallsignSet CSimConnectObjects::getAllCallsigns (bool withoutProbes) const
300298 {
301299 if (this ->isEmpty ()) { return CCallsignSet (); }
@@ -308,6 +306,7 @@ namespace swift::simplugin::msfs2024common
308306 return callsigns;
309307 }
310308
309+ // TODO TZ optimize?
311310 QStringList CSimConnectObjects::getAllCallsignStrings (bool sorted, bool withoutProbes) const
312311 {
313312 return this ->getAllCallsigns (withoutProbes).getCallsignStrings (sorted);
@@ -382,17 +381,17 @@ namespace swift::simplugin::msfs2024common
382381 return c > 0 ;
383382 }
384383
385- int CSimConnectObjects::removeAllProbes ()
386- {
387- const QList<CSimConnectObject> probes = this ->getProbes ();
388- int c = 0 ;
389- for (const CSimConnectObject &probe : probes)
390- {
391- this ->remove (probe.getCallsign ());
392- c++;
393- }
394- return c;
395- }
384+ // int CSimConnectObjects::removeAllProbes()
385+ // {
386+ // const QList<CSimConnectObject> probes = this->getProbes();
387+ // int c = 0;
388+ // for (const CSimConnectObject &probe : probes)
389+ // {
390+ // this->remove(probe.getCallsign());
391+ // c++;
392+ // }
393+ // return c;
394+ // }
396395
397396 bool CSimConnectObjects::containsPendingAdded () const
398397 {
@@ -479,32 +478,6 @@ namespace swift::simplugin::msfs2024common
479478 return l;
480479 }
481480
482- CSimConnectObject CSimConnectObjects::getNotPendingProbe () const
483- {
484- for (const CSimConnectObject &simObject : *this )
485- {
486- if (simObject.getType () == CSimConnectObject::TerrainProbe && !simObject.isPending ()) { return simObject; }
487- }
488- return CSimConnectObject ();
489- }
490-
491- CSimConnectObject CSimConnectObjects::getOldestNotPendingProbe () const
492- {
493- CSimConnectObject oldestProbe;
494- for (const CSimConnectObject &simObject : *this )
495- {
496- if (simObject.getType () == CSimConnectObject::TerrainProbe && !simObject.isPending ())
497- {
498- if (!oldestProbe.hasCreatedTimestamp () ||
499- oldestProbe.getCreatedTimestamp () > simObject.getCreatedTimestamp ())
500- {
501- oldestProbe = simObject;
502- }
503- }
504- }
505- return oldestProbe;
506- }
507-
508481 bool CSimConnectObjects::containsType (CSimConnectObject::SimObjectType type) const
509482 {
510483 for (const CSimConnectObject &simObject : *this )
0 commit comments