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:
42:83931678c4de
Parent:
41:0a3bb028d4ba
Child:
43:d89fe237a684
--- a/main.cpp	Sun Mar 01 20:19:38 2015 +0000
+++ b/main.cpp	Mon Mar 02 09:33:03 2015 +0000
@@ -20,9 +20,6 @@
     pc.printf("System Configuration: %llX\r\n", dw.readRegister40(DW1000_SYS_CFG, 0));
     pc.printf("Size of Rangingframe: %d\r\n", sizeof(r.TX));
     
-    uint16_t setdelay = 32953;//462; // TODO: = 2^15
-    dw.writeRegister16(DW1000_TX_ANTD, 0, setdelay);
-    //dw.writeRegister16(DW1000_LDE_CTRL, 0x1804, setdelay / 2);
     pc.printf("Antenna Delay TX: %d\r\n", dw.readRegister16(DW1000_TX_ANTD, 0));
     pc.printf("Antenna Delay RX: %d\r\n", dw.readRegister16(DW1000_LDE_CTRL, 0x1804));
     pc.printf("TX Power: %llX\r\n", dw.readRegister40(DW1000_TX_POWER, 0));
@@ -113,7 +110,7 @@
         //pc.printf("Status: %llX\r\n", dw.getStatus());
         //pc.printf("TX Control: %llX\r\n", dw.readRegister40(DW1000_TX_FCTRL, 0));
         //pc.printf("\r\n");
-        //wait(0.002);
+        wait(0.002);
         //wait(0.2);
     }
 }
\ No newline at end of file