summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-05-13 22:32:25 -0700
committerKeith Packard <keithp@keithp.com>2013-05-13 22:32:25 -0700
commitd2f0dcc73df612d10ed12d364fe661ccd831f037 (patch)
treeb45b5d7f0ee260997ccbb928d546cf9f834c5790 /src
parent50457f9983ec0a432f1050464382749436e3da94 (diff)
altos: Provide a define for the number of sat infos in a telem packet
12 fit, but it's best to use a symbolic constant Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/core/ao_telemetry.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/ao_telemetry.h b/src/core/ao_telemetry.h
index 32a1668c..f2d201de 100644
--- a/src/core/ao_telemetry.h
+++ b/src/core/ao_telemetry.h
@@ -126,13 +126,15 @@ struct ao_telemetry_satellite_info {
uint8_t c_n_1;
};
+#define AO_TELEMETRY_SATELLITE_MAX_SAT 12
+
struct ao_telemetry_satellite {
uint16_t serial; /* 0 */
uint16_t tick; /* 2 */
uint8_t type; /* 4 */
uint8_t channels; /* 5 number of reported sats */
- struct ao_telemetry_satellite_info sats[12]; /* 6 */
+ struct ao_telemetry_satellite_info sats[AO_TELEMETRY_SATELLITE_MAX_SAT]; /* 6 */
uint8_t unused[2]; /* 30 */
/* 32 */
};