updated
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
10
main.lua
10
main.lua
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user