|
|
@ -209,6 +209,8 @@ class CarInterface(CarInterfaceBase): |
|
|
|
|
|
|
|
|
|
|
|
if not ret.openpilotLongitudinalControl: |
|
|
|
if not ret.openpilotLongitudinalControl: |
|
|
|
ret.safetyConfigs[0].safetyParam |= Panda.FLAG_TOYOTA_STOCK_LONGITUDINAL |
|
|
|
ret.safetyConfigs[0].safetyParam |= Panda.FLAG_TOYOTA_STOCK_LONGITUDINAL |
|
|
|
|
|
|
|
if ret.steerControlType == car.CarParams.SteerControlType.angle: |
|
|
|
|
|
|
|
ret.safetyConfigs[0].safetyParam |= Panda.FLAG_TOYOTA_LTA |
|
|
|
|
|
|
|
|
|
|
|
# we can't use the fingerprint to detect this reliably, since |
|
|
|
# we can't use the fingerprint to detect this reliably, since |
|
|
|
# the EV gas pedal signal can take a couple seconds to appear |
|
|
|
# the EV gas pedal signal can take a couple seconds to appear |
|
|
|