mirror of
https://github.com/eclipse/upm.git
synced 2025-07-05 19:31:15 +03:00
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:

committed by
Mihai Tudor Panu

parent
34bb12933d
commit
aa966946d5
@ -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)
|
||||
|
@ -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]);
|
||||
|
@ -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:
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user