This is the DW1000 driver and our self developed distance measurement application based on it. We do this as a semester thesis at ETH Zürich under the Automatic Control Laboratory in the Department of electrical engineering.

Dependencies:   mbed

Revision:
34:f56962030c5c
Parent:
33:6ea4c3dd504d
Child:
35:95d838d33bf5
--- a/MMRanging/MMRanging.h	Tue Dec 02 13:55:01 2014 +0000
+++ b/MMRanging/MMRanging.h	Sat Dec 27 14:37:12 2014 +0000
@@ -18,12 +18,12 @@
         
         void callbackRX();
         void callbackTX();
+        void sendRangingframe(uint8_t type, uint8_t sequence_number, uint64_t time_difference_receiver, uint16_t dummy);
         
-        struct rangingframe {               // has a length of 10 bytes
-            uint8_t type;
-            uint8_t sequence_number;
+        struct rangingframe {
+            uint32_t type;
+            uint32_t sequence_number;
             uint64_t time_difference_receiver;
-            uint16_t dummy;
         } ;
         uint64_t rangingtimingsSender[10][2];
         uint64_t rangingtimingsReceiver[10][2];