summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcheapie <no-email-for-you@example.com>2024-04-26 19:28:49 -0500
committercheapie <no-email-for-you@example.com>2024-04-26 19:28:49 -0500
commitb8551c435a40a3f1be957e6e0c326938553053b2 (patch)
treed3527ea4043308993c4c57906718eb34d4d624f5
parentb2eccc0bd9396174963cec6fff755f00c4a82cc3 (diff)
downloadcelevator-b8551c435a40a3f1be957e6e0c326938553053b2.tar
celevator-b8551c435a40a3f1be957e6e0c326938553053b2.tar.gz
celevator-b8551c435a40a3f1be957e6e0c326938553053b2.tar.bz2
celevator-b8551c435a40a3f1be957e6e0c326938553053b2.tar.xz
celevator-b8551c435a40a3f1be957e6e0c326938553053b2.zip
Don't log door timeout faults in stop/inspection modes
-rw-r--r--controllerfw.lua10
1 files changed, 10 insertions, 0 deletions
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"