summaryrefslogtreecommitdiff
path: root/ao-tools/ao-postflight
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-11-20 11:56:48 -0800
committerKeith Packard <keithp@keithp.com>2009-11-20 12:10:19 -0800
commit8065b8146a31438e66f83c13b99281ec47439a73 (patch)
treece8adbc55e45f9e074f587b840ab39a977187b8a /ao-tools/ao-postflight
parent6894541e0ee144bfc689cc02d4ed333711d3b500 (diff)
Add GPS date/time output to ao-postflight.
GPS date/time information was already being stored in the log, it just wasn't getting displayed by ao-postflight. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/ao-postflight')
-rw-r--r--ao-tools/ao-postflight/ao-postflight.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/ao-tools/ao-postflight/ao-postflight.c b/ao-tools/ao-postflight/ao-postflight.c
index c12939aa..a19b7ebb 100644
--- a/ao-tools/ao-postflight/ao-postflight.c
+++ b/ao-tools/ao-postflight/ao-postflight.c
@@ -208,6 +208,18 @@ analyse_flight(struct cc_flightraw *f, FILE *summary_file, FILE *detail_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++) {