From 2bbb420d2844ed69768bae16a3283e2fdb688d43 Mon Sep 17 00:00:00 2001 From: Jason Wen Date: Fri, 19 Apr 2024 11:55:32 -0400 Subject: [PATCH] Transition to offroad --- selfdrive/thermald/thermald.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/selfdrive/thermald/thermald.py b/selfdrive/thermald/thermald.py index ee6f82883b..8ed338b6e9 100755 --- a/selfdrive/thermald/thermald.py +++ b/selfdrive/thermald/thermald.py @@ -310,7 +310,9 @@ def thermald_thread(end_event, hw_queue) -> None: startup_conditions["device_booted"] = startup_conditions.get("device_booted", False) or HARDWARE.booted() # user-forced status - startup_conditions["not_force_offroad"] = not params.get_bool("ForceOffroad") + force_offroad = params.get_bool("ForceOffroad") + startup_conditions["not_force_offroad"] = not force_offroad + onroad_conditions["not_force_offroad"] = not force_offroad set_offroad_alert("Offroad_ForceStatus", not startup_conditions["not_force_offroad"]) # if the temperature enters the danger zone, go offroad to cool down