Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sunnyhaibin committed Jan 28, 2025
1 parent 12885af commit 525c308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opendbc/car/hyundai/carcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def update(self, CC, CS, now_nanos):
# Interpolate a percent to apply to max torque based on vEgo value, which is
# the "best estimate of speed". This means that under 20 (units?) we will
# apply less torque, and over 20 we will apply the full calculated torque.
ego_weight = interp(CS.out.vEgo, [0, 5, 10, 20], [0.2, 0.3, 0.5, 1.0])
ego_weight = np.interp(CS.out.vEgo, [0, 5, 10, 20], [0.2, 0.3, 0.5, 1.0])

# Track if and how long the driver has been applying torque and create a
# value to reduce the max torque applied. This block will cause the
Expand Down

0 comments on commit 525c308

Please sign in to comment.