From 5f03487233f38cb13ba1d7c1b8840582cc0df442 Mon Sep 17 00:00:00 2001 From: dragonpilot <52149710+dragonpilot@users.noreply.github.com> Date: Wed, 29 Dec 2021 15:03:12 +1000 Subject: [PATCH] quick fix for some C3 devices (sensorsOK = False in some case) --- selfdrive/controls/controlsd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/selfdrive/controls/controlsd.py b/selfdrive/controls/controlsd.py index 997bc1848..70cc71c7f 100755 --- a/selfdrive/controls/controlsd.py +++ b/selfdrive/controls/controlsd.py @@ -284,10 +284,10 @@ class Controls: if not self.sm['lateralPlan'].mpcSolutionValid: self.events.add(EventName.steerTempUnavailable if self.sm['dragonConf'].dpAtl else EventName.plannerError) - if not self.sm['liveLocationKalman'].sensorsOK and not NOSENSOR: + if not self.dp_jetson and not self.sm['liveLocationKalman'].sensorsOK and not NOSENSOR: if self.sm.frame > 5 / DT_CTRL: # Give locationd some time to receive all the inputs self.events.add(EventName.sensorDataInvalid) - if not self.sm['liveLocationKalman'].posenetOK: + if not self.dp_jetson and not self.sm['liveLocationKalman'].posenetOK: self.events.add(EventName.posenetInvalid) if not self.sm['liveLocationKalman'].deviceStable: self.events.add(EventName.deviceFalling)