mirror of
https://github.com/eclipse/upm.git
synced 2025-07-02 01:41:12 +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
@ -4,7 +4,7 @@ upm_mixed_module_init (NAME lsm6dsl
|
||||
C_SRC lsm6dsl.c
|
||||
CPP_HDR lsm6dsl.hpp
|
||||
CPP_SRC lsm6dsl.cxx
|
||||
IFACE_HDR iAcceleration.hpp
|
||||
IFACE_HDR iAcceleration.hpp iGyroscope.hpp
|
||||
FTI_SRC lsm6dsl_fti.c
|
||||
CPP_WRAPS_C
|
||||
REQUIRES mraa utilities-c)
|
||||
|
@ -125,6 +125,7 @@ void LSM6DSL::getGyroscope(float *x, float *y, float *z)
|
||||
|
||||
std::vector<float> LSM6DSL::getGyroscope()
|
||||
{
|
||||
update();
|
||||
float v[3];
|
||||
|
||||
getGyroscope(&v[0], &v[1], &v[2]);
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include "lsm6dsl.h"
|
||||
|
||||
#include <interfaces/iAcceleration.hpp>
|
||||
#include <interfaces/iGyroscope.hpp>
|
||||
|
||||
namespace upm {
|
||||
|
||||
@ -65,7 +66,7 @@ namespace upm {
|
||||
* @snippet lsm6dsl.cxx Interesting
|
||||
*/
|
||||
|
||||
class LSM6DSL: virtual public iAcceleration {
|
||||
class LSM6DSL: virtual public iAcceleration, virtual public iGyroscope {
|
||||
public:
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user