diff options
author | cheapie <no-email-for-you@example.com> | 2024-05-31 23:26:37 -0500 |
---|---|---|
committer | cheapie <no-email-for-you@example.com> | 2024-05-31 23:26:37 -0500 |
commit | bf31b4384e9eb52288dc4c3d60d075843ecd6422 (patch) | |
tree | 282d3d500182d8afae8ab9905df42220345ab76f /controllerfw.lua | |
parent | deee7a747c9d9c5fefb17dbb1914077bd3ec6a7d (diff) | |
download | celevator-bf31b4384e9eb52288dc4c3d60d075843ecd6422.tar celevator-bf31b4384e9eb52288dc4c3d60d075843ecd6422.tar.gz celevator-bf31b4384e9eb52288dc4c3d60d075843ecd6422.tar.bz2 celevator-bf31b4384e9eb52288dc4c3d60d075843ecd6422.tar.xz celevator-bf31b4384e9eb52288dc4c3d60d075843ecd6422.zip |
Add destination-based dispatching
Still uses a crude ETA algorithm for now and is missing some features, but it is working and usable at a basic level
Diffstat (limited to 'controllerfw.lua')
-rw-r--r-- | controllerfw.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/controllerfw.lua b/controllerfw.lua index 26aabf2..3392179 100644 --- a/controllerfw.lua +++ b/controllerfw.lua @@ -734,6 +734,10 @@ elseif event.type == "dispatchermsg" then mem.groupupcalls[event.msg] = nil elseif event.channel == "groupdncancel" then mem.groupdncalls[event.msg] = nil + elseif event.channel == "swingupcall" and mem.carstate == "normal" then + mem.swingupcalls[event.msg] = true + elseif event.channel == "swingdncall" and mem.carstate == "normal" then + mem.swingdncalls[event.msg] = true elseif event.channel == "carcall" and mem.carstate == "normal" then mem.carcalls[event.msg] = true send(event.source,"status",mem) |