Skip to content

Commit b707bd7

Browse files
committed
fix
2 parents 1ae575c + 14ec4b5 commit b707bd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

selfdrive/car/toyota/carcontroller.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ def update(self, enabled, active, CS, frame, actuators, pcm_cancel_cmd, hud_aler
5858
interceptor_gas_cmd = clip(pedal_command, 0., MAX_INTERCEPTOR_GAS)
5959
else:
6060
interceptor_gas_cmd = 0.
61-
pcm_accel_cmd = clip(actuators.accel, CarControllerParams.ACCEL_MIN, CarControllerParams.ACCEL_MAX)
62-
# pcm_accel_cmd = clip(accel_predict([CS.out.aEgo, actuators.accel])[0], CarControllerParams.ACCEL_MIN, CarControllerParams.ACCEL_MAX)
61+
# pcm_accel_cmd = clip(actuators.accel, CarControllerParams.ACCEL_MIN, CarControllerParams.ACCEL_MAX)
62+
pcm_accel_cmd = clip(float(accel_predict([CS.out.aEgo, actuators.accel])[0]), CarControllerParams.ACCEL_MIN, CarControllerParams.ACCEL_MAX)
6363

6464
# steer torque
6565
new_steer = int(round(actuators.steer * CarControllerParams.STEER_MAX))

0 commit comments

Comments
 (0)