Added iGyroscope interface

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-10-02 14:06:17 +03:00
committed by Mihai Tudor Panu
parent 34bb12933d
commit aa966946d5
39 changed files with 222 additions and 47 deletions

View File

@ -5,6 +5,6 @@ upm_mixed_module_init (NAME lsm6ds3h
CPP_HDR lsm6ds3h.hpp
CPP_SRC lsm6ds3h.cxx
FTI_SRC lsm6ds3h_fti.c
IFACE_HDR iAcceleration.hpp
IFACE_HDR iAcceleration.hpp iGyroscope.hpp
CPP_WRAPS_C
REQUIRES mraa utilities-c)

View File

@ -124,6 +124,7 @@ void LSM6DS3H::getGyroscope(float *x, float *y, float *z)
std::vector<float> LSM6DS3H::getGyroscope()
{
update();
float v[3];
getGyroscope(&v[0], &v[1], &v[2]);

View File

@ -32,6 +32,7 @@
#include "lsm6ds3h.h"
#include <interfaces/iAcceleration.hpp>
#include <interfaces/iGyroscope.hpp>
namespace upm {
@ -66,7 +67,7 @@ namespace upm {
* @snippet lsm6ds3h.cxx Interesting
*/
class LSM6DS3H: virtual public iAcceleration {
class LSM6DS3H: virtual public iAcceleration, virtual public iGyroscope {
public:
/**