start gas from -0.2

pull/22407/head
Willem Melching 4 years ago
parent 2450ad6444
commit a88044dede
  1. 4
      selfdrive/car/honda/hondacan.py

@ -49,9 +49,9 @@ def create_acc_commands(packer, enabled, accel, gas, idx, stopping, starting, ca
control_on = 5 if enabled else 0
# no gas = -30000
gas_command = gas if enabled and gas > 0 else -30000
gas_command = gas if enabled and gas > -0.2 else -30000
accel_command = accel if enabled else 0
braking = 1 if enabled and accel < 0 else 0
braking = 1 if enabled and accel < -0.2 else 0
standstill = 1 if enabled and stopping else 0
standstill_release = 1 if enabled and starting else 0

Loading…
Cancel
Save