Skip to content

Commit

Permalink
Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
martinl committed Jul 20, 2022
1 parent 19c44fd commit d5eedcd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions selfdrive/car/subaru/carcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ def update(self, CC, CS):
self.es_distance_cnt = CS.es_distance_msg["COUNTER"]

if self.throttle_cnt != CS.throttle_msg["COUNTER"]:
can_sends.append(subarucan.create_preglobal_throttle(self.packer, CS.throttle_msg, throttle_cmd))
self.throttle_cnt = CS.throttle_msg["COUNTER"]
can_sends.append(subarucan.create_preglobal_throttle(self.packer, CS.throttle_msg, throttle_cmd))
self.throttle_cnt = CS.throttle_msg["COUNTER"]

else:
if self.es_distance_cnt != CS.es_distance_msg["COUNTER"]:
Expand All @@ -131,8 +131,8 @@ def update(self, CC, CS):
self.es_lkas_cnt = CS.es_lkas_msg["COUNTER"]

if self.throttle_cnt != CS.throttle_msg["COUNTER"]:
can_sends.append(subarucan.create_throttle(self.packer, CS.throttle_msg, throttle_cmd))
self.throttle_cnt = CS.throttle_msg["COUNTER"]
can_sends.append(subarucan.create_throttle(self.packer, CS.throttle_msg, throttle_cmd))
self.throttle_cnt = CS.throttle_msg["COUNTER"]

new_actuators = actuators.copy()
new_actuators.steer = self.apply_steer_last / self.p.STEER_MAX
Expand Down

0 comments on commit d5eedcd

Please sign in to comment.