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
{
10
class
Acceleration
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
kipr::accel::AccelX
Definition:
accel.hpp:22
kipr::accel::AccelX::value
virtual short value() const
kipr::accel::AccelY
Definition:
accel.hpp:28
kipr::accel::AccelY::value
virtual short value() const
kipr::accel::AccelZ
Definition:
accel.hpp:34
kipr::accel::AccelZ::value
virtual short value() const
kipr::accel::Acceleration
Definition:
accel.hpp:11
kipr::accel::Acceleration::calibrate
static bool calibrate()
kipr::accel::Acceleration::y
static short y()
kipr::accel::Acceleration::z
static short z()
kipr::accel::Acceleration::x
static short x()
kipr::sensor::Sensor
Definition:
sensor.hpp:23
kipr
Definition:
accel.hpp:7
sensor.hpp
module
accel
public
kipr
accel
accel.hpp
Generated by
1.9.1