|  |  | @ -117,17 +117,15 @@ void MapWindow::timerUpdate() { | 
			
		
	
		
		
			
				
					
					|  |  |  |     auto location = (*sm)["liveLocationKalman"].getLiveLocationKalman(); |  |  |  |     auto location = (*sm)["liveLocationKalman"].getLiveLocationKalman(); | 
			
		
	
		
		
			
				
					
					|  |  |  |     auto pos = location.getPositionGeodetic(); |  |  |  |     auto pos = location.getPositionGeodetic(); | 
			
		
	
		
		
			
				
					
					|  |  |  |     auto orientation = location.getCalibratedOrientationNED(); |  |  |  |     auto orientation = location.getCalibratedOrientationNED(); | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     auto velocity = location.getVelocityCalibrated(); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     localizer_valid = (location.getStatus() == cereal::LiveLocationKalman::Status::VALID) && pos.getValid(); |  |  |  |     localizer_valid = (location.getStatus() == cereal::LiveLocationKalman::Status::VALID) && | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |      pos.getValid() && orientation.getValid() && velocity.getValid(); | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     if (localizer_valid) { |  |  |  |     if (localizer_valid) { | 
			
		
	
		
		
			
				
					
					|  |  |  |       float velocity = location.getVelocityCalibrated().getValue()[0]; |  |  |  |       last_position = QMapbox::Coordinate(pos.getValue()[0], pos.getValue()[1]); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       float bearing = RAD2DEG(orientation.getValue()[2]); |  |  |  |       last_bearing = RAD2DEG(orientation.getValue()[2]); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |       auto coordinate = QMapbox::Coordinate(pos.getValue()[0], pos.getValue()[1]); |  |  |  |       velocity_filter.update(velocity.getValue()[0]); | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       last_position = coordinate; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       last_bearing = bearing; |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       velocity_filter.update(velocity); |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |     } |  |  |  |     } | 
			
		
	
		
		
			
				
					
					|  |  |  |   } |  |  |  |   } | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | 
 |