mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-10-28 00:53:45 +08:00
ec8d7eb98b
Define persistent settings, typed schema fields and storage migrations before feature owners consume them. Keep calibration and parameter readers aligned with the shared data contracts. Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> Co-authored-by: Danny <dannyirwin31@yahoo.com> Co-authored-by: Harald Schäfer <harald.the.engineer@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: haraschax <6804392+haraschax@users.noreply.github.com> Co-authored-by: Dom <168790843+firestar5683@users.noreply.github.com> Co-authored-by: prabhaavp <prabhaav@msu.edu>
23 lines
681 B
Python
Executable File
23 lines
681 B
Python
Executable File
#!/usr/bin/env python3
|
|
import sys
|
|
|
|
from opendbc.car.structs import car
|
|
from openpilot.common.params import Params
|
|
from openpilot.starpilot.schema_cache import put_cache
|
|
|
|
|
|
def main(args: list[str]) -> None:
|
|
if args:
|
|
raise SystemExit("Route-derived CarParams require source schema provenance and explicit conversion before cache seeding")
|
|
CP = car.CarParams.new_message()
|
|
CP.openpilotLongitudinalControl = True
|
|
CP.alphaLongitudinalAvailable = False
|
|
params = Params()
|
|
params.put("CarParams", CP.to_bytes(), block=True)
|
|
for key in ("CarParamsCache", "CarParamsPersistent"):
|
|
put_cache(params, key, CP, block=True)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main(sys.argv[1:])
|