From 648f3aefad518f87bf048e671c502b9ff8897dbd Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Wed, 25 Sep 2024 22:41:38 -0400 Subject: [PATCH] reapply --- opendbc/car/hyundai/values.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/opendbc/car/hyundai/values.py b/opendbc/car/hyundai/values.py index c3f816ba09..f9375ffa38 100644 --- a/opendbc/car/hyundai/values.py +++ b/opendbc/car/hyundai/values.py @@ -33,9 +33,12 @@ def __init__(self, CP): self.STEER_DELTA_UP = 2 self.STEER_DELTA_DOWN = 3 - if CP.flags & HyundaiFlags.CAN_CANFD_HYBRID: - self.STEER_MAX = 384 - self.STEER_DRIVER_ALLOWANCE = 250 + elif CP.flags & HyundaiFlags.CAN_CANFD_HYBRID: + self.STEER_MAX = 384 + self.STEER_DELTA_UP = 2 + self.STEER_DELTA_DOWN = 3 + self.STEER_DRIVER_ALLOWANCE = 250 + self.STEER_THRESHOLD = 250 # To determine the limit for your car, find the maximum value that the stock LKAS will request. # If the max stock LKAS request is <384, add your car to this list.