From 82ad6642e2229db8bf59e4f33aa0e2e0880abc1c Mon Sep 17 00:00:00 2001 From: sshane Date: Mon, 25 Oct 2021 16:28:05 -0500 Subject: [PATCH] Quiet steer temp unavailable alert at standstill (#22680) * only sound critical alert when not at standstill * need to flip * just change the one line --- selfdrive/car/interfaces.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/selfdrive/car/interfaces.py b/selfdrive/car/interfaces.py index a602a06a61..ada906367e 100644 --- a/selfdrive/car/interfaces.py +++ b/selfdrive/car/interfaces.py @@ -144,7 +144,8 @@ class CarInterfaceBase(): elif cs_out.steerWarning: # only escalate to the harsher alert after the condition has # persisted for 0.5s and we're certain that the user isn't overriding - if self.steering_unpressed > int(0.5/DT_CTRL) and self.steer_warning > int(0.5/DT_CTRL): + if not cs_out.standstill and self.steering_unpressed > int(0.5 / DT_CTRL) and \ + self.steer_warning > int(0.5 / DT_CTRL): events.add(EventName.steerTempUnavailable) else: events.add(EventName.steerTempUnavailableSilent)