This commit is contained in:
2025-06-14 17:02:44 -04:00
parent 3297944cda
commit 904309aa0f
6 changed files with 99 additions and 28 deletions

View File

@@ -13,18 +13,26 @@ local function color()
end
local function watch()
print("Turbine Steam Filled: " .. getValue())
while true do
checkSteamLevel()
end
end
local function checkSteamLevel()
local value = getValue()
if value > max then
print("Warning: Steam above maximum! Taking action.")
--reactor.scram();
reactor.scram();
turbine.setDumpingMode("DUMPING")
burnRateDriver.stepDown()
elseif value >= minVent and value <= maxVent then
print("Steam within vent range. Adjusting vents.")
turbine.setDumpingMode("DUMPING")
burnRateDriver.stepDown()
elseif value >= min and value < minVent then
print("Steam within normal operation range.")
turbine.setDumpingMode("DUMPING_EXCESS")
turbine.setDumpingMode("DUMPING")
burnRateDriver.stepDown()
elseif value < min then
print("Warning: Steam below minimum! Taking action.")
turbine.setDumpingMode("IDLE")