|  |  |  | @ -46,6 +46,7 @@ def create_es_distance(packer, frame, es_distance_msg, bus, pcm_cancel_cmd, long | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     # Do not disable openpilot on Eyesight Soft Disable, if openpilot is controlling long | 
			
		
	
		
			
				
					|  |  |  |  |     values["Cruise_Soft_Disable"] = 0 | 
			
		
	
		
			
				
					|  |  |  |  |     values["Cruise_Fault"] = 0 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     if brake_cmd: | 
			
		
	
		
			
				
					|  |  |  |  |       values["Cruise_Brake_Active"] = 1 | 
			
		
	
	
		
			
				
					|  |  |  | @ -160,6 +161,7 @@ def create_es_dashstatus(packer, frame, dashstatus_msg, enabled, long_enabled, l | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   if long_enabled: | 
			
		
	
		
			
				
					|  |  |  |  |     values["PCB_Off"] = 1 # AEB is not presevered, so show the PCB_Off on dash | 
			
		
	
		
			
				
					|  |  |  |  |     values["Cruise_Fault"] = 0 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   # Filter stock LKAS disabled and Keep hands on steering wheel OFF alerts | 
			
		
	
		
			
				
					|  |  |  |  |   if values["LKAS_State_Msg"] in (2, 3): | 
			
		
	
	
		
			
				
					|  |  |  | @ -167,7 +169,7 @@ def create_es_dashstatus(packer, frame, dashstatus_msg, enabled, long_enabled, l | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   return packer.make_can_msg("ES_DashStatus", CanBus.main, values) | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  | def create_es_brake(packer, frame, es_brake_msg, enabled, brake_value): | 
			
		
	
		
			
				
					|  |  |  |  | def create_es_brake(packer, frame, es_brake_msg, long_enabled, long_active, brake_value): | 
			
		
	
		
			
				
					|  |  |  |  |   values = {s: es_brake_msg[s] for s in [ | 
			
		
	
		
			
				
					|  |  |  |  |     "CHECKSUM", | 
			
		
	
		
			
				
					|  |  |  |  |     "Signal1", | 
			
		
	
	
		
			
				
					|  |  |  | @ -182,7 +184,10 @@ def create_es_brake(packer, frame, es_brake_msg, enabled, brake_value): | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   values["COUNTER"] = frame % 0x10 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   if enabled: | 
			
		
	
		
			
				
					|  |  |  |  |   if long_enabled: | 
			
		
	
		
			
				
					|  |  |  |  |     values["Cruise_Brake_Fault"] = 0 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     if long_active: | 
			
		
	
		
			
				
					|  |  |  |  |       values["Cruise_Activated"] = 1 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   values["Brake_Pressure"] = brake_value | 
			
		
	
	
		
			
				
					|  |  |  | @ -210,6 +215,7 @@ def create_es_status(packer, frame, es_status_msg, long_enabled, long_active, cr | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |   if long_enabled: | 
			
		
	
		
			
				
					|  |  |  |  |     values["Cruise_RPM"] = cruise_rpm | 
			
		
	
		
			
				
					|  |  |  |  |     values["Cruise_Fault"] = 0 | 
			
		
	
		
			
				
					|  |  |  |  | 
 | 
			
		
	
		
			
				
					|  |  |  |  |     if long_active: | 
			
		
	
		
			
				
					|  |  |  |  |       values["Cruise_Activated"] = 1 | 
			
		
	
	
		
			
				
					|  |  |  | 
 |