diff --git a/burnrate_driver.lua b/burnrate_driver.lua index 957bf06..856c49d 100644 --- a/burnrate_driver.lua +++ b/burnrate_driver.lua @@ -1,7 +1,7 @@ local max = 15 local init = 3 -local rateStep = 0.10 -local smallRateStep = 0.05 +local rateStep = 0.01 +local smallRateStep = 0.001 local min = 1 local function getValue() diff --git a/turbine_driver.lua b/turbine_driver.lua index 0bcdc86..6bdc56a 100644 --- a/turbine_driver.lua +++ b/turbine_driver.lua @@ -21,10 +21,10 @@ local function checkSteamLevel() reactor.scram(); turbine.setDumpingMode("DUMPING") burnRateDriver.stepDown() - elseif value >= minVent and value <= maxVent then + elseif value <= maxVent-10 then print("Steam within vent range. Adjusting vents.") - --turbine.setDumpingMode("DUMPING") - --burnRateDriver.stepDown() + turbine.setDumpingMode("DUMPING") + burnRateDriver.stepDown() elseif value >= min and value < minVent then print("Steam within normal operation range.") turbine.setDumpingMode("IDLE")