From 527d7c803ed9597b210634018cb2eb9d048d9846 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Mon, 29 Jun 2009 23:03:58 -0700 Subject: Add GPS speed and error data to telemetry and aoview Having switched to the SiRF binary GPS format, the velocity and error data can now be displayed. Signed-off-by: Keith Packard --- src/ao.h | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'src/ao.h') diff --git a/src/ao.h b/src/ao.h index d4df1595..30511c8c 100644 --- a/src/ao.h +++ b/src/ao.h @@ -678,9 +678,15 @@ struct ao_gps_data { uint8_t minute; uint8_t second; uint8_t flags; - int32_t latitude; - int32_t longitude; - int16_t altitude; + int32_t latitude; /* degrees * 10⁷ */ + int32_t longitude; /* degrees * 10⁷ */ + int16_t altitude; /* m */ + uint16_t ground_speed; /* cm/s */ + uint8_t course; /* degrees / 2 */ + uint8_t hdop; /* * 5 */ + int16_t climb_rate; /* cm/s */ + uint16_t h_error; /* m */ + uint16_t v_error; /* m */ }; extern __xdata uint8_t ao_gps_mutex; -- cgit v1.2.3