From 20a2007d1082507b708f6db302d8618cb7c345ea Mon Sep 17 00:00:00 2001 From: Rick Lan Date: Wed, 10 Jul 2019 15:11:09 +1000 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E5=85=A5Noctua=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- selfdrive/dragonpilot/dragonconf/__init__.py | 1 + selfdrive/thermald.py | 3 +++ 2 files changed, 4 insertions(+) diff --git a/selfdrive/dragonpilot/dragonconf/__init__.py b/selfdrive/dragonpilot/dragonconf/__init__.py index 5bc5d27a8..542a4d624 100644 --- a/selfdrive/dragonpilot/dragonconf/__init__.py +++ b/selfdrive/dragonpilot/dragonconf/__init__.py @@ -11,6 +11,7 @@ default_conf = { 'DragonAutoShutdownAt': '30', # in minute 'DragonTempDisableSteerOnSignal': '0', 'DragonDisableLogger': '0', + 'DragonNoctuaMode': '0', } def dragonpilot_set_params(params): diff --git a/selfdrive/thermald.py b/selfdrive/thermald.py index ef75cfffd..ace8ffc56 100755 --- a/selfdrive/thermald.py +++ b/selfdrive/thermald.py @@ -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):