Skip to content

Commit

Permalink
Reduced DM uncertain alert
Browse files Browse the repository at this point in the history
  • Loading branch information
sshane committed Nov 9, 2020
1 parent 1afc4f6 commit 15877b0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions SA_RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Stock Additions v0.6 - 2020-11-09 (0.7.10)
* Smoother dynamic follow with less complexity (experimental)
* Raise max limit of global_df_mod to 1.5x
* Continued white panda support (untested, grey gives no warning)
* Reduced DM uncertain alert at night with EON

Stock Additions v0.5.4 - 2020-10-15 (0.7.7)
===
Expand Down
2 changes: 1 addition & 1 deletion selfdrive/monitoring/driver_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,13 +251,13 @@ def update(self, events, driver_engaged, ctrl_active, standstill):
if self.awareness <= 0.:
# terminal red alert: disengagement required
alert = EventName.driverDistracted if self.active_monitoring_mode else EventName.driverUnresponsive
self.hi_std_alert_enabled = True
self.terminal_time += 1
if awareness_prev > 0.:
self.terminal_alert_cnt += 1
elif self.awareness <= self.threshold_prompt:
# prompt orange alert
alert = EventName.promptDriverDistracted if self.active_monitoring_mode else EventName.promptDriverUnresponsive
self.hi_std_alert_enabled = True
elif self.awareness <= self.threshold_pre:
# pre green alert
alert = EventName.preDriverDistracted if self.active_monitoring_mode else EventName.preDriverUnresponsive
Expand Down

0 comments on commit 15877b0

Please sign in to comment.