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:
37:40f94c634c3e
Parent:
36:883de6f9a73b
Child:
38:8ef3b8d8b908
--- a/main.cpp	Fri Feb 20 09:07:52 2015 +0000
+++ b/main.cpp	Fri Feb 20 13:21:06 2015 +0000
@@ -39,8 +39,8 @@
         // Output bar on console
         for(int j = 0; j < 1; j++)
             //pc.printf("%f ", r.tofs[j]*MMRANGING_TIMEUNIT_NS);
-            pc.printf("%lld [", r.tofs);
-        int dots = r.tofs*70/1400;
+            pc.printf("%lld [", r.tofs[1]);
+        int dots = r.tofs[1]*70/1400;
         if (abs(dots) < 100000)
             for(int j = 0; j < dots; j++)
                 pc.printf("=");
@@ -55,9 +55,9 @@
             r.event_i = 0;
         #endif
         pc.printf("Status: %llX\r\n", dw.getStatus());
-        pc.printf("Status: %llX\r\n", dw.readRegister40(DW1000_TX_FCTRL, 0));
+        pc.printf("TX Control: %llX\r\n", dw.readRegister40(DW1000_TX_FCTRL, 0));
         
         wait(0.01);
-        wait(0.3);
+        wait(0.2);
     }
 }
\ No newline at end of file