Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
jnewb1 committed Jul 21, 2023
1 parent 4fbba35 commit 3b96f0d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/safety/test_subaru.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ class TestSubaruAngleSafetyBase(TestSubaruSafetyBase, common.AngleSteeringSafety

FLAGS = Panda.FLAG_SUBARU_LKAS_ANGLE | Panda.FLAG_SUBARU_ES_STATUS

def _angle_cmd_msg(self, angle, steer_req=1):
values = {"LKAS_Output": angle, "LKAS_Request": steer_req}
def _angle_cmd_msg(self, angle, enabled=1):
values = {"LKAS_Output": angle, "LKAS_Request": enabled}
return self.packer.make_can_msg_panda("ES_LKAS_ANGLE", 0, values)

def _angle_meas_msg(self, angle):
Expand All @@ -139,6 +139,6 @@ class TestSubaruForester2022Safety(TestSubaruAngleSafetyBase):
def _pcm_status_msg(self, enable):
values = {"Cruise_Activated": enable}
return self.packer.make_can_msg_panda("ES_Status", 2, values)

if __name__ == "__main__":
unittest.main()

0 comments on commit 3b96f0d

Please sign in to comment.