libkipr  1.0.0
accel.hpp
Go to the documentation of this file.
1 #ifndef _KIPR_ACCEL_ACCEL_HPP_
2 #define _KIPR_ACCEL_ACCEL_HPP_
3 
4 #include "kipr/sensor/sensor.hpp"
5 
6 namespace kipr
7 {
8  namespace accel
9  {
11  {
12  public:
13  static short x();
14  static short y();
15  static short z();
16  static bool calibrate();
17 
18  private:
19  };
20 
21  class AccelX : public sensor::Sensor<short>
22  {
23  public:
24  virtual short value() const;
25  };
26 
27  class AccelY : public sensor::Sensor<short>
28  {
29  public:
30  virtual short value() const;
31  };
32 
33  class AccelZ : public sensor::Sensor<short>
34  {
35  public:
36  virtual short value() const;
37  };
38  }
39 }
40 
41 #endif
Definition: accel.hpp:22
virtual short value() const
Definition: accel.hpp:28
virtual short value() const
Definition: accel.hpp:34
virtual short value() const
Definition: accel.hpp:11
Definition: sensor.hpp:23
Definition: accel.hpp:7