mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-10-28 00:53:45 +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>
16 lines
496 B
Python
16 lines
496 B
Python
def event_rules(cp) -> dict:
|
|
if cp.brand == "gm":
|
|
from openpilot.starpilot.car.gm.events import event_rules as gm_rules
|
|
return gm_rules(cp)
|
|
if cp.brand == "honda":
|
|
from openpilot.starpilot.car.honda.events import event_rules as honda_rules
|
|
return honda_rules(cp)
|
|
return {}
|
|
|
|
|
|
def unsupported_gear(cp, gear) -> bool:
|
|
if cp.brand == "gm":
|
|
from openpilot.starpilot.car.gm.events import unsupported_gear as gm_unsupported
|
|
return gm_unsupported(cp, gear)
|
|
return False
|