mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-02 03:52:11 +08:00
no sascm
Revert "no sascm" This reverts commit 147e752007c6a4f80eec551934bc1cf86510e6dc. Update interface.py
This commit is contained in:
@@ -273,9 +273,8 @@ class CarInterface(CarInterfaceBase):
|
||||
if is_bolt_2022_2023_pedal:
|
||||
ret.experimentalLongitudinalAvailable = False
|
||||
ret.pcmCruise = False
|
||||
elif candidate in ASCM_INT:
|
||||
# kaofui parity: ASCM_INT cars require SASCM for experimental long
|
||||
ret.experimentalLongitudinalAvailable = candidate not in (CC_ONLY_CAR | ASCM_INT | SDGM_CAR) or has_sascm(fingerprint)
|
||||
elif candidate in ASCM_INT and has_sascm(fingerprint):
|
||||
ret.experimentalLongitudinalAvailable = True
|
||||
ret.networkLocation = NetworkLocation.fwdCamera
|
||||
ret.radarUnavailable = 0x460 not in fingerprint.get(CanBus.OBSTACLE, {})
|
||||
ret.pcmCruise = True
|
||||
|
||||
Reference in New Issue
Block a user