Skip to content

Commit

Permalink
Scale speed to 98 percent
Browse files Browse the repository at this point in the history
  • Loading branch information
rpaulhanna committed Dec 22, 2020
1 parent ccdde50 commit 0302170
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions selfdrive/controls/controlsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -503,6 +503,9 @@ def publish_logs(self, CS, start_time, actuators, v_acc, a_acc, lac_log):
controlsState.forceDecel = bool(force_decel)
controlsState.canErrorCounter = self.can_error_counter

if self.v_cruise_kph != 255:
controlsState.vCruise = controlsState.vCruise * 0.98

if self.CP.lateralTuning.which() == 'pid':
controlsState.lateralControlState.pidState = lac_log
elif self.CP.lateralTuning.which() == 'lqr':
Expand Down

0 comments on commit 0302170

Please sign in to comment.