Eurobot2012_Primary
Dependencies: mbed Eurobot_2012_Primary
Eurobot_shared/Kalman/IR/IR.h@26:0995f61cb7b8, 2012-10-17 (annotated)
- Committer:
- narshu
- Date:
- Wed Oct 17 22:22:47 2012 +0000
- Revision:
- 26:0995f61cb7b8
- Parent:
- 9:377560539b74
Eurobot 2012 Primary;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
narshu | 9:377560539b74 | 1 | |
narshu | 9:377560539b74 | 2 | #ifndef IR_H |
narshu | 9:377560539b74 | 3 | #define IR_H |
narshu | 9:377560539b74 | 4 | |
narshu | 9:377560539b74 | 5 | #include "mbed.h" |
narshu | 9:377560539b74 | 6 | |
narshu | 9:377560539b74 | 7 | //forward declaration of class Kalman to avoid cyclic include |
narshu | 9:377560539b74 | 8 | class Kalman; |
narshu | 9:377560539b74 | 9 | |
narshu | 9:377560539b74 | 10 | class IR { |
narshu | 9:377560539b74 | 11 | public: |
narshu | 9:377560539b74 | 12 | |
narshu | 9:377560539b74 | 13 | Serial IRserial; |
narshu | 9:377560539b74 | 14 | |
narshu | 9:377560539b74 | 15 | IR(Kalman &kalmanin); |
narshu | 9:377560539b74 | 16 | void detachisr(); |
narshu | 9:377560539b74 | 17 | void attachisr(); |
narshu | 9:377560539b74 | 18 | void vIRValueISR (void); |
narshu | 9:377560539b74 | 19 | |
narshu | 9:377560539b74 | 20 | private: |
narshu | 9:377560539b74 | 21 | //reference to the kalman object to run the updates on |
narshu | 9:377560539b74 | 22 | Kalman& kalman; |
narshu | 9:377560539b74 | 23 | }; |
narshu | 9:377560539b74 | 24 | |
narshu | 9:377560539b74 | 25 | #endif //IR_H |