mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 01:52:06 +08:00
remove unused line in honda carcontroller
old-commit-hash: 0e4058d0ec2bf0b2f0154b48d43061f80defd17b
This commit is contained in:
@@ -230,7 +230,8 @@ class CarController():
|
||||
gas_mult = interp(CS.out.vEgo, [0., 10.], [0.4, 1.0])
|
||||
# send exactly zero if apply_gas is zero. Interceptor will send the max between read value and apply_gas.
|
||||
# This prevents unexpected pedal range rescaling
|
||||
apply_gas = clip(gas_mult * gas, 0., 1.)
|
||||
# Sending non-zero gas when OP is not enabled will cause the PCM not to respond to throttle as expected
|
||||
# when you do enable.
|
||||
if enabled:
|
||||
apply_gas = clip(gas_mult * (gas - brake + wind_brake*3/4), 0., 1.)
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user