Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: Node/Beacon/Beacon.cpp
- Revision:
- 0:99928431bb44
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Node/Beacon/Beacon.cpp Tue Jul 07 09:36:12 2015 +0000 @@ -0,0 +1,14 @@ +#include "Beacon.h" + +Beacon::Beacon( MM2WayRanging& newRanging, DW1000& newDw ) : Node( newRanging, newDw ) +{ + debugprintf("Beacon Initialized\r\n") ; +} + +void Beacon::execute() +{ + // Requesting ranging from node at address #1 TODO: 1 is hardcoded. + ranging.requestRanging(1) ; + // Printing received distance to serial + debugprintf("%f\r\n", ranging.distances[1]) ; +} \ No newline at end of file