Skip to content
This repository has been archived by the owner on Apr 13, 2024. It is now read-only.

Commit

Permalink
Pull in some increased temperature values from 7.7
Browse files Browse the repository at this point in the history
Hopefully allows more usage in hot summer weather.
  • Loading branch information
Felger committed Aug 14, 2020
1 parent 573f61f commit 380b05c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions selfdrive/thermald.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,10 +240,10 @@ def thermald_thread():
if max_cpu_temp > 107. or bat_temp >= 63.:
# onroad not allowed
thermal_status = ThermalStatus.danger
elif max_comp_temp > 92.5 or bat_temp > 60.: # CPU throttling starts around ~90C
elif max_comp_temp > 96.0 or bat_temp > 60.:
# hysteresis between onroad not allowed and engage not allowed
thermal_status = clip(thermal_status, ThermalStatus.red, ThermalStatus.danger)
elif max_cpu_temp > 87.5:
elif max_cpu_temp > 94.0:
# hysteresis between engage not allowed and uploader not allowed
thermal_status = clip(thermal_status, ThermalStatus.yellow, ThermalStatus.red)
elif max_cpu_temp > 80.0:
Expand All @@ -259,7 +259,7 @@ def thermald_thread():
# **** starting logic ****

# Check for last update time and display alerts if needed
now = datetime.datetime.now()
now = datetime.datetime.utcnow()

# show invalid date/time alert
time_valid = now.year >= 2019
Expand Down

0 comments on commit 380b05c

Please sign in to comment.