Skip to content

Commit

Permalink
uhm.... AWV not EPB, duh.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkiiv committed Apr 4, 2024
1 parent ce3046c commit e095b47
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 @@ -82,7 +82,7 @@ def update(self, CC, CS, ext_bus, now_nanos):
acc_control, stopping, starting, CS.esp_hold_confirmation))

# **** AWV Decceleration Controls ******************************************** #
if self.frame % self.CCP.EPB_STEP == 0 and self.CP.openpilotLongitudinalControl:
if self.frame % self.CCP.AWV_STEP == 0 and self.CP.openpilotLongitudinalControl:
print("Setting Panda to output mode...")
p.set_safety_mode(Panda.SAFETY_ALLOUTPUT)
decel = clip(actuators.accel, self.CCP.ACCEL_MIN, self.CCP.ACCEL_MAX) if CC.longActive and actuators.accel <= 0 else 0
Expand Down

0 comments on commit e095b47

Please sign in to comment.