This commit is contained in:
2025-06-15 18:40:47 -04:00
parent 1a6f7fe882
commit 605326a3bf
8 changed files with 23 additions and 23 deletions

View File

@@ -36,7 +36,7 @@ local function stepDown()
reactor.setBurnRate(value - rateStep) reactor.setBurnRate(value - rateStep)
end end
end end
local function startUp() local function startup()
end end
local function shutdown() local function shutdown()
@@ -54,4 +54,4 @@ local function report()
setNewLine() setNewLine()
monitor.write("Burn Rate: " .. value) monitor.write("Burn Rate: " .. value)
end end
return { report = report, watch = watch, stepUp = stepUp, stepDown = stepDown, slowStepDown = slowStepDown, slowStepUp = slowStepUp, startUp = startUp, shutdown = shutdown } return { report = report, watch = watch, stepUp = stepUp, stepDown = stepDown, slowStepDown = slowStepDown, slowStepUp = slowStepUp, startup = startup, shutdown = shutdown }

View File

@@ -31,7 +31,7 @@ local function watch()
end end
local function startUp() local function startup()
end end
local function shutdown() local function shutdown()
@@ -47,4 +47,4 @@ local function report()
end end
return { report = report, watch = watch, startUp = startUp, shutdown = shutdown } return { report = report, watch = watch, startup = startup, shutdown = shutdown }

View File

@@ -12,7 +12,7 @@ local function watch()
end end
end end
local function startUp() local function startup()
end end
local function shutdown() local function shutdown()
@@ -31,4 +31,4 @@ local function report()
setNewLine() setNewLine()
monitor.write("External: " .. external) monitor.write("External: " .. external)
end end
return { report = report, watch = watch, startUp = startUp, shutdown = shutdown } return { report = report, watch = watch, startup = startup, shutdown = shutdown }

View File

@@ -64,13 +64,13 @@ local function runDisplay()
end end
end end
local function startUp() local function startup()
parallel.waitForAll(tempDriver.startUp, parallel.waitForAll(tempDriver.startup,
coolantDriver.startUp, coolantDriver.startup,
statusDriver.startUp, statusDriver.startup,
turbineDriver.startUp, turbineDriver.startup,
burnRateDriver.startUp, burnRateDriver.startup,
environmentDriver.startUp) environmentDriver.startup)
end end
local function shutDown() local function shutDown()
@@ -98,7 +98,7 @@ local function runSafe()
sleep(1) sleep(1)
end end
startUp(); startup();
monitor.clear(); monitor.clear();
-- local names = peripheral.getNames() -- local names = peripheral.getNames()
-- for index, value in ipairs(names) do -- for index, value in ipairs(names) do

View File

@@ -40,7 +40,7 @@ end
local function startUp() local function startup()
local sounds = { local sounds = {
{ fileName = "control_alarm" } { fileName = "control_alarm" }
} }
@@ -57,4 +57,4 @@ end
local function report() local function report()
end end
return { report = report, watch = watch, startUp = startUp, shutdown = shutdown } return { report = report, watch = watch, startup = startup, shutdown = shutdown }

View File

@@ -15,7 +15,7 @@ local function watch()
end end
end end
local function startUp() local function startup()
reactor.setBurnRate(2) reactor.setBurnRate(2)
local status = reactor.getStatus() local status = reactor.getStatus()
if(not status) then if(not status) then
@@ -39,4 +39,4 @@ local function report()
setNewLine() setNewLine()
monitor.write("Reactor Status: " .. tostring(value)) monitor.write("Reactor Status: " .. tostring(value))
end end
return { report = report, watch = watch, startUp = startUp, shutdown = shutdown } return { report = report, watch = watch, startup = startup, shutdown = shutdown }

View File

@@ -32,7 +32,7 @@ local function watch()
end end
local function startUp() local function startup()
end end
local function shutdown() local function shutdown()
@@ -46,4 +46,4 @@ local function report()
setNewLine() setNewLine()
monitor.write("Temperature: " .. value .. "F") monitor.write("Temperature: " .. value .. "F")
end end
return { report = report, watch = watch, startUp = startUp, shutdown = shutdown } return { report = report, watch = watch, startup = startup, shutdown = shutdown }

View File

@@ -35,7 +35,7 @@ local function checkSteamLevel()
end end
end end
local function startUp() local function startup()
end end
local function shutdown() local function shutdown()
@@ -60,4 +60,4 @@ local function report()
monitor.write("Turbine Vent: " .. turbine.getDumpingMode()) monitor.write("Turbine Vent: " .. turbine.getDumpingMode())
end end
return { report = report, watch = watch, startUp = startUp, shutdown = shutdown } return { report = report, watch = watch, startup = startup, shutdown = shutdown }