Controls - Device Management - Increase Thermal Safety Limit

Allow the device to run at a temperature above comma's recommended thermal limits.
This commit is contained in:
FrogAi 2024-05-10 11:20:15 -07:00
parent 032b660fed
commit 6a3af731fd

View File

@ -249,7 +249,8 @@ class Controls:
# Create events for temperature, disk space, and memory # Create events for temperature, disk space, and memory
if self.sm['deviceState'].thermalStatus >= ThermalStatus.red: if self.sm['deviceState'].thermalStatus >= ThermalStatus.red:
self.events.add(EventName.overheat) if not self.frogpilot_toggles.increase_thermal_limits or self.sm['deviceState'].thermalStatus == ThermalStatus.danger:
self.events.add(EventName.overheat)
if self.sm['deviceState'].freeSpacePercent < 7 and not SIMULATION: if self.sm['deviceState'].freeSpacePercent < 7 and not SIMULATION:
# under 7% of space free no enable allowed # under 7% of space free no enable allowed
self.events.add(EventName.outOfSpace) self.events.add(EventName.outOfSpace)