Fix index out of bound error for body carcontroller (#28539)

old-commit-hash: 348df9c974f0ce83a228c988d1508170f8edec1a
This commit is contained in:
Maxime Desroches
2023-06-13 20:37:17 -07:00
committed by GitHub
parent 1b7d771059
commit 5a13d234d4
+1 -1
View File
@@ -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?