You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
			
				
					11 lines
				
				347 B
			
		
		
			
		
	
	
					11 lines
				
				347 B
			| 
								 
											6 years ago
										 
									 | 
							
								# Cython, now uses scons to build
							 | 
						||
| 
								 
											1 year ago
										 
									 | 
							
								from openpilot.selfdrive.pandad.pandad_api_impl import can_list_to_can_capnp
							 | 
						||
| 
								 
											6 years ago
										 
									 | 
							
								assert can_list_to_can_capnp
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								def can_capnp_to_can_list(can, src_filter=None):
							 | 
						||
| 
								 | 
							
								  ret = []
							 | 
						||
| 
								 | 
							
								  for msg in can:
							 | 
						||
| 
								 | 
							
								    if src_filter is None or msg.src in src_filter:
							 | 
						||
| 
								 | 
							
								      ret.append((msg.address, msg.busTime, msg.dat, msg.src))
							 | 
						||
| 
								 | 
							
								  return ret
							 |