updated
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
local max = 95
|
local max = 99
|
||||||
local maxVent = 80
|
local maxVent = 95
|
||||||
local minVent = 90
|
local minVent = 97
|
||||||
local min = 20
|
local min = 20
|
||||||
|
|
||||||
local function getValue()
|
local function getValue()
|
||||||
@@ -21,10 +21,11 @@ local function checkSteamLevel()
|
|||||||
reactor.scram();
|
reactor.scram();
|
||||||
turbine.setDumpingMode("DUMPING")
|
turbine.setDumpingMode("DUMPING")
|
||||||
burnRateDriver.stepDown()
|
burnRateDriver.stepDown()
|
||||||
elseif value >= maxVent-10 then
|
elseif value >= maxVent-1 then
|
||||||
print("Steam within vent range. Adjusting vents.")
|
print("Steam within vent range. Adjusting vents.")
|
||||||
turbine.setDumpingMode("DUMPING")
|
turbine.setDumpingMode("DUMPING")
|
||||||
burnRateDriver.stepDown()
|
burnRateDriver.stepDown()
|
||||||
|
sleep(1)
|
||||||
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("IDLE")
|
||||||
|
|||||||
Reference in New Issue
Block a user