Skip to content

Commit

Permalink
add deadbandLow back to hca7 lock
Browse files Browse the repository at this point in the history
  • Loading branch information
dkiiv committed May 13, 2024
1 parent bd14062 commit 714ca1a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion selfdrive/car/volkswagen/carcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ def update(self, CC, CS, ext_bus, now_nanos, frogpilot_variables):
self.steeringRate = CS.out.steeringRateDeg if CS.out.steeringRateDeg >= 0 else CS.out.steeringRateDeg *-1
if ((self.steeringAngle >= self.hca_centerDeadbandHigh) or \
((CS.out.leftBlinker or CS.out.rightBlinker) and abs(new_steer >= self.hca_deadbandNM_switch)) or \
(abs(new_steer) >= (self.hca_deadbandNM_switch / 3) and not (CS.out.leftBlinker or CS.out.rightBlinker)) or \
(abs(new_steer) >= (self.hca_deadbandNM_switch / 3) and not (CS.out.leftBlinker or CS.out.rightBlinker) and \
self.steeringAngle >= self.hca_centerDeadbandLow) or \
(self.hca_mode == 7 and ((abs(new_steer) >= 25 and self.steeringAngle <= self.hca_centerDeadbandLow) or \
self.steeringAngle >= self.hca_centerDeadbandLow))):

Expand Down

0 comments on commit 714ca1a

Please sign in to comment.