diff options
author | Keith Packard <keithp@keithp.com> | 2011-03-19 23:53:08 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-03-19 23:55:11 -0700 |
commit | be838db49d999426a9dd02c0166fe161722f1e61 (patch) | |
tree | cad4332accb7dc7d1675c6a2acf1f72e7f5d87f7 /src/ao.h | |
parent | ad6bb342d237988404fa32540b38c61d6ddc1f0d (diff) |
altos: New telemetry report format (version 4). Supports tiny telemetry.
This completely replaces the version 3 format with a much simpler and
easier to parse scheme. It's described in detail in ao_telem.h, but
the basic idea is that the whole line is split into name/value pairs,
separated by whitespace. Every name is unique, and the values are
either strings or integers. No extraneous formatting or units are
provided.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao.h')
-rw-r--r-- | src/ao.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -841,6 +841,7 @@ ao_spi_init(void); #define AO_GPS_VALID (1 << 4) #define AO_GPS_RUNNING (1 << 5) #define AO_GPS_DATE_VALID (1 << 6) +#define AO_GPS_COURSE_VALID (1 << 7) extern __xdata uint16_t ao_gps_tick; @@ -905,8 +906,7 @@ ao_gps_report_init(void); * ao_telemetry.c */ -#define AO_MAX_CALLSIGN 8 -#define AO_TELEMETRY_VERSION 3 +#define AO_MAX_CALLSIGN 8 struct ao_telemetry { uint16_t serial; @@ -1020,6 +1020,10 @@ extern const char const * const ao_state_names[]; void ao_monitor(void); +#define AO_MONITORING_OFF 0 +#define AO_MONITORING_FULL 1 +#define AO_MONITORING_TINY 2 + void ao_set_monitor(uint8_t monitoring); |