Compare commits

...

2 commits

Author SHA1 Message Date
Rahix 995addbabc succd: Update rough vacuum hysteresis once more
All checks were successful
/ test (push) Successful in 9s
We see fluctuation slightly above 4e-2 mbar so let's increase the
hysteresis value a bit more.
2024-10-05 19:44:55 +02:00
Rahix 7a3784d3de succd: Hint at invalid process values
When the succbone connection breaks, add hints to the UI that values may
no longer be correct.
2024-10-05 19:43:54 +02:00
2 changed files with 10 additions and 1 deletions

View file

@ -410,6 +410,15 @@ window.addEventListener("load", (_) => {
socket.addEventListener("close", (event) => {
status.innerHTML = "Offline";
status.style = colors.highlightFault;
// Indicate all process values as unknown
[failsafe, highpressure, rp, dp, trough, thigh, volts, mbar].forEach((el) => {
if (!el.innerHTML.includes("??")) {
el.innerHTML += "??";
}
});
if (connected) {
console.log("Socket dead, reconnecting...");
}

View file

@ -14,7 +14,7 @@ var (
flagFake bool
flagListenHTTP string
flagPressureThresholdRough = ScientificNotationValue(1e-1)
flagPressureThresholdRoughHysteresis = ScientificNotationValue(2e-2)
flagPressureThresholdRoughHysteresis = ScientificNotationValue(3e-2)
flagPressureThresholdHigh = ScientificNotationValue(1e-4)
flagPressureThresholdHighHysteresis = ScientificNotationValue(2e-5)
)