Added iMagnetometer 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 16:49:48 +03:00
committed by Mihai Tudor Panu
parent aa966946d5
commit f28a6d2561
36 changed files with 173 additions and 39 deletions

View File

@@ -237,3 +237,11 @@ void AK8975::getMagnetometer(float *x, float *y, float *z)
*z = adjustValue(m_zData, m_zCoeff);
}
std::vector<float> AK8975::getMagnetometer()
{
std::vector<float> v(3);
v[0] = adjustValue(m_xData, m_xCoeff);
v[0] = adjustValue(m_yData, m_yCoeff);
v[0] = adjustValue(m_zData, m_zCoeff);
return v;
}