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.
		
		
		
		
			
				
					16 lines
				
				397 B
			
		
		
			
		
	
	
					16 lines
				
				397 B
			| 
								 
											3 weeks ago
										 
									 | 
							
								#include "system/camerad/cameras/camera_common.h"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#include <cassert>
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#include "common/params.h"
							 | 
						||
| 
								 | 
							
								#include "common/util.h"
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								int main(int argc, char *argv[]) {
							 | 
						||
| 
								 | 
							
								  // doesn't need RT priority since we're using isolcpus
							 | 
						||
| 
								 | 
							
								  int ret = util::set_core_affinity({6});
							 | 
						||
| 
								 | 
							
								  assert(ret == 0 || Params().getBool("IsOffroad")); // failure ok while offroad due to offlining cores
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								  camerad_thread();
							 | 
						||
| 
								 | 
							
								  return 0;
							 | 
						||
| 
								 | 
							
								}
							 |