Open Oliver-Bagin opened 1 year ago
Seeing as I did the UPS connection logic this is probably on me. What exactly is lagging? Is the front end laggy or does the latency blow up? It's possible I set up the pi with a 0 timeout for polling UPS status when disconnected or something silly like that that starves resources iff there's no UPS connection. I don't remember this being an issue before we introduced the UPS
Not sure exactly but it seems to me the entire Pi lags. The websocket stops responding at the very least and the frontend then lags. This lasts about 5 seconds and then works for about 2 seconds before freezing again for 5 seconds.
What happens if you comment out https://github.com/ANU-Rocketry/control-panel/blob/1226c754d4508af860321e404ba16ff18d343d77/src/server.py#L282 ?
I am not exactly sure what causes this issue but the Raspberry Pi lags a lot when the UPS is not connected. I suspect that this lag is due to the low compute of the Pi causing lag when trying to find the UPS. I think that we should block the software from showing if the UPS is not detected as it isn't safe to run the test stand.