need to add gas here

pull/22156/head
Harald Schafer 4 years ago
parent e7c4992900
commit 054c912b9a
  1. 2
      selfdrive/car/honda/carcontroller.py

@ -196,7 +196,7 @@ class CarController():
clip(CS.out.vEgo + accel/2.0 - 2.0, 0.0, 100.0), clip(CS.out.vEgo + accel/2.0 - 2.0, 0.0, 100.0),
clip(CS.out.vEgo + accel/2.0 + 2.0, 0.0, 100.0), clip(CS.out.vEgo + accel/2.0 + 2.0, 0.0, 100.0),
clip(CS.out.vEgo + 5.0, 0.0, 100.0)] clip(CS.out.vEgo + 5.0, 0.0, 100.0)]
pcm_speed = interp(-brake, pcm_speed_BP, pcm_speed_V) pcm_speed = interp(gas-brake, pcm_speed_BP, pcm_speed_V)
if not CS.CP.openpilotLongitudinalControl: if not CS.CP.openpilotLongitudinalControl:
if (frame % 2) == 0: if (frame % 2) == 0:

Loading…
Cancel
Save