From 362f067c9c1c608dbe5adb7d318bab1fa8b9760e Mon Sep 17 00:00:00 2001 From: George Hotz Date: Tue, 14 Sep 2021 10:48:43 -0700 Subject: [PATCH] allow PC to emulate TICI with TICI=1 --- selfdrive/hardware/hw.h | 1 + 1 file changed, 1 insertion(+) diff --git a/selfdrive/hardware/hw.h b/selfdrive/hardware/hw.h index 400b1816f0..115b7ff99e 100644 --- a/selfdrive/hardware/hw.h +++ b/selfdrive/hardware/hw.h @@ -14,6 +14,7 @@ class HardwarePC : public HardwareNone { public: static std::string get_os_version() { return "openpilot for PC"; } static bool PC() { return true; } + static bool TICI() { const char *tici = getenv("TICI"); return (tici != nullptr) && (strcmp(tici, "1") == 0); } }; #define Hardware HardwarePC #endif