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.
Diff: MM2WayRanging/MM2WayRanging.h
- Revision:
- 47:b6120c152ad1
- Parent:
- 46:6398237672a0
--- a/MM2WayRanging/MM2WayRanging.h Tue Mar 10 12:11:13 2015 +0000 +++ b/MM2WayRanging/MM2WayRanging.h Thu Mar 19 12:54:28 2015 +0000 @@ -68,6 +68,8 @@ DISTANCES_FRAME }; + //the packed attribute makes sure the types only use their respective size in memory (8 bit for uint8_t), otherwise they would always use 32 bit + //IT IS A GCC SPECIFIC DIRECTIVE struct __attribute__((packed, aligned(1))) RangingFrame { uint8_t source; uint8_t destination;