|
@@ -215,11 +215,19 @@ int process_nmea_file(const char *input_file, const char *output_gpx,
|
|
|
log_session_summary(1);
|
|
log_session_summary(1);
|
|
|
|
|
|
|
|
/* Print summary */
|
|
/* Print summary */
|
|
|
- fprintf(debug_output, "\n=== Summary ===\n");
|
|
|
|
|
- fprintf(debug_output, "Points processed: %d\n", point_count);
|
|
|
|
|
- fprintf(debug_output, "Total distance: %.2f km\n", System.distance / 100000.0);
|
|
|
|
|
- fprintf(debug_output, "Elevation gain: %.1f m\n", System.elevation_gain / 10.0);
|
|
|
|
|
- fprintf(debug_output, "Elevation loss: %.1f m\n", System.elevation_loss / 10.0);
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ unsigned int moving = get_logging_time();
|
|
|
|
|
+ unsigned long int stopped = get_pause_time();
|
|
|
|
|
+ fprintf(debug_output, "\n=== Summary ===\n");
|
|
|
|
|
+ fprintf(debug_output, "Points processed: %d\n", point_count);
|
|
|
|
|
+ fprintf(debug_output, "Total distance: %.2f km\n", System.distance / 100000.0);
|
|
|
|
|
+ fprintf(debug_output, "Elevation gain: %.1f m\n", System.elevation_gain / 10.0);
|
|
|
|
|
+ fprintf(debug_output, "Elevation loss: %.1f m\n", System.elevation_loss / 10.0);
|
|
|
|
|
+ fprintf(debug_output, "Moving time: %uh%02um\n", moving/3600, (moving/60)%60);
|
|
|
|
|
+ fprintf(debug_output, "Stopped time: %luh%02lum\n", stopped/3600, (stopped/60)%60);
|
|
|
|
|
+ fprintf(debug_output, "Average speed: %.2f km/h\n", get_avg_speed_x100()/100.0);
|
|
|
|
|
+ fprintf(debug_output, "Average speed (dist/time): %.2f km/h\n", get_dist_avg_speed_x100()/100.0);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
/* Close files */
|
|
/* Close files */
|
|
|
fclose(input);
|
|
fclose(input);
|