@ -15,8 +15,8 @@ EventName = car.CarEvent.EventName 
			
		
	
		
		
			
				
					
					# ****************************************************************************************** # ******************************************************************************************  
			
		
	
		
		
			
				
					
					
 
			
		
	
		
		
			
				
					
					_AWARENESS_TIME  =  35.   # passive wheel touch total timeout _AWARENESS_TIME  =  35.   # passive wheel touch total timeout  
			
		
	
		
		
			
				
					
					_AWARENESS_PRE_TIME_TILL_TERMINAL  =  7 ._AWARENESS_PRE_TIME_TILL_TERMINAL  =  12 . 
			
				
				
			
		
	
		
		
			
				
					
					_AWARENESS_PROMPT_TIME_TILL_TERMINAL  =  5 ._AWARENESS_PROMPT_TIME_TILL_TERMINAL  =  6 . 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					
					_DISTRACTED_TIME  =  11. _DISTRACTED_TIME  =  11.  
			
		
	
		
		
			
				
					
					_DISTRACTED_PRE_TIME_TILL_TERMINAL  =  8. _DISTRACTED_PRE_TIME_TILL_TERMINAL  =  8.  
			
		
	
		
		
			
				
					
					_DISTRACTED_PROMPT_TIME_TILL_TERMINAL  =  6. _DISTRACTED_PROMPT_TIME_TILL_TERMINAL  =  6.  
			
		
	
	
		
		
			
				
					
						
							
								 
						
						
							
								 
						
						
					 
					@ -251,13 +251,13 @@ class DriverStatus(): 
			
		
	
		
		
			
				
					
					    if  self . awareness  < =  0. :      if  self . awareness  < =  0. :   
			
		
	
		
		
			
				
					
					      # terminal red alert: disengagement required        # terminal red alert: disengagement required   
			
		
	
		
		
			
				
					
					      alert  =  EventName . driverDistracted  if  self . active_monitoring_mode  else  EventName . driverUnresponsive        alert  =  EventName . driverDistracted  if  self . active_monitoring_mode  else  EventName . driverUnresponsive   
			
		
	
		
		
			
				
					
					      self . hi_std_alert_enabled  =  True   
			
		
	
		
		
			
				
					
					      self . terminal_time  + =  1        self . terminal_time  + =  1   
			
		
	
		
		
			
				
					
					      if  awareness_prev  >  0. :        if  awareness_prev  >  0. :   
			
		
	
		
		
			
				
					
					        self . terminal_alert_cnt  + =  1          self . terminal_alert_cnt  + =  1   
			
		
	
		
		
			
				
					
					    elif  self . awareness  < =  self . threshold_prompt :      elif  self . awareness  < =  self . threshold_prompt :   
			
		
	
		
		
			
				
					
					      # prompt orange alert        # prompt orange alert   
			
		
	
		
		
			
				
					
					      alert  =  EventName . promptDriverDistracted  if  self . active_monitoring_mode  else  EventName . promptDriverUnresponsive        alert  =  EventName . promptDriverDistracted  if  self . active_monitoring_mode  else  EventName . promptDriverUnresponsive   
			
		
	
		
		
			
				
					
					      self . hi_std_alert_enabled  =  True   
			
		
	
		
		
			
				
					
					    elif  self . awareness  < =  self . threshold_pre :      elif  self . awareness  < =  self . threshold_pre :   
			
		
	
		
		
			
				
					
					      # pre green alert        # pre green alert   
			
		
	
		
		
			
				
					
					      alert  =  EventName . preDriverDistracted  if  self . active_monitoring_mode  else  EventName . preDriverUnresponsive        alert  =  EventName . preDriverDistracted  if  self . active_monitoring_mode  else  EventName . preDriverUnresponsive