Skip to content

Commit

Permalink
Revert "dont compensate when stopped"
Browse files Browse the repository at this point in the history
This reverts commit 983fc8f.
  • Loading branch information
cydia2020 committed Mar 12, 2024
1 parent 2e2d857 commit f5f6a06
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/car/toyota/carcontroller.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def update(self, CC, CS):
self.prohibit_neg_calculation = False
# NO_STOP_TIMER_CAR will creep if compensation is applied when stopping or stopped, don't compensate when stopped or stopping
should_compensate = True
if (self.CP.carFingerprint in NO_STOP_TIMER_CAR and actuators.accel < 1e-3 or stopping) or CS.out.vEgo < 1e-3:
if self.CP.carFingerprint in NO_STOP_TIMER_CAR and ((CS.out.vEgo < 1e-3 and actuators.accel < 1e-3) or stopping):
should_compensate = False
# pcm neutral force
if CC.longActive and should_compensate and not self.prohibit_neg_calculation:
Expand Down

0 comments on commit f5f6a06

Please sign in to comment.