Eurobot2012_Primary

Dependencies:   mbed Eurobot_2012_Primary

Kalman/IR/IR.h

Committer:
narshu
Date:
2012-04-26
Revision:
5:7ac07bf30707
Parent:
4:7b7334441da9

File content as of revision 5:7ac07bf30707:


#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;

    bool angleInit; // = false;
    float angleOffset; // = 0;

    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