rc_proto: choose best power level for rc transmit
[protos/xbee.git] / rc_proto.h
index a9a826b..dd58951 100644 (file)
 #define RC_PROTO_TYPE_RANGE   1
 
 
+#define RX_DB_THRESHOLD 0x40
+
 /* 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];
@@ -47,4 +55,8 @@ struct rc_proto_range {
 } __attribute__((packed));
 
 
+void rc_proto_rx_range(int power_level);
+void rc_proto_send_channels(void);
+void rc_proto_init(void);
+
 #endif