Skip to content

Commit

Permalink
Increase Subaru RPM limit (#1937)
Browse files Browse the repository at this point in the history
* feat: increase Subaru RPM limit

* test: Update tests for Subaru RPM increase
  • Loading branch information
jackmerrill authored Apr 25, 2024
1 parent 6f9e2c5 commit d4a01f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion board/safety/safety_subaru.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const LongitudinalLimits SUBARU_LONG_LIMITS = {
.max_brake = 600, // approx -3.5 m/s^2

.min_transmission_rpm = 0,
.max_transmission_rpm = 2400,
.max_transmission_rpm = 3600,
};

#define MSG_SUBARU_Brake_Status 0x13c
Expand Down
2 changes: 1 addition & 1 deletion tests/safety/test_subaru.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class TestSubaruLongitudinalSafetyBase(TestSubaruSafetyBase, common.Longitudinal
MAX_POSSIBLE_BRAKE = 2**16

MIN_RPM = 0
MAX_RPM = 2400
MAX_RPM = 3600
MAX_POSSIBLE_RPM = 2**13

FWD_BLACKLISTED_ADDRS = {2: [SubaruMsg.ES_LKAS, SubaruMsg.ES_Brake, SubaruMsg.ES_Distance,
Expand Down

0 comments on commit d4a01f7

Please sign in to comment.