From d9afcfac11dd2ada2210724c3f8fc09d6e29a785 Mon Sep 17 00:00:00 2001 From: FrogAi <91348155+FrogAi@users.noreply.github.com> Date: Fri, 10 May 2024 11:20:15 -0700 Subject: [PATCH] Controls - Device Management - Increase Thermal Safety Limit Allow the device to run at a temperature above comma's recommended thermal limits. --- system/hardware/hardwared.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/system/hardware/hardwared.py b/system/hardware/hardwared.py index 36d8584e0..2b47e53d1 100755 --- a/system/hardware/hardwared.py +++ b/system/hardware/hardwared.py @@ -287,6 +287,9 @@ def hardware_thread(end_event, hw_queue) -> None: if fan_controller is not None: msg.deviceState.fanSpeedPercentDesired = fan_controller.update(all_comp_temp, onroad_conditions["ignition"]) + if frogpilot_toggles.increase_thermal_limits: + all_comp_temp -= (THERMAL_BANDS[ThermalStatus.danger].min_temp - THERMAL_BANDS[ThermalStatus.red].min_temp) + is_offroad_for_5_min = (started_ts is None) and ((not started_seen) or (off_ts is None) or (time.monotonic() - off_ts > 60 * 5)) if is_offroad_for_5_min and offroad_comp_temp > OFFROAD_DANGER_TEMP: # if device is offroad and already hot without the extra onroad load,