Skip to content

Commit

Permalink
Nerf this for now
Browse files Browse the repository at this point in the history
  • Loading branch information
dkiiv authored Oct 20, 2024
1 parent bc94797 commit 1c67d50
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 @@ -161,7 +161,7 @@ def update(self, CC, CS, now_nanos):
self.long_deviation = (0.019 * deviation_lookup) + (1 - 0.019) * getattr(self, 'long_deviation', 0) # 100 SMA equivalence
self.long_ratelimit = (0.007 * ratelimit_lookup) + (1 - 0.007) * getattr(self, 'long_ratelimit', 0) # 250 SMA equivalence
self.long_deviation = self.long_deviation * interp(CS.out.vEgo, [0,4,7,8], [0,0,1,1]) # 1x - 0x interpolation for RegelAbw during FTS
self.long_ratelimit = self.long_ratelimit * interp(CS.out.vEgo, [0,1,27,28], [.1,.1,1,1]) # .1x - 1x interpolation for AendGrad during 0-100kph
self.long_ratelimit = self.long_ratelimit * interp(CS.out.vEgo, [0,1,27,28], [1,1,1,1]) # .1x - 1x interpolation for AendGrad during 0-100kph
clip(self.long_deviation, self.deviationV[0], self.deviationV[3])
clip(self.long_ratelimit, self.ratelimitV[3], self.ratelimitV[0])
self.accel_last = self.accel_last if accel == self.CCP.ACCEL_MIN else accel
Expand Down

0 comments on commit 1c67d50

Please sign in to comment.