From 418afbb757b4d6c5da0dc4ef4d1ddfbcd4be4459 Mon Sep 17 00:00:00 2001 From: itzmarkoni Date: Sat, 14 Jun 2025 19:12:23 -0400 Subject: [PATCH] updated burnrate --- burnrate_driver.lua | 4 ++-- turbine_driver.lua | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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")