trying stuff

This commit is contained in:
2025-11-09 09:32:12 +01:00
parent c503793f69
commit 6d6da8f5b6
7 changed files with 47 additions and 11 deletions

View File

@@ -59,8 +59,6 @@ struct IGC_DataPoint* parse_datapoint(char* line)
void show_datapoint(struct IGC_DataPoint* dp)
{
printf("Data point: %02d:%02d:%02d | %d°%d'%d\"%c %d°%d'%d\"%c | Baro: %dm GPS: %dm\n", dp->hour, dp->minute, dp->second, dp->lat.deg, dp->lat.min, dp->lat.sec, dp->lat.cardinal, dp->lon.deg, dp->lon.min, dp->lon.sec, dp->lon.cardinal, dp->baro_alt, dp->gps_alt);
compute_decimal_coords(dp);
compute_cartesian_coords(dp);
}
void show_header_info(struct IGC_Header* hdr)
@@ -130,7 +128,9 @@ void parse_igc_file(FILE* fp, struct IGC_Header* hdr, struct dp_node* list)
case DATAPOINT:
struct IGC_DataPoint* dp = parse_datapoint(line);
//show_datapoint(dp);
// Doubly linked list of points (so theyre joined in chronological order; opens possibilities for analysis later)
// Doubly linked list of points (so theyre joined in chronological order; opens possibilities for analysis later)
compute_decimal_coords(dp);
compute_cartesian_coords(dp);
append_datapoint(list, dp);
break;
case HEADER: