|
@@ -222,8 +222,18 @@ int process_nmea_file(const char *input_file, const char *output_gpx,
|
|
|
{
|
|
{
|
|
|
unsigned int moving = get_logging_time();
|
|
unsigned int moving = get_logging_time();
|
|
|
unsigned long int stopped = get_pause_time();
|
|
unsigned long int stopped = get_pause_time();
|
|
|
|
|
+ /* points_accepted counts every point past all reject checks, at
|
|
|
|
|
+ * AVG_COUNT=3 samples per written trkpt with filters enabled (1:1
|
|
|
|
|
+ * with filters disabled, so this is 0 in that mode). */
|
|
|
|
|
+ unsigned long int averaged_out = System.points_accepted - System.points_written *
|
|
|
|
|
+ (filters_enabled ? 3UL : 1UL);
|
|
|
fprintf(debug_output, "\n=== Summary ===\n");
|
|
fprintf(debug_output, "\n=== Summary ===\n");
|
|
|
fprintf(debug_output, "Points processed: %d\n", point_count);
|
|
fprintf(debug_output, "Points processed: %d\n", point_count);
|
|
|
|
|
+ fprintf(debug_output, "Points during pauses: %lu\n", System.points_paused);
|
|
|
|
|
+ fprintf(debug_output, "Points skipped (warm-up): %lu\n", System.points_skipped);
|
|
|
|
|
+ fprintf(debug_output, "Points rejected: %lu\n", System.rejected_count);
|
|
|
|
|
+ fprintf(debug_output, "Points averaged out: %lu\n", averaged_out);
|
|
|
|
|
+ fprintf(debug_output, "Points saved: %lu\n", System.points_written);
|
|
|
fprintf(debug_output, "Total distance: %.2f km\n", System.distance / 100000.0);
|
|
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 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, "Elevation loss: %.1f m\n", System.elevation_loss / 10.0);
|