mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-02 12:02:09 +08:00
Fix index out of bound error for body carcontroller (#28539)
old-commit-hash: 348df9c974f0ce83a228c988d1508170f8edec1a
This commit is contained in:
@@ -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?
|
||||
|
||||
Reference in New Issue
Block a user