-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInclinometerInterface.h
51 lines (45 loc) · 1.2 KB
/
InclinometerInterface.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/**
* @file InclinometerInterface.h
* @author Ryan Johnson ([email protected])
* @brief Describes the API to an Inclinometer Class
* @version 0.1
* @date 2020-05-26
*
* @copyright Copyright (c) 2020
*
*/
#ifndef PLC_INCLINOMETER_INTERFACE_H
#define PLC_INCLINOMETER_INTERFACE_H
#include <stlport.h>
#include <Eigen30.h>
#include <Eigen/Core>
#include <Eigen/Geometry>
namespace Inclinometer {
/**
* @brief Interface for reading from an inclinometer
*/
class InclinometerDataSource {
public:
/**
* @brief Initializes the inclinometer
*
* @return true if the inclinometer successfully initializes
* @return false if the inclinometer failed to initialize
*/
virtual bool begin();
/**
* @brief Checks if the inclinometer has new data available
*
* @return true if there is data available
* @return false if there is not data available
*/
virtual bool hasData();
/**
* @brief Get the 2D vector of euler angles in radians (pitch, roll)
*
* @return Eigen::Vector2d Pitch and Roll, in radians
*/
virtual Eigen::Vector2d getData();
};
} // namespace Inclinometer
#endif