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:
33:6ea4c3dd504d
Parent:
32:041dd02e0e3b
Child:
34:f56962030c5c
--- a/main.cpp	Tue Dec 02 13:32:34 2014 +0000
+++ b/main.cpp	Tue Dec 02 13:55:01 2014 +0000
@@ -17,12 +17,12 @@
     pc.printf("EUI register: %016llX\r\n", dw.getEUI());
     pc.printf("Voltage: %f\r\n", dw.getVoltage());
 
-    r.receiver = true;
+    //r.receiver = true;
     
     bool senderstart = true;
     while(1) {
         for(int j = 0; j < 10; j++)
-            pc.printf("%d  ", r.tofs[j]);//*MMRANGING_TIMEUNIT);
+            pc.printf("%f ", r.tofs[j]*MMRANGING_TIMEUNIT);
         pc.printf("\r\n");
         for(int j = 0; j < 10; j++)
             if(r.event[j][0] == '!') {