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

@@ -114,6 +114,14 @@ Itg3200::getRotation()
return &m_angle[0];
}
std::vector<float> Itg3200::getGyroscope()
{
for(int i = 0; i < 3; i++){
m_angle[i] = m_rotation[i]/14.375;
}
return std::vector<float>(m_angle, m_angle + 3);
}
int16_t*
Itg3200::getRawValues()
{