Eurobot2012_Primary
Dependencies: mbed Eurobot_2012_Primary
Diff: Kalman/IR/IR.h
- Revision:
- 3:429829612cf9
- Parent:
- 2:cffa347bb943
- Child:
- 4:7b7334441da9
--- a/Kalman/IR/IR.h Thu Apr 26 21:02:12 2012 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,28 +0,0 @@ - -#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; - -bool angleInit; // = false; -float angleOffset; // = 0; - -IR(Kalman &kalmanin, PinName TX, PinName RX); -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