Oskar Weigl
/
Eurobot2013
We are going to win! wohoo
Diff: Kalman/IR/IR.h
- Revision:
- 1:6799c07fe510
diff -r 92019d8564a7 -r 6799c07fe510 Kalman/IR/IR.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Kalman/IR/IR.h Wed Nov 07 14:37:35 2012 +0000 @@ -0,0 +1,25 @@ + +#ifndef IR_H +#define IR_H + +#include "mbed.h" + +//forward declaration of class Kalman to avoid cyclic include +class Kalman; + +class IR { +public: + + Serial IRserial; + + IR(Kalman &kalmanin); + void detachisr(); + void attachisr(); + void vIRValueISR (void); + +private: +//reference to the kalman object to run the updates on + Kalman& kalman; +}; + +#endif //IR_H \ No newline at end of file