From 525c30860d225eaf03029d8d68774678f7a59395 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Mon, 27 Jan 2025 20:52:31 -0500 Subject: [PATCH] fix --- opendbc/car/hyundai/carcontroller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opendbc/car/hyundai/carcontroller.py b/opendbc/car/hyundai/carcontroller.py index f7f0e4d5c3..f42ac30aea 100644 --- a/opendbc/car/hyundai/carcontroller.py +++ b/opendbc/car/hyundai/carcontroller.py @@ -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