summaryrefslogtreecommitdiff
path: root/controller.lua
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2023-08-12 14:45:18 -0500
committercheapie <no-email-for-you@example.com>2023-08-12 14:45:18 -0500
commit407a3fa6834c8fe06fa01b71aeeee72ae0c2f5ea (patch)
tree3764696a2175764415ee756b19dc5b44b439589e /controller.lua
parent951e2e564161e1403d7d7885d6c0c892ebf2b309 (diff)
downloadcelevator-407a3fa6834c8fe06fa01b71aeeee72ae0c2f5ea.tar
celevator-407a3fa6834c8fe06fa01b71aeeee72ae0c2f5ea.tar.gz
celevator-407a3fa6834c8fe06fa01b71aeeee72ae0c2f5ea.tar.bz2
celevator-407a3fa6834c8fe06fa01b71aeeee72ae0c2f5ea.tar.xz
celevator-407a3fa6834c8fe06fa01b71aeeee72ae0c2f5ea.zip
More door work
The hoistway doors are now able to open and close under control of the controller.
Diffstat (limited to 'controller.lua')
-rw-r--r--controller.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/controller.lua b/controller.lua
index 5322e22..ee9a3b5 100644
--- a/controller.lua
+++ b/controller.lua
@@ -414,6 +414,10 @@ function celevator.controller.finish(pos,mem)
celevator.drives[drivetype].resetpos(drivepos)
elseif command.command == "estop" then
celevator.drives[drivetype].estop(drivepos)
+ elseif command.command == "open" then
+ celevator.drives[drivetype].movedoors(drivepos,"open")
+ elseif command.command == "close" then
+ celevator.drives[drivetype].movedoors(drivepos,"close")
end
end
end