- Main Page
- Classes
- Files

- File List
- File Members

# device/GyroSensor.h

    00001 //
    00002 // GyroSensor.h
    00003 //
    00004 // Copyright 2009 by Takashi Chikamasa, Jon C. Martin and Robert W. Kramer
    00005 //
    00006
    00007 #ifndef GYROSENSOR_H_
    00008 #define GYROSENSOR_H_
    00009
    00010 #include "Sensor.h"
    00011
    00012 namespace ecrobot
    00013 {
    00017 class GyroSensor: public Sensor
    00018 {
    00019 public:
    00023         static const S16 DEFAULT_OFFSET = 605;
    00024
    00034         explicit GyroSensor(ePortS port);
    00035
    00041         void setOffset(S16 offset);
    00042
    00048         S16 getAnglerVelocity(void) const;
    00049
    00050 private:
    00051         S16 mOffset;
    00052 };
    00053 }
    00054
    00055 #endif