snstac / adsbxcot

Display Aircraft in TAK
https://adsbxcot.rtfd.io
Apache License 2.0
51 stars 14 forks source link

Slow Motion #3

Closed ampledata closed 3 years ago

ampledata commented 3 years ago

Using adsbxcot with TAK Server 4.2 and both ATAK and WinTAK EUDs, airplanes appear to be going in 'slow motion'.

ampledata commented 3 years ago

The tracks path are dead on but lets say I have 50 aircraft on screen at once, they seem to update 1 aircraft position about every 5 seconds.

ampledata commented 3 years ago

The problem seems to be more pronounced with more aircraft.

ampledata commented 3 years ago

So with the help of @PacketRacket#6010 we found the problem some folks may have been having with the adsbcot/aprscot/adsbxcot/startuxcot/etc tools, there was a work-around added early on to the pytak library that would add a random sleep between transmissions to a CoT destination (for example, when sending to FTS or TAK Server). This was to avoid FTS' throttling issue. The side effect was the slow motion or jumping around that everyone is seeing. You can DISABLE this sleep by adding the following variable to your environment: DISABLE_RANDOM_SLEEP=1 You can do this before you start a command like so:

export DISABLE_RANDOM_SLEEP=1
adsbcot ....

Or you can add it inline: DISABLE_RANDOM_SLEEP=1 adsbcot ...