修正DragonSteeringMonitorTimer 錯誤

This commit is contained in:
dragonpilot
2019-08-20 16:21:17 +10:00
parent 7fd9e33cb4
commit 00caf953fa
+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 = int(params.get("DragonSteeringMonitorTimer"))
_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.