Increase Subaru RPM limit (#1937)

* feat: increase Subaru RPM limit

* test: Update tests for Subaru RPM increase
This commit is contained in:
Jack Merrill 2024-04-25 16:56:25 -04:00 committed by GitHub
parent 6f9e2c5159
commit d4a01f7555
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,7 @@ const LongitudinalLimits SUBARU_LONG_LIMITS = {
.max_brake = 600, // approx -3.5 m/s^2 .max_brake = 600, // approx -3.5 m/s^2
.min_transmission_rpm = 0, .min_transmission_rpm = 0,
.max_transmission_rpm = 2400, .max_transmission_rpm = 3600,
}; };
#define MSG_SUBARU_Brake_Status 0x13c #define MSG_SUBARU_Brake_Status 0x13c

View File

@ -129,7 +129,7 @@ class TestSubaruLongitudinalSafetyBase(TestSubaruSafetyBase, common.Longitudinal
MAX_POSSIBLE_BRAKE = 2**16 MAX_POSSIBLE_BRAKE = 2**16
MIN_RPM = 0 MIN_RPM = 0
MAX_RPM = 2400 MAX_RPM = 3600
MAX_POSSIBLE_RPM = 2**13 MAX_POSSIBLE_RPM = 2**13
FWD_BLACKLISTED_ADDRS = {2: [SubaruMsg.ES_LKAS, SubaruMsg.ES_Brake, SubaruMsg.ES_Distance, FWD_BLACKLISTED_ADDRS = {2: [SubaruMsg.ES_LKAS, SubaruMsg.ES_Brake, SubaruMsg.ES_Distance,