OSDN Git Service

iio-sensors: support conversion matrix acceleration
authorMario Holzinger <sandman01xda@gmail.com>
Fri, 25 Mar 2016 13:09:21 +0000 (14:09 +0100)
committerChih-Wei Huang <cwhuang@linux.org.tw>
Mon, 28 Mar 2016 16:50:25 +0000 (00:50 +0800)
commit43c3ffdddb753f8d572a33278080e0f2c3349d1d
tree651b6ae131eee3df60b92292ee3d8a616909dea7
parent7107b207f1493401d383a8e3122b4026da647c72
iio-sensors: support conversion matrix acceleration

With the prop hal.sensors.iio.accel.matrix=f1x,f1y,f1z,f2x,f2y,f2z,f3x,f3y,f3z
it is possible to manipulate accel sensors directions and assignment to the
corresponding axes. The default is
hal.sensors.iio.accel.matrix=-1,0,0,0,1,0,0,0,-1
iio-sensors.cpp