| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -71,8 +71,11 @@ class RouteEngine: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        self.ui_pid = ui_pid[0] | 
					 | 
					 | 
					 | 
					        self.ui_pid = ui_pid[0] | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    self.update_location() | 
					 | 
					 | 
					 | 
					    self.update_location() | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    try: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      self.recompute_route() | 
					 | 
					 | 
					 | 
					      self.recompute_route() | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      self.send_instruction() | 
					 | 
					 | 
					 | 
					      self.send_instruction() | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					    except Exception: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      cloudlog.exception("navd.failed_to_compute") | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					  def update_location(self): | 
					 | 
					 | 
					 | 
					  def update_location(self): | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    location = self.sm['liveLocationKalman'] | 
					 | 
					 | 
					 | 
					    location = self.sm['liveLocationKalman'] | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -256,6 +259,9 @@ class RouteEngine: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    for i in range(self.step_idx + 1, len(self.route)): | 
					 | 
					 | 
					 | 
					    for i in range(self.step_idx + 1, len(self.route)): | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      total_distance += self.route[i]['distance'] | 
					 | 
					 | 
					 | 
					      total_distance += self.route[i]['distance'] | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					      total_time += self.route[i]['duration'] | 
					 | 
					 | 
					 | 
					      total_time += self.route[i]['duration'] | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      if self.route[i]['duration_typical'] is None: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					        total_time_typical += self.route[i]['duration'] | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					      else: | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					        total_time_typical += self.route[i]['duration_typical'] | 
					 | 
					 | 
					 | 
					        total_time_typical += self.route[i]['duration_typical'] | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					    msg.navInstruction.distanceRemaining = total_distance | 
					 | 
					 | 
					 | 
					    msg.navInstruction.distanceRemaining = total_distance | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |