IR/IR.h
- Committer:
- narshu
- Date:
- 2012-04-26
- Revision:
- 2:8aa491f77a0b
- Parent:
- 0:e238496b8073
File content as of revision 2:8aa491f77a0b:
#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