加入Noctua模式

This commit is contained in:
Rick Lan
2019-07-10 15:11:09 +10:00
parent 64701acb68
commit 20a2007d10
2 changed files with 4 additions and 0 deletions
@@ -11,6 +11,7 @@ default_conf = {
'DragonAutoShutdownAt': '30', # in minute
'DragonTempDisableSteerOnSignal': '0',
'DragonDisableLogger': '0',
'DragonNoctuaMode': '0',
}
def dragonpilot_set_params(params):
+3
View File
@@ -82,6 +82,9 @@ _TEMP_THRS_L = [42.5, 57.5, 72.5, 10000]
_FAN_SPEEDS = [0, 16384, 32768, 65535]
# max fan speed only allowed if battery is hot
_BAT_TEMP_THERSHOLD = 45.
if Params.get('DragonNoctuaMode') == "1":
_FAN_SPEEDS = [65535, 65535, 65535, 65535]
_BAT_TEMP_THERSHOLD = 20.
def handle_fan(max_cpu_temp, bat_temp, fan_speed):