updated
This commit is contained in:
@@ -17,14 +17,14 @@ local function watch()
|
|||||||
local value = getValue()
|
local value = getValue()
|
||||||
if value > max then
|
if value > max then
|
||||||
print("Warning: Steam above maximum! Taking action.")
|
print("Warning: Steam above maximum! Taking action.")
|
||||||
reactor.scram();
|
--reactor.scram();
|
||||||
turbine.setDumpingMode("DUMPING")
|
turbine.setDumpingMode("DUMPING")
|
||||||
elseif value >= minVent and value <= maxVent then
|
elseif value >= minVent and value <= maxVent then
|
||||||
print("Steam within vent range. Adjusting vents.")
|
print("Steam within vent range. Adjusting vents.")
|
||||||
turbine.setDumpingMode("DUMPING")
|
turbine.setDumpingMode("DUMPING")
|
||||||
elseif value >= min and value < minVent then
|
elseif value >= min and value < minVent then
|
||||||
print("Steam within normal operation range.")
|
print("Steam within normal operation range.")
|
||||||
turbine.setDumpingMode("IDLE")
|
turbine.setDumpingMode("DUMPING_EXCESS")
|
||||||
elseif value < min then
|
elseif value < min then
|
||||||
print("Warning: Steam below minimum! Taking action.")
|
print("Warning: Steam below minimum! Taking action.")
|
||||||
turbine.setDumpingMode("IDLE")
|
turbine.setDumpingMode("IDLE")
|
||||||
|
|||||||
Reference in New Issue
Block a user