safe output ramping, colored display, button flash

This commit is contained in:
2026-07-18 21:12:25 +02:00
parent 3ab120b1fe
commit eb0c19f54a
+8
View File
@@ -227,6 +227,8 @@ function reactorControl()
drawTerminalText(1, i, "Output Gate", fluxgate.getSignalLowFlow()) drawTerminalText(1, i, "Output Gate", fluxgate.getSignalLowFlow())
i = i + 1 i = i + 1
drawTerminalText(1, i, "Input Gate", inputFluxgate.getSignalLowFlow()) drawTerminalText(1, i, "Input Gate", inputFluxgate.getSignalLowFlow())
i = i + 1
drawTerminalText(1, i, "Target Output", targetOutput)
-- Reactor Control Logic -- Reactor Control Logic
if emergencyCharge then if emergencyCharge then
@@ -373,6 +375,12 @@ function changeOutputValue(num, val)
else else
targetOutput = math.max(targetOutput - num, 0) targetOutput = math.max(targetOutput - num, 0)
end end
local ri_local = reactor.getReactorInfo()
if not ri_local or ri_local.status ~= "running" then
fluxgate.setSignalLowFlow(targetOutput)
end
updateReactorInfo() updateReactorInfo()
save_config() save_config()
end end