|
|
@ -51,7 +51,7 @@ 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 |
|
|
|
# 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 |
|
|
|