|  |  | @ -72,7 +72,7 @@ class LongControl(): | 
			
		
	
		
		
			
				
					
					|  |  |  |   def update(self, active, CS, CP, long_plan): |  |  |  |   def update(self, active, CS, CP, long_plan): | 
			
		
	
		
		
			
				
					
					|  |  |  |     """Update longitudinal control. This updates the state machine and runs a PID loop""" |  |  |  |     """Update longitudinal control. This updates the state machine and runs a PID loop""" | 
			
		
	
		
		
			
				
					
					|  |  |  |     # Interp control trajectory |  |  |  |     # Interp control trajectory | 
			
		
	
		
		
			
				
					
					|  |  |  |     # TODO estimate car specific lag, use .5s for now |  |  |  |     # TODO estimate car specific lag, use .15s for now | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     if len(long_plan.speeds) == CONTROL_N: |  |  |  |     if len(long_plan.speeds) == CONTROL_N: | 
			
		
	
		
		
			
				
					
					|  |  |  |       v_target = interp(DEFAULT_LONG_LAG, T_IDXS[:CONTROL_N], long_plan.speeds) |  |  |  |       v_target = interp(DEFAULT_LONG_LAG, T_IDXS[:CONTROL_N], long_plan.speeds) | 
			
		
	
		
		
			
				
					
					|  |  |  |       v_target_future = long_plan.speeds[-1] |  |  |  |       v_target_future = long_plan.speeds[-1] | 
			
		
	
	
		
		
			
				
					|  |  | 
 |