5 Commits

Author SHA1 Message Date
e1c54fec91
main: add configurable poll/command rates
These are coupled in a somewhat nonintuitive manner. Previously, we
would send a command every other request. Due to an oversight, we were
only sending a request once per second, which meant we were reading
position once every two seconds and writing position once every two
seconds. However, this seemed to work pretty well (at least the radio
performance was largely improved and qualitatively it seemed like the
controller was doing a better job of keeping up with the pointing
target).

I wanted the UI to update the position more frequently, so we keep the
scheme of sending a command every N requests, but we send
significantly more get position requests. These can be adjusted on the
fly in order to get an idea of how much the communication pattern
actually impacts the pointing performance.
2024-08-11 20:31:01 -07:00
8c6d9431c8
main: some minor cleanup 2024-08-10 10:54:15 -07:00
02381539a7
main: draw something resembling a user interface
Very simplistic, but, and here's the key, it works.
2024-08-10 10:53:30 -07:00
351b5ccf59
main: functioning(?) man in the middle
This is very messy. I forgot how much callback-based async programming
sucks, especially without closures. Now I need to slap together the
UI.

This essentially has a "fixed" rate poll loop that alternates between
setting the position and getting the position. We return mangled
positions through the interface for display purposes, so this might be
usable.
2024-08-10 00:45:28 -07:00
7692cb4bc7
init
I will never get tired of vendoring dependencies. ha ha. It is possible
I am insane. I had to do a lot of pruning to get these not to be
ridiculous (especially the unicode data, which had nearly 1 million
lines of... stuff).
2024-08-09 19:26:32 -07:00