Oskar Weigl
/
Eurobot2013
We are going to win! wohoo
Kalman/IR/IR.h@9:08552997b544, 2012-11-14 (annotated)
- Committer:
- madcowswe
- Date:
- Wed Nov 14 17:15:53 2012 +0000
- Revision:
- 9:08552997b544
- Parent:
- 1:6799c07fe510
Added an important comment
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sv | 1:6799c07fe510 | 1 | |
sv | 1:6799c07fe510 | 2 | #ifndef IR_H |
sv | 1:6799c07fe510 | 3 | #define IR_H |
sv | 1:6799c07fe510 | 4 | |
sv | 1:6799c07fe510 | 5 | #include "mbed.h" |
sv | 1:6799c07fe510 | 6 | |
sv | 1:6799c07fe510 | 7 | //forward declaration of class Kalman to avoid cyclic include |
sv | 1:6799c07fe510 | 8 | class Kalman; |
sv | 1:6799c07fe510 | 9 | |
sv | 1:6799c07fe510 | 10 | class IR { |
sv | 1:6799c07fe510 | 11 | public: |
sv | 1:6799c07fe510 | 12 | |
sv | 1:6799c07fe510 | 13 | Serial IRserial; |
sv | 1:6799c07fe510 | 14 | |
sv | 1:6799c07fe510 | 15 | IR(Kalman &kalmanin); |
sv | 1:6799c07fe510 | 16 | void detachisr(); |
sv | 1:6799c07fe510 | 17 | void attachisr(); |
sv | 1:6799c07fe510 | 18 | void vIRValueISR (void); |
sv | 1:6799c07fe510 | 19 | |
sv | 1:6799c07fe510 | 20 | private: |
sv | 1:6799c07fe510 | 21 | //reference to the kalman object to run the updates on |
sv | 1:6799c07fe510 | 22 | Kalman& kalman; |
sv | 1:6799c07fe510 | 23 | }; |
sv | 1:6799c07fe510 | 24 | |
sv | 1:6799c07fe510 | 25 | #endif //IR_H |