wip
|
Before Width: | Height: | Size: 47 KiB After Width: | Height: | Size: 1.4 KiB |
BIN
selfdrive/assets/img_spinner_comma_2.png
Normal file
|
After Width: | Height: | Size: 47 KiB |
|
Before Width: | Height: | Size: 64 KiB After Width: | Height: | Size: 45 KiB |
|
Before Width: | Height: | Size: 68 KiB After Width: | Height: | Size: 64 KiB |
@@ -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)
|
||||
|
||||
@@ -322,11 +325,13 @@ 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"]
|
||||
|
||||
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
|
||||
|
||||