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/Node.h
- Revision:
- 0:99928431bb44
diff -r 000000000000 -r 99928431bb44 Node/Node.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/Node/Node.h Tue Jul 07 09:36:12 2015 +0000
@@ -0,0 +1,38 @@
+
+#include "mbed.h"
+#include "MM2WayRanging.h"
+#include "DW1000.h"
+#include "debug.h"
+
+
+#ifndef NODE_H
+#define NODE_H
+
+
+enum NodeType { ANCHOR, BEACON, OBSERVER } ;
+
+class Node
+{
+ public:
+
+ // Constructor
+ Node( MM2WayRanging& newRanging, DW1000& newDw ) ;
+
+ // Executes the node's functionality at each timestep
+ virtual void execute() ;
+
+ // Sets the address of the node
+ void setAddress( uint8_t address ) ;
+
+ protected:
+
+ // Ranging object for ranging
+ MM2WayRanging& ranging ;
+
+ // Decawave object for direct interaction with the device
+ DW1000& dw ;
+
+} ;
+
+
+#endif