Skip to content

Commit

Permalink
VW PQ: init 2 forgot variables
Browse files Browse the repository at this point in the history
  • Loading branch information
dkiiv committed Nov 6, 2024
1 parent e1fcc2e commit b89e73a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions selfdrive/car/volkswagen/carcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ def __init__(self, dbc_name, CP, VM):
# SMA to EMA conversion: alpha = 2 / (n + 1) n = SMA-sample
self.longSignalSmooth = 0.00995 # closer to 0 = more smoothing, 1 = no smoothing (eq = 200 SMA-sample)
self.accel_diff = 0
self.long_deviation = 0
self.long_ratelimit = 0

self.sm = messaging.SubMaster(['longitudinalPlanSP'])
self.param_s = Params()
Expand Down

0 comments on commit b89e73a

Please sign in to comment.