projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ao-tools/ao-stmload: application base moved to 0x08001000
[fw/altos]
/
ao-tools
/
lib
/
cc-telemetry.h
diff --git
a/ao-tools/lib/cc-telemetry.h
b/ao-tools/lib/cc-telemetry.h
index e849cd3b66e1c33422b6e7bc0251436e8490a99e..9a5be49f9a76d2e9cd2122e951838cf9d5e2eed7 100644
(file)
--- a/
ao-tools/lib/cc-telemetry.h
+++ b/
ao-tools/lib/cc-telemetry.h
@@
-237,7
+237,19
@@
union ao_telemetry_all {
struct ao_telemetry_baro baro;
};
struct ao_telemetry_baro baro;
};
+#define CC_TELEMETRY_HEADER "TELEM"
+
+/* "TELEM " 1 byte length 32 data bytes 1 rssi 1 status 1 checksum 1 null */
+
+#define CC_TELEMETRY_BUFSIZE (6 + (1 + 32 + 3) * 2 + 1)
+
int
cc_telemetry_parse(const char *input_line, union ao_telemetry_all *telemetry);
int
cc_telemetry_parse(const char *input_line, union ao_telemetry_all *telemetry);
+uint8_t
+cc_telemetry_cksum(const union ao_telemetry_all *telemetry);
+
+void
+cc_telemetry_unparse(const union ao_telemetry_all *telemetry, char output_line[CC_TELEMETRY_BUFSIZE]);
+
#endif
#endif