Tobi's ubw test branch
Dependencies: mavlink_bridge mbed
Fork of AIT_UWB_Range by
Diff: DW1000/DW1000.cpp
- Revision:
- 19:e94bc88c1eb0
- Parent:
- 18:bbc7ca7d3a95
- Child:
- 20:257d56530ae1
--- a/DW1000/DW1000.cpp Mon Nov 24 16:48:03 2014 +0000 +++ b/DW1000/DW1000.cpp Tue Nov 25 14:48:51 2014 +0000 @@ -7,7 +7,7 @@ spi.format(8,0); // Setup the spi for standard 8 bit data and SPI-Mode 0 (GPIO5, GPIO6 open circuit or ground on DW1000) spi.frequency(1000000); // with a 1MHz clock rate (worked up to 49MHz in our Test) - //resetAll(); // we can do a soft reset if we want to (only needed for debugging) + resetAll(); // we can do a soft reset if we want to (only needed for debugging) loadLDE(); // important everytime DW1000 initialises/awakes otherwise the LDE algorithm must be turned of or there's receiving malfunction see User Manual LDELOAD on p22 & p158 // Configuration TODO: make method for that @@ -83,7 +83,7 @@ void DW1000::stopRX() { receiving = false; - + stopTRX(); } void DW1000::ISR() {