Initial implementation of iAcceleration

Signed-off-by: Serban Waltter <serban.waltter@rinftech.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Serban Waltter
2018-07-26 18:06:33 +03:00
committed by Mihai Tudor Panu
parent 90524273ec
commit f992876461
48 changed files with 512 additions and 35 deletions

View File

@ -32,6 +32,8 @@
#include "bmg160.hpp"
#include "bmm150.hpp"
#include <interfaces/iAcceleration.hpp>
#define BMX055_DEFAULT_MAG_I2C_ADDR 0x12
namespace upm {
@ -76,7 +78,7 @@ namespace upm {
* @snippet bmx055.cxx Interesting
*/
class BMX055 {
class BMX055: virtual public iAcceleration {
public:
/**
* BMX055 constructor.
@ -195,6 +197,13 @@ namespace upm {
*/
std::vector<float> getAccelerometer();
/**
* get acceleration values
*
* @return stl vector of size 3 representing the 3 axis
*/
virtual std::vector<float> getAcceleration();
/**
* Return gyroscope data in degrees per second. update() must
* have been called prior to calling this method.