Tobi's ubw test branch
Dependencies: mavlink_bridge mbed
Fork of AIT_UWB_Range by
Diff: MMRanging/MMRanging.h
- Revision:
- 28:a830131560e8
- Parent:
- 27:71178fdb78e1
- Child:
- 30:4ecc69d3cf8d
diff -r 71178fdb78e1 -r a830131560e8 MMRanging/MMRanging.h --- a/MMRanging/MMRanging.h Fri Nov 28 07:44:36 2014 +0000 +++ b/MMRanging/MMRanging.h Fri Nov 28 14:40:03 2014 +0000 @@ -9,10 +9,24 @@ #define MMRANGING_TIMEUNIT 1/(128*499.2) // conversion between LSB of TX and RX timestamps and microseconds class MMRanging { - public: - MMRanging(DW1000* dw); - private: - DW1000* dw; + public: + MMRanging(DW1000& DW); + void callbackRX(); + void callbackTX(); + void requestRanging(); + //private: + DW1000& dw; + + // draft for first test + bool receiver; + char message[1021]; + char messageRX[1021]; + uint64_t TX_timestamp; + uint64_t RX_timestamp; + int event_i; + char event[10][20]; + uint64_t eventtimes[10]; + uint8_t counter; }; #endif \ No newline at end of file