updated
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user