git.droids-corp.org
/
protos
/
xbee.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rc_proto: choose best power level for rc transmit
[protos/xbee.git]
/
rc_proto.h
diff --git
a/rc_proto.h
b/rc_proto.h
index
a9a826b
..
dd58951
100644
(file)
--- a/
rc_proto.h
+++ b/
rc_proto.h
@@
-34,8
+34,16
@@
#define RC_PROTO_TYPE_RANGE 1
#define RC_PROTO_TYPE_RANGE 1
+#define RX_DB_THRESHOLD 0x40
+
/* TODO: Authenticate packet!! */
/* TODO: Authenticate packet!! */
+extern uint64_t rc_send_dstaddr;
+
+struct rc_proto_hdr {
+ uint8_t type;
+} __attribute__((packed));
+
struct rc_proto_channel {
uint8_t type;
int16_t axis[AXIS_NUMBER];
struct rc_proto_channel {
uint8_t type;
int16_t axis[AXIS_NUMBER];
@@
-47,4
+55,8
@@
struct rc_proto_range {
} __attribute__((packed));
} __attribute__((packed));
+void rc_proto_rx_range(int power_level);
+void rc_proto_send_channels(void);
+void rc_proto_init(void);
+
#endif
#endif