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.
		
		
		
		
			
				
					21 lines
				
				479 B
			
		
		
			
		
	
	
					21 lines
				
				479 B
			| 
											3 years ago
										 | #include "system/camerad/cameras/camera_common.h"
 | ||
| 
											5 years ago
										 | 
 | ||
| 
											4 years ago
										 | #include <cassert>
 | ||
| 
											5 years ago
										 | 
 | ||
| 
											4 years ago
										 | #include "common/params.h"
 | ||
|  | #include "common/util.h"
 | ||
| 
											3 years ago
										 | #include "system/hardware/hw.h"
 | ||
| 
											6 years ago
										 | 
 | ||
|  | int main(int argc, char *argv[]) {
 | ||
| 
											3 years ago
										 |   if (!Hardware::PC()) {
 | ||
| 
											4 years ago
										 |     int ret;
 | ||
| 
											4 years ago
										 |     ret = util::set_realtime_priority(53);
 | ||
| 
											4 years ago
										 |     assert(ret == 0);
 | ||
| 
											4 years ago
										 |     ret = util::set_core_affinity({6});
 | ||
| 
											4 years ago
										 |     assert(ret == 0 || Params().getBool("IsOffroad")); // failure ok while offroad due to offlining cores
 | ||
|  |   }
 | ||
| 
											6 years ago
										 | 
 | ||
| 
											4 years ago
										 |   camerad_thread();
 | ||
| 
											4 years ago
										 |   return 0;
 | ||
| 
											6 years ago
										 | }
 |