From bf31b4384e9eb52288dc4c3d60d075843ecd6422 Mon Sep 17 00:00:00 2001 From: cheapie Date: Fri, 31 May 2024 23:26:37 -0500 Subject: 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 --- controllerfw.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'controllerfw.lua') 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) -- cgit v1.2.3