updated
This commit is contained in:
@@ -36,7 +36,7 @@ local function stepDown()
|
||||
reactor.setBurnRate(value - rateStep)
|
||||
end
|
||||
end
|
||||
local function startUp()
|
||||
local function startup()
|
||||
end
|
||||
|
||||
local function shutdown()
|
||||
@@ -54,4 +54,4 @@ local function report()
|
||||
setNewLine()
|
||||
monitor.write("Burn Rate: " .. value)
|
||||
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 }
|
||||
@@ -31,7 +31,7 @@ local function watch()
|
||||
end
|
||||
|
||||
|
||||
local function startUp()
|
||||
local function startup()
|
||||
end
|
||||
|
||||
local function shutdown()
|
||||
@@ -47,4 +47,4 @@ local function report()
|
||||
end
|
||||
|
||||
|
||||
return { report = report, watch = watch, startUp = startUp, shutdown = shutdown }
|
||||
return { report = report, watch = watch, startup = startup, shutdown = shutdown }
|
||||
@@ -12,7 +12,7 @@ local function watch()
|
||||
end
|
||||
end
|
||||
|
||||
local function startUp()
|
||||
local function startup()
|
||||
end
|
||||
|
||||
local function shutdown()
|
||||
@@ -31,4 +31,4 @@ local function report()
|
||||
setNewLine()
|
||||
monitor.write("External: " .. external)
|
||||
end
|
||||
return { report = report, watch = watch, startUp = startUp, shutdown = shutdown }
|
||||
return { report = report, watch = watch, startup = startup, shutdown = shutdown }
|
||||
16
main.lua
16
main.lua
@@ -64,13 +64,13 @@ local function runDisplay()
|
||||
end
|
||||
end
|
||||
|
||||
local function startUp()
|
||||
parallel.waitForAll(tempDriver.startUp,
|
||||
coolantDriver.startUp,
|
||||
statusDriver.startUp,
|
||||
turbineDriver.startUp,
|
||||
burnRateDriver.startUp,
|
||||
environmentDriver.startUp)
|
||||
local function startup()
|
||||
parallel.waitForAll(tempDriver.startup,
|
||||
coolantDriver.startup,
|
||||
statusDriver.startup,
|
||||
turbineDriver.startup,
|
||||
burnRateDriver.startup,
|
||||
environmentDriver.startup)
|
||||
end
|
||||
|
||||
local function shutDown()
|
||||
@@ -98,7 +98,7 @@ local function runSafe()
|
||||
sleep(1)
|
||||
end
|
||||
|
||||
startUp();
|
||||
startup();
|
||||
monitor.clear();
|
||||
-- local names = peripheral.getNames()
|
||||
-- for index, value in ipairs(names) do
|
||||
|
||||
@@ -40,7 +40,7 @@ end
|
||||
|
||||
|
||||
|
||||
local function startUp()
|
||||
local function startup()
|
||||
local sounds = {
|
||||
{ fileName = "control_alarm" }
|
||||
}
|
||||
@@ -57,4 +57,4 @@ end
|
||||
local function report()
|
||||
end
|
||||
|
||||
return { report = report, watch = watch, startUp = startUp, shutdown = shutdown }
|
||||
return { report = report, watch = watch, startup = startup, shutdown = shutdown }
|
||||
@@ -15,7 +15,7 @@ local function watch()
|
||||
end
|
||||
end
|
||||
|
||||
local function startUp()
|
||||
local function startup()
|
||||
reactor.setBurnRate(2)
|
||||
local status = reactor.getStatus()
|
||||
if(not status) then
|
||||
@@ -39,4 +39,4 @@ local function report()
|
||||
setNewLine()
|
||||
monitor.write("Reactor Status: " .. tostring(value))
|
||||
end
|
||||
return { report = report, watch = watch, startUp = startUp, shutdown = shutdown }
|
||||
return { report = report, watch = watch, startup = startup, shutdown = shutdown }
|
||||
@@ -32,7 +32,7 @@ local function watch()
|
||||
end
|
||||
|
||||
|
||||
local function startUp()
|
||||
local function startup()
|
||||
end
|
||||
|
||||
local function shutdown()
|
||||
@@ -46,4 +46,4 @@ local function report()
|
||||
setNewLine()
|
||||
monitor.write("Temperature: " .. value .. "F")
|
||||
end
|
||||
return { report = report, watch = watch, startUp = startUp, shutdown = shutdown }
|
||||
return { report = report, watch = watch, startup = startup, shutdown = shutdown }
|
||||
@@ -35,7 +35,7 @@ local function checkSteamLevel()
|
||||
end
|
||||
end
|
||||
|
||||
local function startUp()
|
||||
local function startup()
|
||||
end
|
||||
|
||||
local function shutdown()
|
||||
@@ -60,4 +60,4 @@ local function report()
|
||||
monitor.write("Turbine Vent: " .. turbine.getDumpingMode())
|
||||
end
|
||||
|
||||
return { report = report, watch = watch, startUp = startUp, shutdown = shutdown }
|
||||
return { report = report, watch = watch, startup = startup, shutdown = shutdown }
|
||||
Reference in New Issue
Block a user