- Main Page
- Classes
- Files

- File List
- File Members

# device/IrSeeker.h

    00001 //
    00002 // IrSeeker.h
    00003 //
    00004 // Copyright 2009 by Takashi Chikamasa, Jon C. Martin and Robert W. Kramer
    00005 //
    00006
    00007 #ifndef IRSEEKER_H_
    00008 #define IRSEEKER_H_
    00009
    00010 #include "I2c.h"
    00011
    00012 namespace ecrobot
    00013 {
    00052 class IrSeeker
    00053 {
    00054 public:
    00064         explicit IrSeeker(ePortS port);
    00065
    00071         S16 getDirection(void) const;
    00072
    00085         inline void get(U8 data[6]) const { mI2c.receive(0x42, data, 6); }
    00086
    00087 private:
    00088         I2c mI2c; // composite
    00089 };
    00090 }
    00091
    00092 #endif