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/Observer/Observer.h
- Revision:
- 0:99928431bb44
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Node/Observer/Observer.h Tue Jul 07 09:36:12 2015 +0000 @@ -0,0 +1,39 @@ + + + +#ifndef OBSERVER_H +#define OBSERVER_H + +#include "Node.h" +#include "DistanceFrame.h" +#include "debug.h" +#include "BufferedOutput.h" +#include "MavlinkPassthrough.h" + +#define HEADERCODE 253 + +class Observer : public Node +{ + public: + + // Constructor + Observer( MM2WayRanging& newRanging, DW1000& newDw, Serial& output, Serial& mavlinkIn ) ; + + // Executes the observers's functionality at each timestep + virtual void execute() ; + + // The callback which implements the observer functionality + void observerCallbackRX() ; + void observerCallbackTX() ; + + private: + + // Buffered output for sending data frames + BufferedOutput bufferedOutput ; + + // Mavlink passthrough object + MavlinkPassthrough mavlinkPassthrough ; + +} ; + +#endif \ No newline at end of file