diff options
author | Olivier Gayot <og@satcom1.com> | 2016-04-09 10:28:03 +0200 |
---|---|---|
committer | Olivier Gayot <og@satcom1.com> | 2016-04-09 10:28:03 +0200 |
commit | e55eca19ef0e0c03832e8195ec3a11ff4e3903ce (patch) | |
tree | 98195abd377f02d4cf5208c0cd2d501147367da7 /Belt.h |
initial commit - read the raw values and send them
Signed-off-by: Olivier Gayot <og@satcom1.com>
Diffstat (limited to 'Belt.h')
-rw-r--r-- | Belt.h | 39 |
1 files changed, 39 insertions, 0 deletions
@@ -0,0 +1,39 @@ +#ifndef _BELT_H +#define _BELT_H + +class Belt { +public: + Belt(); + + void read_pressure_top(); + void read_pressure_bottom(); + void read_flexion(); + void read_angle_x(); + void read_angle_y(); + void read_angle_z(); + + int get_pressure_top() const { return _pressure_top; }; + int get_pressure_bottom() const { return _pressure_bottom; }; + int get_flexion() const { return _flexion; }; + int get_angle_x() const { return _angle_x; }; + int get_angle_y() const { return _angle_y; }; + int get_angle_z() const { return _angle_z; }; + +protected: + int _pressure_bottom; + int _pressure_top; + int _flexion; + int _angle_x; + int _angle_y; + int _angle_z; + +private: + int _pin_pressure_top; + int _pin_pressure_bottom; + int _pin_flexion; + int _pin_gyro_x; + int _pin_gyro_y; + int _pin_gyro_z; +}; + +#endif /* ! _BELT_H */ |