Skip to content
This repository has been archived by the owner on Dec 16, 2023. It is now read-only.

Commit

Permalink
Update cruise_helper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jc01rho authored Nov 19, 2023
1 parent 8fd1780 commit 2c896d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/controls/lib/cruise_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ def update_v_cruise_apilot(self, v_cruise_kph, buttonEvents, enabled, metric, co
self.naviSpeedRecoveryProcessOngoing = True

if self.naviSpeedRecoveryProcessOngoing and self.naviSpeed == 0:
if frame % 100 == 0:
if self.frame % 100 == 0:
self.naviSpeedRecoveryProcessCounter += 1
speed_diff = self.v_cruise_kph_apply - self.naviSpeedPrev
self.naviSpeed = round(self.naviSpeedPrev + speed_diff * (self.naviSpeedRecoveryProcessCounter/40.0))
Expand Down

0 comments on commit 2c896d3

Please sign in to comment.