The GPSD (agps3) socket reading loop (most likely a generator) does not fit well into the telemetry gathering loop. The GPS reading should therefore be in a separate thread and the latest values should be read through inter-thread communication. It may be easier to make it a separate process. Are Python processes preemptible.
Description
The GPSD (
agps3
) socket reading loop (most likely a generator) does not fit well into the telemetry gathering loop. The GPS reading should therefore be in a separate thread and the latest values should be read through inter-thread communication. It may be easier to make it a separate process. Are Python processes preemptible.