From a6e5fe9e90bca7a0affc00bbaab434ff0a178921 Mon Sep 17 00:00:00 2001 From: itzmarkoni Date: Sat, 14 Jun 2025 17:53:47 -0400 Subject: [PATCH] updated --- burnrate_driver.lua | 6 +++--- coolant_driver.lua | 2 +- status_driver.lua | 2 +- temperature_driver.lua | 5 ++--- turbine_driver.lua | 2 +- 5 files changed, 8 insertions(+), 9 deletions(-) diff --git a/burnrate_driver.lua b/burnrate_driver.lua index d7100a2..9d1435d 100644 --- a/burnrate_driver.lua +++ b/burnrate_driver.lua @@ -22,14 +22,14 @@ end local function watch() end -function stepUp() +local function stepUp() -- local value = getValue() -- if value < max then -- reactor.setBurnRate(value + rateStep) -- end end -function stepDown() +local function stepDown() -- local value = getValue() -- if value > min then -- reactor.setBurnRate(value - rateStep) @@ -43,4 +43,4 @@ local function report() monitor.clearLine() monitor.write("Burn Rate: " .. value) end -return { report = report, watch = watch } \ No newline at end of file +return { report = report, watch = watch, stepUp = stepUp, stepDown = stepDown } \ No newline at end of file diff --git a/coolant_driver.lua b/coolant_driver.lua index cafa565..ef62bb1 100644 --- a/coolant_driver.lua +++ b/coolant_driver.lua @@ -22,7 +22,7 @@ local function watch() checkCoolantLevel() end -function checkCoolantLevel() +local function checkCoolantLevel() local coolantLevel = getValue() return true end diff --git a/status_driver.lua b/status_driver.lua index c3af4f9..b0f11e5 100644 --- a/status_driver.lua +++ b/status_driver.lua @@ -20,7 +20,7 @@ local function watch() end -function checkStatus() +local function checkStatus() local value = getValue() end diff --git a/temperature_driver.lua b/temperature_driver.lua index 72aa046..dcea73f 100644 --- a/temperature_driver.lua +++ b/temperature_driver.lua @@ -3,8 +3,7 @@ local min = 212 local function getValue() - -- local kelvin = reactor.getTemperature() or 0 - local kelvin = 3000 + local kelvin = reactor.getTemperature() or 0 local fahrenheit = (kelvin - 273.15) * 9 / 5 + 32 return math.floor(fahrenheit * 10000 + 0.5) / 10000 end @@ -27,7 +26,7 @@ local function watch() checkTemperature() end -function checkTemperature() +local function checkTemperature() local temperature = getValue() local upperThreshold = max - 20 local lowerThreshold = min + 20 diff --git a/turbine_driver.lua b/turbine_driver.lua index 0183fa6..82d2215 100644 --- a/turbine_driver.lua +++ b/turbine_driver.lua @@ -24,7 +24,7 @@ local function watch() checkSteamLevel() end -function checkSteamLevel() +local function checkSteamLevel() local value = getValue() if value > max then print("Warning: Steam above maximum! Taking action.")