This commit is contained in:
2025-06-14 18:46:23 -04:00
parent aa56d4289b
commit 5557180a57
2 changed files with 15 additions and 6 deletions

View File

@@ -8,11 +8,13 @@ end
local function checkCoolantLevel()
local coolantLevel = getValue()
if coolantLevel > maxValue then
print("Warning: Coolant above maximum! Stepping down burn rate.")
-- Do nothing if coolant is above the max value
elseif coolantLevel > minValue then
print("Coolant approaching minimum, slowly stepping down burn rate.")
burnRateDriver.slowStepDown()
elseif coolantLevel <= minValue then
print("Warning: Coolant below minimum! Stepping down burn rate.")
burnRateDriver.stepDown()
elseif coolantLevel < minValue then
print("Warning: Coolant below minimum! Stepping up burn rate.")
burnRateDriver.stepUp()
end
return true
end