Merge branch 'devel-en' into devel-zhs

# Conflicts:
#	apk/ai.comma.plus.offroad.apk
This commit is contained in:
dragonpilot
2019-08-20 16:49:20 +10:00
4 changed files with 4 additions and 2 deletions
Binary file not shown.
+1
View File
@@ -109,6 +109,7 @@ keys = {
"DragonUIDevMini": [TxType.PERSISTENT],
"DragonBootTomTom": [TxType.PERSISTENT],
"DragonBootAutonavi": [TxType.PERSISTENT],
"DragonSteeringMonitorTimer": [TxType.PERSISTENT],
}
+2 -2
View File
@@ -4,8 +4,8 @@ from selfdrive.controls.lib.drive_helpers import create_event, EventTypes as ET
from common.filter_simple import FirstOrderFilter
from common.params import Params
params = Params()
_AWARENESS_TIME = 90. # 1.5 minutes limit without user touching steering wheels make the car enter a terminal status
_Timer = int(params.get("DragonSteeringMonitorTimer")) * 60
_AWARENESS_TIME = _Timer if _Timer > 0 else 86400
_AWARENESS_PRE_TIME_TILL_TERMINAL = 20. # a first alert is issued 20s before expiration
_AWARENESS_PROMPT_TIME_TILL_TERMINAL = 5. # a second alert is issued 5s before start decelerating the car
_DISTRACTED_TIME = 10.
@@ -28,6 +28,7 @@ default_conf = {
'DragonUIDevMini': '1',
'DragonBootTomTom': '0',
'DragonBootAutonavi': '0',
'DragonSteeringMonitorTimer': '3',
}
deprecated_conf = {