Skip to content

Commit

Permalink
Add long tests?
Browse files Browse the repository at this point in the history
  • Loading branch information
bravochar committed Sep 13, 2024
1 parent 6524ff7 commit 0278357
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions board/safety/safety_subaru.h
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,9 @@ static void subaru_rx_hook(const CANPacket_t *to_push) {
bool cruise_engaged = GET_BIT(to_push, 41U);
pcm_cruise_check(cruise_engaged);

// LKAS Angle cars use different message
} else if (subaru_lkas_angle && (addr == MSG_SUBARU_ES_DashStatus) && (bus == SUBARU_CAM_BUS)) {
}
else if (subaru_lkas_angle && (addr == MSG_SUBARU_ES_DashStatus) && (bus == SUBARU_CAM_BUS)) {
// LKAS Angle cars use different message
bool cruise_engaged = GET_BIT(to_push, 36U);
pcm_cruise_check(cruise_engaged);
}
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 @@ -206,7 +206,7 @@ class TestSubaruGen2TorqueSafetyBase(TestSubaruTorqueSafetyBase):
MAX_TORQUE = 1000


class TestSubaruAngleSafety(TestSubaruAngleSafetyBase):
class TestSubaruAngleSafety(TestSubaruStockLongitudinalSafetyBase, TestSubaruAngleSafetyBase):
FLAGS = Panda.FLAG_SUBARU_LKAS_ANGLE


Expand Down

0 comments on commit 0278357

Please sign in to comment.