mirror of
https://github.com/eclipse/upm.git
synced 2025-03-15 04:57:30 +03:00
kx122: Added missing function implementation
Signed-off-by: Samuli Rissanen samuli.rissanen@hotmail.com
This commit is contained in:
parent
d8b5d01bf2
commit
71b1663341
@ -56,6 +56,12 @@ float KX122::getSamplePeriod()
|
|||||||
return kx122_get_sample_period(m_kx122);
|
return kx122_get_sample_period(m_kx122);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void KX122::getWhoAmI(uint8_t *data)
|
||||||
|
{
|
||||||
|
if(kx122_get_who_am_i(m_kx122,data)){
|
||||||
|
throw std::runtime_error(std::string(__FUNCTION__) + "kx122_get_who_am_i failed");
|
||||||
|
}
|
||||||
|
}
|
||||||
void KX122::getRawAccelerationData(float *x, float *y, float *z)
|
void KX122::getRawAccelerationData(float *x, float *y, float *z)
|
||||||
{
|
{
|
||||||
if(kx122_get_acceleration_data_raw(m_kx122,x,y,z)){
|
if(kx122_get_acceleration_data_raw(m_kx122,x,y,z)){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user