set control_off

pull/25364/head
royjr 3 years ago
parent 551d625bf9
commit a4c906ab49
  1. 3
      selfdrive/car/honda/hondacan.py

@ -51,7 +51,6 @@ def create_acc_commands(packer, enabled, active, accel, gas, stopping, car_finge
min_gas_accel = CarControllerParams.BOSCH_GAS_LOOKUP_BP[0] min_gas_accel = CarControllerParams.BOSCH_GAS_LOOKUP_BP[0]
control_on = 5 if enabled else 0 control_on = 5 if enabled else 0
# control_off = not enabled
gas_command = gas if active and accel > min_gas_accel else -30000 gas_command = gas if active and accel > min_gas_accel else -30000
accel_command = accel if active else 0 accel_command = accel if active else 0
braking = 1 if active and accel < min_gas_accel else 0 braking = 1 if active and accel < min_gas_accel else 0
@ -62,7 +61,7 @@ def create_acc_commands(packer, enabled, active, accel, gas, stopping, car_finge
control_on = 1 if enabled else 0 control_on = 1 if enabled else 0
acc_control_values = { acc_control_values = {
"CONTROL_ON": control_on, "CONTROL_ON": control_on,
# "CONTROL_OFF": control_off, # TODO: not sure this signal is needed "CONTROL_OFF": 1, # TODO: not sure this signal is needed
"ACCEL_COMMAND": accel_command, "ACCEL_COMMAND": accel_command,
"STANDSTILL": standstill, "STANDSTILL": standstill,
} }

Loading…
Cancel
Save