From 348df9c974f0ce83a228c988d1508170f8edec1a Mon Sep 17 00:00:00 2001 From: Maxime Desroches Date: Tue, 13 Jun 2023 20:37:17 -0700 Subject: [PATCH] Fix index out of bound error for body carcontroller (#28539) --- selfdrive/car/body/carcontroller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/car/body/carcontroller.py b/selfdrive/car/body/carcontroller.py index bcaf6f6f93..64c5617ef3 100644 --- a/selfdrive/car/body/carcontroller.py +++ b/selfdrive/car/body/carcontroller.py @@ -40,7 +40,7 @@ class CarController: torque_l = 0 torque_r = 0 - llk_valid = len(CC.orientationNED) > 0 and len(CC.angularVelocity) > 0 + llk_valid = len(CC.orientationNED) > 1 and len(CC.angularVelocity) > 1 if CC.enabled and llk_valid: # Read these from the joystick # TODO: this isn't acceleration, okay?