Eurobot2012_Primary

Dependencies:   mbed Eurobot_2012_Primary

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers IR.h Source File

IR.h

00001 
00002 #ifndef IR_H
00003 #define IR_H
00004 
00005 #include "mbed.h"
00006 
00007 //forward declaration of class Kalman to avoid cyclic include
00008 class Kalman;
00009 
00010 class IR {
00011 public:
00012 
00013     Serial IRserial;
00014 
00015     IR(Kalman &kalmanin);
00016     void detachisr();
00017     void attachisr();
00018     void vIRValueISR (void);
00019 
00020 private:
00021 //reference to the kalman object to run the updates on
00022     Kalman& kalman;
00023 };
00024 
00025 #endif //IR_H