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.
		
		
		
		
		
			
		
			
				
					
					
						
							27 lines
						
					
					
						
							618 B
						
					
					
				
			
		
		
	
	
							27 lines
						
					
					
						
							618 B
						
					
					
				#pragma once
 | 
						|
 | 
						|
#include <string>
 | 
						|
#include <vector>
 | 
						|
 | 
						|
#include "common/params.h"
 | 
						|
#include "selfdrive/pandad/panda.h"
 | 
						|
 | 
						|
void pandad_main_thread(std::vector<std::string> serials);
 | 
						|
 | 
						|
class PandaSafety {
 | 
						|
public:
 | 
						|
  PandaSafety(const std::vector<Panda *> &pandas) : pandas_(pandas) {}
 | 
						|
  void configureSafetyMode();
 | 
						|
 | 
						|
private:
 | 
						|
  void updateMultiplexingMode();
 | 
						|
  std::string fetchCarParams();
 | 
						|
  void setSafetyMode(const std::string ¶ms_string);
 | 
						|
 | 
						|
  bool initialized_ = false;
 | 
						|
  bool log_once_ = false;
 | 
						|
  bool safety_configured_ = false;
 | 
						|
  bool prev_obd_multiplexing_ = false;
 | 
						|
  std::vector<Panda *> pandas_;
 | 
						|
  Params params_;
 | 
						|
};
 | 
						|
 |