Skip to content

Commit

Permalink
Hyundai: lower CAN FD torque rate limits (commaai#1066)
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane authored Sep 15, 2022
1 parent 93c0f55 commit 38257a9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions board/safety/safety_hyundai_canfd.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ const SteeringLimits HYUNDAI_CANFD_STEERING_LIMITS = {
.max_steer = 270,
.max_rt_delta = 112,
.max_rt_interval = 250000,
.max_rate_up = 3,
.max_rate_down = 7,
.max_rate_up = 2,
.max_rate_down = 3,
.driver_torque_allowance = 250,
.driver_torque_factor = 2,
.type = TorqueDriverLimited,
Expand Down
4 changes: 2 additions & 2 deletions tests/safety/test_hyundai_canfd.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ class TestHyundaiCanfdBase(HyundaiButtonBase, common.PandaSafetyTest, common.Dri
FWD_BLACKLISTED_ADDRS = {2: [0x50, 0x2a4]}
FWD_BUS_LOOKUP = {0: 2, 2: 0}

MAX_RATE_UP = 3
MAX_RATE_DOWN = 7
MAX_RATE_UP = 2
MAX_RATE_DOWN = 3
MAX_TORQUE = 270

MAX_RT_DELTA = 112
Expand Down

0 comments on commit 38257a9

Please sign in to comment.