Closed TwinFan closed 1 year ago
The previous commit makes sure that planes, for which no model can be derived, at least are shown (as IsPosOK
always returns true if no model could be found), albeit as default plane.
The perfect solution would allow to define a "slow" and a "fast" default plane...or any even more flexible model.
Describe the bug Planes with seemingly valid tracking data are still not displayed by LiveTraffic if the following is true:
model_typecode.txt
) and hence the default model configured by the user applies (by default "A320")FlightModel.prf
, significantly less already then possible in reality)As a result the live plane's tracking data is discarded one after the other due to invalid performance. With Debug-level logging these lines are produced:
To Reproduce Using "A3202" as default plane go to a place with lots of GA and other smaller traffic. KLAX is a good spot also for that.
Expected behavior Live planes should appear.
However, they cannot reasonably appear as A320s. One problem is that currently we wait for as long as we can before applying the
model_typecode.txt
approach of resolving the plane's type: Until the aircraft is actually created. But if it never gets created because we through away the data then...well...we never get there.Another problem might be that if we absolutely cannot determine the model, then there would be some new functionality required to cater for planes not matching the default plane. Suggestion to find a suitable model:
FlightModel.prf
...and if we need to iterate through all CSL models.Technical Info:
Log.txt