Model switcher

Added model selector to swap between several different models on the fly.
This commit is contained in:
FrogAi
2024-01-12 22:39:30 -07:00
parent 46b0b80f47
commit ae99774cf3
14 changed files with 111 additions and 2 deletions

View File

@@ -463,7 +463,8 @@ def thermald_thread(end_event, hw_queue) -> None:
# Create the prebuilt file if it doesn't exist
if not os.path.isfile('/data/openpilot/prebuilt'):
os.system(f"touch {'/data/openpilot/prebuilt'}")
if os.path.exists("/data/openpilot/selfdrive/modeld/models/supercombo.thneed"):
os.system(f"touch {'/data/openpilot/prebuilt'}")
def main():
hw_queue = queue.Queue(maxsize=1)