From b89e73a351710fd379a38289bb2736229c6fa2c9 Mon Sep 17 00:00:00 2001 From: actuallylemoncurd Date: Wed, 6 Nov 2024 17:47:03 -0500 Subject: [PATCH] VW PQ: init 2 forgot variables --- selfdrive/car/volkswagen/carcontroller.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/selfdrive/car/volkswagen/carcontroller.py b/selfdrive/car/volkswagen/carcontroller.py index abe0e605070639..3929deea9ad17f 100644 --- a/selfdrive/car/volkswagen/carcontroller.py +++ b/selfdrive/car/volkswagen/carcontroller.py @@ -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()