This commit is contained in:
2025-06-14 17:28:05 -04:00
parent 6374746411
commit e5ea5fa6ec
2 changed files with 7 additions and 7 deletions

View File

@@ -20,14 +20,14 @@ local function watch()
end end
end end
local function stepUp() function stepUp()
local value = getValue() local value = getValue()
if value < max then if value < max then
reactor.setBurnRate(value + rateStep) reactor.setBurnRate(value + rateStep)
end end
end end
local function stepDown() function stepDown()
local value = getValue() local value = getValue()
if value > min then if value > min then
reactor.setBurnRate(value - rateStep) reactor.setBurnRate(value - rateStep)

View File

@@ -14,11 +14,11 @@ burnRateDriver = kernel.addDriver("burnrate_driver")
local function runMonitors() local function runMonitors()
parallel.waitForAll( parallel.waitForAll(
tempDriver.watch, tempDriver.watch(),
coolantDriver.watch, coolantDriver.watch(),
statusDriver.watch, statusDriver.watch(),
turbineDriver.watch, turbineDriver.watch(),
burnRateDriver.watch burnRateDriver.watch()
) )
end end