Skip to content

Commit 0c93900

Browse files
committed
add groundwork for accel response profiles
1 parent f1e7503 commit 0c93900

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

selfdrive/car/toyota/interface.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
class CarInterface(CarInterfaceBase):
1717
@staticmethod
1818
def get_pid_accel_limits(CP, current_speed, cruise_speed):
19+
# as well as here (pid output is clipped to this)
1920
return CarControllerParams.ACCEL_MIN, CarControllerParams.ACCEL_MAX
2021

2122
@staticmethod

selfdrive/car/toyota/values.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
class CarControllerParams:
13-
ACCEL_MAX = 1.6 # m/s2, lower than allowed 2.0 m/s2 for tuning reasons
13+
ACCEL_MAX = 1.8 # m/s2, lower than allowed 2.0 m/s2 for tuning reasons
1414
ACCEL_MIN = -3.5 # m/s2
1515

1616
STEER_MAX = 1500

selfdrive/controls/lib/longitudinal_planner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626

2727
def get_max_accel(v_ego):
28+
# change A_CRUISE_MAX_VALS live
2829
return interp(v_ego, A_CRUISE_MAX_BP, A_CRUISE_MAX_VALS)
2930

3031

0 commit comments

Comments
 (0)