From b8551c435a40a3f1be957e6e0c326938553053b2 Mon Sep 17 00:00:00 2001 From: cheapie Date: Fri, 26 Apr 2024 19:28:49 -0500 Subject: Don't log door timeout faults in stop/inspection modes --- controllerfw.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/controllerfw.lua b/controllerfw.lua index dedb182..a23932f 100644 --- a/controllerfw.lua +++ b/controllerfw.lua @@ -698,6 +698,8 @@ if mem.fatalfault then mem.groupupcalls = {} mem.groupdncalls = {} mem.direction = nil + interrupt(nil,"opentimeout") + interrupt(nil,"closetimeout") elseif mem.controllerstopsw or mem.screenstate == "floortable" or mem.screenstate == "floortable_edit" then mem.carstate = "stop" drivecmd({command="estop"}) @@ -709,6 +711,8 @@ elseif mem.controllerstopsw or mem.screenstate == "floortable" or mem.screenstat mem.groupupcalls = {} mem.groupdncalls = {} mem.direction = nil + interrupt(nil,"opentimeout") + interrupt(nil,"closetimeout") elseif mem.controllerinspectsw and mem.cartopinspectsw then mem.carstate = "inspconflict" mem.carcalls = {} @@ -720,6 +724,8 @@ elseif mem.controllerinspectsw and mem.cartopinspectsw then mem.groupdncalls = {} mem.direction = nil drivecmd({command="estop"}) + interrupt(nil,"opentimeout") + interrupt(nil,"closetimeout") elseif mem.controllerinspectsw and not mem.cartopinspectsw then mem.carstate = "mrinspect" mem.carcalls = {} @@ -730,6 +736,8 @@ elseif mem.controllerinspectsw and not mem.cartopinspectsw then mem.groupupcalls = {} mem.groupdncalls = {} mem.direction = nil + interrupt(nil,"opentimeout") + interrupt(nil,"closetimeout") if oldstate ~= "mrinspect" then drivecmd({command="estop"}) end elseif mem.cartopinspectsw and not mem.controllerinspectsw then mem.carstate = "carinspect" @@ -741,6 +749,8 @@ elseif mem.cartopinspectsw and not mem.controllerinspectsw then mem.groupupcalls = {} mem.groupdncalls = {} mem.direction = nil + interrupt(nil,"opentimeout") + interrupt(nil,"closetimeout") if oldstate ~= "carinspect" then drivecmd({command="estop"}) end elseif mem.fs2sw == "on" then mem.carstate = "fs2" -- cgit v1.2.3