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

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