From df3dffc2d1afa24e9131789f94e3b5262a6af5f9 Mon Sep 17 00:00:00 2001 From: Adeeb Shihadeh Date: Thu, 15 Jun 2023 17:08:47 -0700 Subject: [PATCH] thermald: log filtered max temp (#28564) old-commit-hash: cb4c7118a54dc4e3e135dfdc38122e4ef1b2d826 --- cereal | 2 +- selfdrive/thermald/thermald.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cereal b/cereal index f319a83ab7..3a8e4c9d04 160000 --- a/cereal +++ b/cereal @@ -1 +1 @@ -Subproject commit f319a83ab7a902477c786a25aa34077b6f640990 +Subproject commit 3a8e4c9d04b050c057f41d9288ab5ff3f3b02669 diff --git a/selfdrive/thermald/thermald.py b/selfdrive/thermald/thermald.py index b0214b6351..955bbe8d5b 100755 --- a/selfdrive/thermald/thermald.py +++ b/selfdrive/thermald/thermald.py @@ -253,6 +253,7 @@ def thermald_thread(end_event, hw_queue): # this drives the thermal status while onroad temp_sources.append(max(msg.deviceState.pmicTempC)) all_comp_temp = all_temp_filter.update(max(temp_sources)) + msg.deviceState.maxTempC = all_comp_temp if fan_controller is not None: msg.deviceState.fanSpeedPercentDesired = fan_controller.update(all_comp_temp, onroad_conditions["ignition"])