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:
46:6398237672a0
Parent:
45:01a33363bc21
Child:
47:b6120c152ad1
--- a/MM2WayRanging/MM2WayRanging.h	Sun Mar 08 15:59:14 2015 +0000
+++ b/MM2WayRanging/MM2WayRanging.h	Tue Mar 10 12:11:13 2015 +0000
@@ -64,16 +64,17 @@
         PING=1,
         ANCHOR_RESPONSE,
         BEACON_RESPONSE,
-        TRANSFER_FRAME
+        TRANSFER_FRAME,
+        DISTANCES_FRAME
     };
 
-    struct RangingFrame {
+    struct __attribute__((packed, aligned(1))) RangingFrame {
         uint8_t source;
         uint8_t destination;
         uint8_t type;
     };
 
-    struct ExtendedRangingFrame : RangingFrame{
+    struct __attribute__((packed, aligned(1))) ExtendedRangingFrame : RangingFrame{
         int signedTime;
     };