mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-22 09:03:45 +08:00
display message when forced offroad
This commit is contained in:
@@ -323,6 +323,7 @@ std::unordered_map<std::string, uint32_t> keys = {
|
||||
{"VisionCurveLaneless", PERSISTENT | BACKUP},
|
||||
{"VwAccType", PERSISTENT | BACKUP},
|
||||
{"VwCCOnly", PERSISTENT | BACKUP},
|
||||
{"Offroad_ForceStatus", PERSISTENT},
|
||||
{"Offroad_SupersededUpdate", PERSISTENT},
|
||||
|
||||
{"SunnylinkCache_Users", PERSISTENT},
|
||||
|
||||
@@ -311,6 +311,7 @@ def thermald_thread(end_event, hw_queue) -> None:
|
||||
|
||||
# user-forced status
|
||||
startup_conditions["not_force_offroad"] = not params.get_bool("ForceOffroad")
|
||||
set_offroad_alert("Offroad_ForceStatus", True)
|
||||
|
||||
# if the temperature enters the danger zone, go offroad to cool down
|
||||
onroad_conditions["device_temp_good"] = thermal_status < ThermalStatus.danger
|
||||
|
||||
Reference in New Issue
Block a user