Tobi's ubw test branch
Dependencies: mavlink_bridge mbed
Fork of AIT_UWB_Range by
Diff: MMRanging/MMRanging.cpp
- Revision:
- 37:40f94c634c3e
- Parent:
- 36:883de6f9a73b
- Child:
- 38:8ef3b8d8b908
diff -r 883de6f9a73b -r 40f94c634c3e MMRanging/MMRanging.cpp --- a/MMRanging/MMRanging.cpp Fri Feb 20 09:07:52 2015 +0000 +++ b/MMRanging/MMRanging.cpp Fri Feb 20 13:21:06 2015 +0000 @@ -28,7 +28,7 @@ sendRangingframe(RX.source, RX.sequence_number, 4, rangingtimingsReceiver[RX.source][1] - rangingtimingsReceiver[RX.source][0]); break; case 4: - tofs = (rangingtimingsSender[RX.source][1] - rangingtimingsSender[RX.source][0] - RX.time_difference_receiver); + tofs[RX.source] = (rangingtimingsSender[RX.source][1] - rangingtimingsSender[RX.source][0] - RX.time_difference_receiver); break; default : break; }