Tobi's ubw test branch

Dependencies:   mavlink_bridge mbed

Fork of AIT_UWB_Range by Benjamin Hepp

Revision:
52:94688f414dcd
Parent:
51:e9391d04af00
Child:
53:79a72d752ec4
diff -r e9391d04af00 -r 94688f414dcd MM2WayRanging/MM2WayRanging.cpp
--- a/MM2WayRanging/MM2WayRanging.cpp	Thu Nov 26 22:24:17 2015 +0000
+++ b/MM2WayRanging/MM2WayRanging.cpp	Fri Nov 27 16:17:53 2015 +0000
@@ -141,6 +141,11 @@
  *   @param remote_address The address of the anchor
  */
 void MM2WayRanging::requestRanging(uint8_t remote_address) {
+    if (remote_address == address) {
+        distances[remote_address] = -2;
+        return;
+    }
+
 //    pc.printf("Request range %d\r\n", remote_address);
     dw.enable_irq();
     dw.startRX();