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:
31:6f76f3d518ac
Parent:
30:4ecc69d3cf8d
Child:
33:6ea4c3dd504d
--- a/MMRanging/MMRanging.h	Fri Nov 28 17:06:51 2014 +0000
+++ b/MMRanging/MMRanging.h	Mon Dec 01 13:04:18 2014 +0000
@@ -12,12 +12,25 @@
     public:
         MMRanging(DW1000& DW);
         void requestRanging();
+        void requestTime();
     //private:
         DW1000& dw;
         
         void callbackRX();
         void callbackTX();
         
+        struct rangingframe {               // has a length of 10 bytes
+            uint8_t type;
+            uint8_t sequence_number;
+            uint64_t time_difference_receiver;
+        } ;
+        uint64_t rangingtimingsSender[10][2];
+        uint64_t rangingtimingsReceiver[10][2];
+        uint8_t ranging_i;
+        uint64_t tofs[10];
+        
+        rangingframe TX;
+        
         // draft for first test
         bool receiver;
         char message[1021];