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:
Serban Waltter
2018-07-26 18:06:33 +03:00
committed by Mihai Tudor Panu
parent 90524273ec
commit f992876461
48 changed files with 512 additions and 35 deletions

View File

@@ -84,6 +84,14 @@ float *BMI160::getAccelerometer()
return values;
}
std::vector<float> BMI160::getAcceleration()
{
std::vector<float> v(3);
bmi160_get_accelerometer(m_bmi160, &v[0], &v[1], &v[2]);
return v;
}
float *BMI160::getGyroscope()
{
static float values[3]; // x, y, and then z