BNO055 9DOF: Add string based cons for Fusion Hub

Signed-off-by: Adelin Dobre <adelin.dobre@rinftech.com>
Signed-off-by: Mihai Tudor Panu <mihai.tudor.panu@intel.com>
This commit is contained in:
Adelin Dobre
2018-08-01 17:37:23 +03:00
committed by Mihai Tudor Panu
parent 03bc2ae26e
commit 90167f6ac1
4 changed files with 150 additions and 12 deletions

View File

@@ -27,6 +27,8 @@
#include <vector>
#include "bno055.h"
#include "mraa/initio.hpp"
#include <interfaces/iAcceleration.hpp>
#include <interfaces/iGyroscope.hpp>
@@ -126,6 +128,13 @@ namespace upm {
BNO055(int bus=BNO055_DEFAULT_I2C_BUS,
uint8_t addr=BNO055_DEFAULT_ADDR);
/**
* Instantiates BNO055 9DOF Fusion Hub based on a given string.
*
* @param initStr string containing specific information for BNO055 initialization.
*/
BNO055(std::string initStr);
/**
* BNO055 Destructor.
*/
@@ -655,6 +664,7 @@ namespace upm {
protected:
bno055_context m_bno055;
mraa::MraaIo mraaIo;
/**
* Set the current internal device register page. This is a low