IR/IR.h

Committer:
narshu
Date:
2012-04-26
Revision:
0:e238496b8073
Child:
2:8aa491f77a0b

File content as of revision 0:e238496b8073:


#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