Eurobot2012_Primary

Dependencies:   mbed Eurobot_2012_Primary

Revision:
26:0995f61cb7b8
Parent:
9:377560539b74
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Eurobot_shared/Kalman/IR/IR.h	Wed Oct 17 22:22:47 2012 +0000
@@ -0,0 +1,25 @@
+
+#ifndef IR_H
+#define IR_H
+
+#include "mbed.h"
+
+//forward declaration of class Kalman to avoid cyclic include
+class Kalman;
+
+class IR {
+public:
+
+    Serial IRserial;
+
+    IR(Kalman &kalmanin);
+    void detachisr();
+    void attachisr();
+    void vIRValueISR (void);
+
+private:
+//reference to the kalman object to run the updates on
+    Kalman& kalman;
+};
+
+#endif //IR_H
\ No newline at end of file