Alex Millane / Mbed 2 deprecated IFARanging

Dependencies:   mbed

Committer:
millanea
Date:
Tue Jul 07 09:36:12 2015 +0000
Revision:
0:99928431bb44
First commit. Committing the entire project such that it can be published.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
millanea 0:99928431bb44 1
millanea 0:99928431bb44 2
millanea 0:99928431bb44 3
millanea 0:99928431bb44 4 #ifndef OBSERVER_H
millanea 0:99928431bb44 5 #define OBSERVER_H
millanea 0:99928431bb44 6
millanea 0:99928431bb44 7 #include "Node.h"
millanea 0:99928431bb44 8 #include "DistanceFrame.h"
millanea 0:99928431bb44 9 #include "debug.h"
millanea 0:99928431bb44 10 #include "BufferedOutput.h"
millanea 0:99928431bb44 11 #include "MavlinkPassthrough.h"
millanea 0:99928431bb44 12
millanea 0:99928431bb44 13 #define HEADERCODE 253
millanea 0:99928431bb44 14
millanea 0:99928431bb44 15 class Observer : public Node
millanea 0:99928431bb44 16 {
millanea 0:99928431bb44 17 public:
millanea 0:99928431bb44 18
millanea 0:99928431bb44 19 // Constructor
millanea 0:99928431bb44 20 Observer( MM2WayRanging& newRanging, DW1000& newDw, Serial& output, Serial& mavlinkIn ) ;
millanea 0:99928431bb44 21
millanea 0:99928431bb44 22 // Executes the observers's functionality at each timestep
millanea 0:99928431bb44 23 virtual void execute() ;
millanea 0:99928431bb44 24
millanea 0:99928431bb44 25 // The callback which implements the observer functionality
millanea 0:99928431bb44 26 void observerCallbackRX() ;
millanea 0:99928431bb44 27 void observerCallbackTX() ;
millanea 0:99928431bb44 28
millanea 0:99928431bb44 29 private:
millanea 0:99928431bb44 30
millanea 0:99928431bb44 31 // Buffered output for sending data frames
millanea 0:99928431bb44 32 BufferedOutput bufferedOutput ;
millanea 0:99928431bb44 33
millanea 0:99928431bb44 34 // Mavlink passthrough object
millanea 0:99928431bb44 35 MavlinkPassthrough mavlinkPassthrough ;
millanea 0:99928431bb44 36
millanea 0:99928431bb44 37 } ;
millanea 0:99928431bb44 38
millanea 0:99928431bb44 39 #endif