sunnypilot v2026.002.000
version: sunnypilot v2026.002.000 (staging) date: 2026-07-21T07:44:02 master commit: 2c334ede443d7391d27575af8c854a095ba702a8
This commit is contained in:
commit
de77c89cf6
3995 files changed
+1260688
No files matched your search
@@ -0,0 +1,17 @@
|
||||
import os
|
||||
|
||||
DBC_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'dbc')
|
||||
|
||||
# -I include path for e.g. "#include <opendbc/safety/safety.h>"
|
||||
INCLUDE_PATH = os.path.abspath(os.path.join(os.path.dirname(os.path.realpath(__file__)), "../"))
|
||||
|
||||
_generated_dbc_cache: dict[str, str] | None = None
|
||||
|
||||
def get_generated_dbcs() -> dict[str, str]:
|
||||
"""Lazily generate all *_generated DBC content in memory.
|
||||
Returns {name: content} where name has no .dbc extension."""
|
||||
global _generated_dbc_cache
|
||||
if _generated_dbc_cache is None:
|
||||
from opendbc.dbc.generator.generator import generate_all
|
||||
_generated_dbc_cache = generate_all()
|
||||
return _generated_dbc_cache
|
||||
Reference in new issue
Block a user