car-ports-and-controls
Guides openpilot car ports, fingerprints, opendbc interfaces, controls tests, process replay, safety boundaries, and maneuver reports.
- License 许可
- MIT
- 最近更新
- 2026-09-03
- Stars
- ★ 351
- Forks
- 27
01 前言 Front Matter
- name
- car-ports-and-controls
- license
- MIT
- metadata
- { "disco-role": "operating" }
- description
- Guides openpilot car ports, fingerprints, opendbc interfaces, controls tests, process replay, safety boundaries, and maneuver reports.
- disable-model-invocation
- true
02 资源文件 6
- 参考文档references/car-porting-workflows.md2.3 KB
- 参考文档references/controls-and-safety.md2.2 KB
- 参考文档references/maneuver-reports.md976 B
- 参考文档references/process-replay.md1.3 KB
- 参考文档references/troubleshooting.md1.5 KB
- 脚本scripts/extract_fingerprint_summary.py2.5 KB
03 SKILL.md 正文
car-ports-and-controls
Use this sub-skill for new/changed car support, CAN/FW fingerprints, opendbc platform/interface behavior, DBC-related debugging, supported-cars docs, controller tests, driver-monitoring/control policies, process replay, and lateral/longitudinal maneuver report analysis.
Read first
- references/car-porting-workflows.md for car-port utilities, fingerprints, docs generation, and test selection.
- references/controls-and-safety.md for openpilot ACC/ALC/LDW/FCW/DM boundaries, controller tests, state-machine and driver-monitoring guidance.
- references/process-replay.md before running process replay or generating new logs from route data.
- references/maneuver-reports.md before collecting or interpreting lateral/longitudinal maneuver reports.
- references/troubleshooting.md for missing signals, fingerprint ambiguity, panda safety mismatches, process replay downloads, and unsafe Params writes.
Bundled helper
- scripts/extract_fingerprint_summary.py adapts the route fingerprint workflow into a safer helper that reads a route/local log through
LogReader, prints CAN address lengths, FW versions, and VIN, and never requires live Panda hardware.
Typical workflow
- Start with route evidence: use route-log-analysis to normalize route selectors and confirm logs are accessible.
- Extract a fingerprint/FW summary when a route is available.
- Map the platform/brand through opendbc and inspect whether firmware matching is unique or ambiguous.
- Run focused interface/docs/controller tests; do not run all cars or process replay unless time and dependencies allow.
- For route-based regressions, use process replay with explicit whitelist/blacklist choices.
- For real-world maneuver data, enforce safety prerequisites and document route/upload status before report generation.
Safety boundary
openpilot is a driver assistance system, not an autonomous replacement for driver attention. Do not suggest disabling driver monitoring, nerfing excessive actuation checks, or bypassing panda safety tests. Any fork that changes safety code must preserve the relevant safety test suite and should not claim upstream safety compliance without evidence.
04 同仓库更多 Skills
passnet-triton-opt
Make a single PassNet Triton kernel fast AND numerically faithful: performance model (when a replacement can win at all), block/grid/warp tuning, autotune policy, launch overhead, and per-op numeric recipes to pass the dtype baseline tolerances. Use when a pass matches and is correct but speedup below expected, or when correctness fails by small numeric margins.
passnet-solve
END-TO-END playbook for solving one PassNet sample: analyze the computation graphs, decide the optimization strategy (what to fuse, what to replace, what to leave alone), drive the iteration loop, and maximize the sample score. This is the ENTRY skill — invoke it first for any PassNet optimization task; it tells you when to use passnet-pattern-fusion, passnet-triton-opt and passnet-feedback.
passnet-skill
PassNet GPU kernel optimization via compiler passes. Design and implement Triton-based optimization passes, create pass files under ./pass_dir/, self-evaluate with pass_evaluator, and iterate to maximize GPU speedup.
passnet-pattern-fusion
Author PassNet pass files: write patterns that actually MATCH the FX graph, pick fusion regions (which ops to absorb into one Triton kernel), and structure multi-pass submissions with the mandatory shared-dispatch architecture. Use when creating or fixing pattern()/replacement_args()/replacement_func() files, when a pass "failed to match", or when deciding how to fuse multiple kernels/ops.
passnet-orchestrate
Round/batch planning and decision support for PassNet graph optimization. Use for multi-sample triage, worker allocation, eval-budget policy, and post-eval keep/revert decisions. For solving one concrete sample end to end, use passnet-solve as the entry skill; consult this skill only when you need broader planning or a specific decision gate.
passnet-feedback
Fast, deterministic feedback for PassNet work: pre-flight pattern/match verification WITHOUT burning a GPU evaluation, per-node bottleneck analysis of a sample's graphs, and eval-log parsing into per-variant status + estimated score + failure classification. Use BEFORE every GPU evaluation (check_pattern), at the START of a sample (analyze_graph), and AFTER every evaluation (parse_eval_log).