diff options
| author | Keith Packard <keithp@keithp.com> | 2009-06-29 23:03:58 -0700 |
|---|---|---|
| committer | Keith Packard <keithp@keithp.com> | 2009-06-29 23:03:58 -0700 |
| commit | 527d7c803ed9597b210634018cb2eb9d048d9846 (patch) | |
| tree | f409b8ebe8a74e3736dd7abf76ba401133eafec5 /src/ao.h | |
| parent | ee4919dd771b00e2a2dd1083c9528efa7baab50f (diff) | |
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 <keithp@keithp.com>
Diffstat (limited to 'src/ao.h')
| -rw-r--r-- | src/ao.h | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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; |
