mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-05 13:32:05 +08:00
helper script to set car params
old-commit-hash: df1756dffa287823baa11fe294dbb2d214ec383f
This commit is contained in:
Executable
+11
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env python3
|
||||
import sys
|
||||
|
||||
from common.params import Params
|
||||
from tools.lib.route import Route
|
||||
from tools.lib.logreader import LogReader
|
||||
|
||||
if __name__ == "__main__":
|
||||
r = Route(sys.argv[1])
|
||||
cp = [m for m in LogReader(r.qlog_paths()[0]) if m.which() == 'carParams']
|
||||
Params().put("CarParams", cp[0].as_builder().to_bytes())
|
||||
Reference in New Issue
Block a user