path_storer.store_path() collision_checker.check_for_collisions() collision_checker.check_for_warnings() sailbot_gps_data.StoreSailbotGPS() boatState = sailbot.getCurrentState() # Store logs validDataReady = len(path_storer.pathCosts) > 0 and len( path_storer.pathCostBreakdowns) > 0 if validDataReady: log = {} # Most logs general = { 'Number of Collisions': collision_checker.get_times_collided(), 'Number of Near Collisions': collision_checker.get_times_warned(), 'Displacement (km)': sailbot_gps_data.Find_Distance(), 'Closest Obstacle Distance (km)': log_closest_obstacle.closestDistances[-1], 'Path Cost': path_storer.pathCosts[-1], 'Heading': boatState.headingDegrees, 'Speed': boatState.speedKmph, 'Global Wind Direction': boatState.globalWindDirectionDegrees, 'Global Wind Speed Kmph':