Skip to content

Commit

Permalink
Revert WP Testing Edits, Branched WP Testing into cherokee_kl_wp
Browse files Browse the repository at this point in the history
  • Loading branch information
ngk0 authored Apr 11, 2024
1 parent 4654803 commit ca2f677
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions selfdrive/car/chrysler/carcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def update(self, CC, CS, now_nanos):
# TODO: can we make this more sane? why is it different for all the cars?
lkas_control_bit = self.lkas_control_bit_prev
if CS.out.vEgo > self.CP.minSteerSpeed:
lkas_control_bit = CC.enabled
lkas_control_bit = True
elif self.CP.flags & ChryslerFlags.HIGHER_MIN_STEERING_SPEED:
if CS.out.vEgo < (self.CP.minSteerSpeed - 3.0):
lkas_control_bit = False
Expand All @@ -62,7 +62,7 @@ def update(self, CC, CS, now_nanos):
# TODO: Chrysler 200 appears to support asymmetric down to mid-13s, Cherokee not verified yet, model-year variances likely
# TODO: Consolidate with HIGHER_MIN_STEERING_SPEED cars if we can make engage consistently work at 17.5 m/s
if CS.out.vEgo < 16.5:
lkas_control_bit = CC.enabled
lkas_control_bit = False

# EPS faults if LKAS re-enables too quickly
lkas_control_bit = lkas_control_bit and (self.frame - self.last_lkas_falling_edge > 200)
Expand Down

0 comments on commit ca2f677

Please sign in to comment.