This commit is contained in:
Your Name
2024-05-09 21:36:25 -05:00
parent fecc8c1aaa
commit 3014512128
5 changed files with 8 additions and 3 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 68 KiB

After

Width:  |  Height:  |  Size: 64 KiB

View File

@@ -208,6 +208,9 @@ def thermald_thread(end_event, hw_queue) -> None:
device_management = params.get_bool("DeviceManagement")
offline_mode = device_management and params.get_bool("OfflineMode")
# For testing a temporary overtemp notice
test_temp_count = 120
while not end_event.is_set():
sm.update(PANDA_STATES_TIMEOUT)
@@ -321,12 +324,14 @@ def thermald_thread(end_event, hw_queue) -> None:
# if the temperature enters the danger zone, go offroad to cool down
onroad_conditions["device_temp_good"] = thermal_status < ThermalStatus.danger
onroad_conditions["device_temp_good"] = False
extra_text = f"{offroad_comp_temp:.1f}C"
show_alert = (not onroad_conditions["device_temp_good"] or not startup_conditions["device_temp_engageable"]) and onroad_conditions["ignition"]
show_alert = True
if test_temp_count > 0:
show_alert = True
test_temp_count = test_temp_count - 1
set_offroad_alert_if_changed("Offroad_TemperatureTooHigh", show_alert, extra_text=extra_text)
# TODO: this should move to TICI.initialize_hardware, but we currently can't import params there