Skip to content

Commit

Permalink
VW PQ: make bremse8 signals filter when stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
dkiiv committed Dec 15, 2024
1 parent 4f1fb82 commit 1b5207b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/car/volkswagen/carcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ def update(self, CC, CS, now_nanos):
if self.frame % 2 or CS.motor2_stock != getattr(self, 'motor2_last', CS.motor2_stock): # 50hz / 20ms
can_sends.append(self.CCS.filter_motor2(self.packer_pt, CANBUS.cam, CS.motor2_stock, self.EPB_active))
if CS.bremse8_stock["COUNTER"] != self.bremse8_counter_last:
can_sends.append(self.CCS.filter_bremse8(self.packer_pt, CANBUS.cam, CS.bremse8_stock, self.EPB_active))
can_sends.append(self.CCS.filter_bremse8(self.packer_pt, CANBUS.cam, CS.bremse8_stock, self.stopped))
if self.frame % 10 or CS.bremse11_stock != self.bremse11_last:
can_sends.append(self.CCS.filter_bremse11(self.packer_pt, CANBUS.cam, CS.bremse11_stock, self.stopped))
if CS.gra_stock_values["COUNTER"] != self.gra_acc_counter_last:
Expand Down

0 comments on commit 1b5207b

Please sign in to comment.