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

pull/28542/head
Maxime Desroches 2 years ago committed by GitHub
parent fcc268b8be
commit 348df9c974
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      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?

Loading…
Cancel
Save