mirror of
https://github.com/eclipse/upm.git
synced 2025-07-04 10:51:12 +03:00
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:

committed by
Mihai Tudor Panu

parent
90524273ec
commit
f992876461
@ -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.
|
||||
|
Reference in New Issue
Block a user