|  |  | @ -64,7 +64,8 @@ bool Pigeon::send_with_ack(std::string cmd){ | 
			
		
	
		
		
			
				
					
					|  |  |  | } |  |  |  | } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | void Pigeon::init() { |  |  |  | void Pigeon::init() { | 
			
		
	
		
		
			
				
					
					|  |  |  |   while (!do_exit){ |  |  |  |   for (int i = 0; i < 10; i++){ | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     if (do_exit) return; | 
			
		
	
		
		
			
				
					
					|  |  |  |     LOGW("panda GPS start"); |  |  |  |     LOGW("panda GPS start"); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     // power off pigeon
 |  |  |  |     // power off pigeon
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -106,10 +107,10 @@ void Pigeon::init() { | 
			
		
	
		
		
			
				
					
					|  |  |  |     if (!send_with_ack("\xB5\x62\x06\x01\x03\x00\x0A\x09\x01\x1E\x70"s)) continue; |  |  |  |     if (!send_with_ack("\xB5\x62\x06\x01\x03\x00\x0A\x09\x01\x1E\x70"s)) continue; | 
			
		
	
		
		
			
				
					
					|  |  |  |     if (!send_with_ack("\xB5\x62\x06\x01\x03\x00\x0A\x0B\x01\x20\x74"s)) continue; |  |  |  |     if (!send_with_ack("\xB5\x62\x06\x01\x03\x00\x0A\x0B\x01\x20\x74"s)) continue; | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     break; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |   } |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     LOGW("panda GPS on"); |  |  |  |     LOGW("panda GPS on"); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     return; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |   } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |   LOGE("failed to initialize panda GPS"); | 
			
		
	
		
		
			
				
					
					|  |  |  | } |  |  |  | } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | void PandaPigeon::connect(Panda * p) { |  |  |  | void PandaPigeon::connect(Panda * p) { | 
			
		
	
	
		
		
			
				
					|  |  | 
 |