summaryrefslogtreecommitdiff
path: root/src/ao.h
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-03-19 23:53:08 -0700
committerKeith Packard <keithp@keithp.com>2011-03-19 23:55:11 -0700
commitbe838db49d999426a9dd02c0166fe161722f1e61 (patch)
treecad4332accb7dc7d1675c6a2acf1f72e7f5d87f7 /src/ao.h
parentad6bb342d237988404fa32540b38c61d6ddc1f0d (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.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ao.h b/src/ao.h
index 0ba98dbd..527390b0 100644
--- a/src/ao.h
+++ b/src/ao.h
@@ -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);