Eurobot2012_Primary

Dependencies:   mbed Eurobot_2012_Primary

Committer:
narshu
Date:
Thu Apr 26 21:02:12 2012 +0000
Revision:
2:cffa347bb943
not working

Who changed what in which revision?

UserRevisionLine numberNew contents of line
narshu 2:cffa347bb943 1
narshu 2:cffa347bb943 2 #ifndef IR_H
narshu 2:cffa347bb943 3 #define IR_H
narshu 2:cffa347bb943 4
narshu 2:cffa347bb943 5 #include "mbed.h"
narshu 2:cffa347bb943 6
narshu 2:cffa347bb943 7 //forward declaration of class Kalman to avoid cyclic include
narshu 2:cffa347bb943 8 class Kalman;
narshu 2:cffa347bb943 9
narshu 2:cffa347bb943 10 class IR{
narshu 2:cffa347bb943 11 public:
narshu 2:cffa347bb943 12
narshu 2:cffa347bb943 13 Serial IRserial;
narshu 2:cffa347bb943 14
narshu 2:cffa347bb943 15 bool angleInit; // = false;
narshu 2:cffa347bb943 16 float angleOffset; // = 0;
narshu 2:cffa347bb943 17
narshu 2:cffa347bb943 18 IR(Kalman &kalmanin, PinName TX, PinName RX);
narshu 2:cffa347bb943 19 void detachisr();
narshu 2:cffa347bb943 20 void attachisr();
narshu 2:cffa347bb943 21 void vIRValueISR (void);
narshu 2:cffa347bb943 22
narshu 2:cffa347bb943 23 private:
narshu 2:cffa347bb943 24 //reference to the kalman object to run the updates on
narshu 2:cffa347bb943 25 Kalman& kalman;
narshu 2:cffa347bb943 26 };
narshu 2:cffa347bb943 27
narshu 2:cffa347bb943 28 #endif //IR_H