Skip to content

Commit

Permalink
back to PID tune, higher limits and rates, button spam
Browse files Browse the repository at this point in the history
  • Loading branch information
jyoung8607 committed Jul 28, 2023
1 parent 7f0956a commit ac4822b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 8 deletions.
8 changes: 4 additions & 4 deletions selfdrive/car/volkswagen/carcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ def update(self, CC, CS, ext_bus, now_nanos):

# **** Stock ACC Button Controls **************************************** #

#gra_send_ready = self.CP.pcmCruise and CS.gra_stock_values["COUNTER"] != self.gra_acc_counter_last
#if gra_send_ready and (CC.cruiseControl.cancel or CC.cruiseControl.resume):
# can_sends.append(self.CCS.create_acc_buttons_control(self.packer_pt, ext_bus, CS.gra_stock_values,
# cancel=CC.cruiseControl.cancel, resume=CC.cruiseControl.resume))
gra_send_ready = self.CP.pcmCruise and CS.gra_stock_values["COUNTER"] != self.gra_acc_counter_last
if gra_send_ready and (CC.cruiseControl.cancel or CC.cruiseControl.resume):
can_sends.append(self.CCS.create_acc_buttons_control(self.packer_pt, ext_bus, CS.gra_stock_values,
cancel=CC.cruiseControl.cancel, resume=CC.cruiseControl.resume))

new_actuators = actuators.copy()
new_actuators.steer = self.apply_steer_last / self.CCP.STEER_MAX
Expand Down
1 change: 0 additions & 1 deletion selfdrive/car/volkswagen/interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ def _get_params(ret, candidate, fingerprint, car_fw, experimental_long, docs):
elif candidate == CAR.GOLF_MK8:
ret.mass = 1409 + STD_CARGO_KG
ret.wheelbase = 2.63
CarInterfaceBase.configure_torque_tune(candidate, ret.lateralTuning)

elif candidate == CAR.JETTA_MK7:
ret.mass = 1328 + STD_CARGO_KG
Expand Down
6 changes: 3 additions & 3 deletions selfdrive/car/volkswagen/values.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ def __init__(self, CP):
self.LDW_STEP = 10 # LDW_02 message frequency 10Hz
self.ACC_HUD_STEP = 6 # ACC_02 message frequency 16Hz
self.STEER_DRIVER_ALLOWANCE = 80 # Driver intervention threshold 0.8 Nm
self.STEER_MAX = 370
self.STEER_DELTA_UP = 10
self.STEER_DELTA_DOWN = 10
self.STEER_MAX = 512
self.STEER_DELTA_UP = 33
self.STEER_DELTA_DOWN = 33

if CP.transmissionType == TransmissionType.automatic:
self.shifter_values = can_define.dv["Getriebe_11"]["GE_Fahrstufe"]
Expand Down

0 comments on commit ac4822b

Please sign in to comment.