openpilot is an open source driver assistance system. openpilot performs the functions of Automated Lane Centering and Adaptive Cruise Control for over 200 supported car makes and models. 
				 
			 
			
		 
		
		
		
		
		
		
			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. 
		
		
		
	
	
		
		
			
	
	
		
			
				
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# pragma once 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								# include  <optional> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# include  <eigen3/Eigen/Dense> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# include  <QMapboxGL> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# include  <QGeoCoordinate> 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# include  "common/transformations/coordinates.hpp" 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# include  "common/transformations/orientation.hpp" 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# include  "cereal/messaging/messaging.h" 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								const  float  METER_2_MILE  =  0.000621371 ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								const  float  METER_2_FOOT  =  3.28084 ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								# define RAD2DEG(x) ((x) * 180.0  /  M_PI) 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								QGeoCoordinate  to_QGeoCoordinate ( const  QMapbox : : Coordinate  & in ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								QMapbox : : CoordinatesCollections  model_to_collection ( 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  const  cereal : : LiveLocationKalman : : Measurement : : Reader  & calibratedOrientationECEF , 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  const  cereal : : LiveLocationKalman : : Measurement : : Reader  & positionECEF , 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								  const  cereal : : ModelDataV2 : : XYZTData : : Reader  & line ) ; 
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								QMapbox : : CoordinatesCollections  coordinate_to_collection ( QMapbox : : Coordinate  c ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								QMapbox : : CoordinatesCollections  coordinate_list_to_collection ( QList < QGeoCoordinate >  coordinate_list ) ; 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							 
							
							
								float  minimum_distance ( QGeoCoordinate  a ,  QGeoCoordinate  b ,  QGeoCoordinate  p ) ; 
							 
						 
					
						
							
								
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								std : : optional < QMapbox : : Coordinate >  coordinate_from_param ( std : : string  param ) ; 
							 
						 
					
						
							
								
							 
							
								
									
										 
									 
								
							 
							
								 
							 
							
							
								float  distance_along_geometry ( QList < QGeoCoordinate >  geometry ,  QGeoCoordinate  pos ) ;