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

old-commit-hash: 348df9c974
beeps
Maxime Desroches 2 years ago committed by GitHub
parent 1b7d771059
commit 5a13d234d4
  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