struct cc_flightcooked *cooked;
double apogee;
- fprintf(summary_file, "Flight: %9d\nSerial: %9d\n",
- f->flight, f->serial);
+ fprintf(summary_file,
+ "Serial: %9d\n"
+ "Flight: %9d\n",
+ f->serial, f->flight);
+ if (f->year) {
+ fprintf(summary_file,
+ "Date: %04d-%02d-%02d\n",
+ f->year, f->month, f->day);
+ }
+ if (f->gps.num) {
+ fprintf(summary_file,
+ "Time: %2d:%02d:%02d\n",
+ f->gps.data[0].hour,
+ f->gps.data[0].minute,
+ f->gps.data[0].second);
+ }
boost_start = f->accel.data[0].time;
boost_stop = f->accel.data[f->accel.num-1].time;
for (i = 0; i < f->state.num; i++) {
nsat = 0;
for (k = 0; k < f->gps.sats[j].nsat; k++) {
fprintf (gps_file, " %12.7f", (double) f->gps.sats[j].sat[k].c_n);
- if (f->gps.sats[j].sat[k].state == 0xbf)
+ if (f->gps.sats[j].sat[k].svid != 0)
nsat++;
}
fprintf(gps_file, " %d\n", nsat);
}
nsat = 0;
for (k = 0; k < f->gps.sats[j].nsat; k++)
- if (f->gps.sats[j].sat[k].state == 0xbf)
+ if (f->gps.sats[j].sat[k].svid != 0)
nsat++;
fprintf(kml_file, "%12.7f, %12.7f, %12.7f <!-- time %12.7f sats %d -->",