stop lying on my chestnut

This commit is contained in:
firestarsdog
2026-09-13 22:36:58 -04:00
committed by firestar5683
parent 688631b6bd
commit 7a7b391656
3 changed files with 79 additions and 1 deletions
+5 -1
View File
@@ -39,6 +39,7 @@ from openpilot.system.hardware.chestnut.status import ChestnutStatus
from openpilot.system.version import terms_version, training_version
from openpilot.system.athena.registration import UNREGISTERED_DONGLE_ID
from openpilot.starpilot.assets.model_manager import selected_chestnut_artifacts_ready
from openpilot.starpilot.common.starpilot_variables import get_starpilot_toggles
ThermalStatus = log.DeviceState.ThermalStatus
@@ -434,6 +435,9 @@ def hardware_thread(end_event, hw_queue) -> None:
)
chestnut_state = sm["chestnutState"]
chestnut_valid = sm.alive["chestnutState"] and sm.valid["chestnutState"]
compiled = params.get_bool("UsbGpuCompiled")
if started_ts is None:
compiled = selected_chestnut_artifacts_ready(params)
chestnut_status.update(
started_ts is None,
chestnut_expected,
@@ -441,7 +445,7 @@ def hardware_thread(end_event, hw_queue) -> None:
chestnut.failed,
params.get_bool("UsbGpuLoading"),
params.get("UsbGpuActive"),
params.get_bool("UsbGpuCompiled"),
compiled,
chestnut_state if chestnut_valid else None,
set_offroad_alert_if_changed,
)