Eurobot2012_Primary

Dependencies:   mbed Eurobot_2012_Primary

Committer:
narshu
Date:
Fri May 04 05:23:45 2012 +0000
Revision:
24:7a3906c2f5d5
Parent:
9:377560539b74
1st working version with accurate target acquisition.

Who changed what in which revision?

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