working version with calibration done

Fork of Eurobot2013 by Oskar Weigl

Committer:
sv
Date:
Wed Nov 07 14:37:35 2012 +0000
Revision:
1:6799c07fe510
Preliminary copy of 2012 code

Who changed what in which revision?

UserRevisionLine numberNew 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