mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-12-02 15:45:16 +08:00
cf21c9729f
Integrate Honda steering and AOL adapters with platform-specific native safety coverage. Co-authored-by: Daniel Koepping <elkoled@gmail.com> Co-authored-by: Danny <dannyirwin31@yahoo.com> Co-authored-by: dirwin31 <83434411+dirwin31@users.noreply.github.com>
11 lines
412 B
Python
11 lines
412 B
Python
from opendbc.car.honda.stock_aol import qualified
|
|
from openpilot.cereal import log
|
|
from openpilot.selfdrive.selfdrived.events import EVENTS, ET
|
|
|
|
|
|
def event_rules(cp) -> dict:
|
|
if not qualified(cp, marked_only=True):
|
|
return {}
|
|
names = (log.OnroadEvent.EventName.cruiseDisabled, log.OnroadEvent.EventName.speedTooLow)
|
|
return {name: {ET.USER_DISABLE: EVENTS[name][ET.IMMEDIATE_DISABLE]} for name in names}
|