mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-09 14:03:42 +08:00
80fbb4f6db
Register vehicle controls, planner modes, UI actions and Galaxy services after their providers exist. Wire the shared runtime entrypoints and cover their combined behavior. Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> Co-authored-by: Daniel Koepping <elkoled@gmail.com> Co-authored-by: Danny <dannyirwin31@yahoo.com> Co-authored-by: DimitriChrysafis <Dimitri.chrysafis@gmail.com> Co-authored-by: Dom <168790843+firestar5683@users.noreply.github.com> Co-authored-by: Harald Schäfer <harald.the.engineer@gmail.com> Co-authored-by: Kacper Rączy <gfw.kra@gmail.com> Co-authored-by: Prabhaav Pillai <prabhaav@msu.edu> Co-authored-by: dirwin31 <83434411+dirwin31@users.noreply.github.com> Co-authored-by: firestarsdog <229254897+firestarsdog@users.noreply.github.com> Co-authored-by: stef <19478336+stefpi@users.noreply.github.com> Co-authored-by: whoisdomi <dcantu83@gmail.com> Co-authored-by: Intelli <contact@intelli.software> Co-authored-by: haraschax <6804392+haraschax@users.noreply.github.com> Co-authored-by: prabhaavp <prabhaav@msu.edu>
14 lines
503 B
Python
14 lines
503 B
Python
"""Real interface/GPS owners for tests that call Card publication in isolation."""
|
|
from typing import Any
|
|
|
|
from opendbc.car.car_helpers import interfaces
|
|
from opendbc.car.mock.interface import CarInterface as MockInterface
|
|
from openpilot.starpilot.gps.publisher import CarGpsPublisher
|
|
|
|
|
|
def initialize_publication_sources(card: Any) -> None:
|
|
cp = card.CP
|
|
interface = interfaces[cp.carFingerprint] if cp.brand else MockInterface
|
|
card.CI = interface(cp)
|
|
card.car_gps_publisher = CarGpsPublisher()
|