From 9fb584b20cbbee80aa3e4c98416da726dcd4c1f2 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Thu, 1 Oct 2020 12:03:23 -0700 Subject: [PATCH] Hyundai: increase max torque (#602) * increase max hyundai torque * update test threshold --- board/safety/safety_hyundai.h | 2 +- tests/safety/test_hyundai.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/board/safety/safety_hyundai.h b/board/safety/safety_hyundai.h index 93a4375..a4a6d4c 100644 --- a/board/safety/safety_hyundai.h +++ b/board/safety/safety_hyundai.h @@ -1,4 +1,4 @@ -const int HYUNDAI_MAX_STEER = 255; // like stock +const int HYUNDAI_MAX_STEER = 384; // like stock const int HYUNDAI_MAX_RT_DELTA = 112; // max delta torque allowed for real time checks const uint32_t HYUNDAI_RT_INTERVAL = 250000; // 250ms between real time checks const int HYUNDAI_MAX_RATE_UP = 3; diff --git a/tests/safety/test_hyundai.py b/tests/safety/test_hyundai.py index f61bdd4..1ecdb0c 100644 --- a/tests/safety/test_hyundai.py +++ b/tests/safety/test_hyundai.py @@ -8,7 +8,7 @@ from panda.tests.safety.common import CANPackerPanda MAX_RATE_UP = 3 MAX_RATE_DOWN = 7 -MAX_STEER = 255 +MAX_STEER = 384 MAX_RT_DELTA = 112 RT_INTERVAL = 250000