Update logic so if DragonSteeringMonitorTimer set to <= 0, it will disable steering monitor by increase the value to 86400 (a day)

This commit is contained in:
dragonpilot
2019-09-13 12:35:50 +10:00
parent 4eb316c291
commit 0441cf139c
+1 -1
View File
@@ -98,7 +98,7 @@ class DriverStatus():
# dragonpilot
self.awareness_time = float(params.get("DragonSteeringMonitorTimer"))
self.awareness_time = _AWARENESS_TIME if self.awareness_time <= 0. else self.awareness_time * 60.
self.awareness_time = 86400 if self.awareness_time <= 0. else self.awareness_time * 60.
self.dragon_enable_driver_safety_check = False if params.get("DragonEnableDriverSafetyCheck") == "0" else True
self._set_timers(active_monitoring=True)