diff options
| author | Keith Packard <keithp@keithp.com> | 2009-11-15 16:04:41 -0800 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2009-11-15 16:19:52 -0800 |
| commit | 524665fc221b0d483453c67b7211e282cebc8980 (patch) | |
| tree | c65642da7284f8f184382acb785e51e5fe7a08af /ao-tools/ao-view/aoview_state.c | |
| parent | 3ee279ba76c2a79d142c466f19ef758cf4c01d70 (diff) | |
Add date to GPS data, captured from GPRMC packet.
Pull the date out of the GPS stream and send it over the telemetry
link and write it to the eeprom.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'ao-tools/ao-view/aoview_state.c')
| -rw-r--r-- | ao-tools/ao-view/aoview_state.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ao-tools/ao-view/aoview_state.c b/ao-tools/ao-view/aoview_state.c index 2f613d44..21cea99a 100644 --- a/ao-tools/ao-view/aoview_state.c +++ b/ao-tools/ao-view/aoview_state.c @@ -315,6 +315,10 @@ aoview_state_notify(struct cc_telem *data) aoview_state_add_deg(1, "Longitude", state->gps.lon, 'E', 'W'); aoview_table_add_row(1, "GPS altitude", "%d", state->gps.alt); aoview_table_add_row(1, "GPS height", "%d", state->gps_height); + aoview_table_add_row(1, "GPS date", "%04d-%02d-%02d", + state->gps.gps_time.year, + state->gps.gps_time.month, + state->gps.gps_time.day); aoview_table_add_row(1, "GPS time", "%02d:%02d:%02d", state->gps.gps_time.hour, state->gps.gps_time.minute, |
