How to enable gyro !

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to enable gyro !

1,693 Views
liyu1
Contributor III

Hi all:

      My platform : imx6q  os: android 4.2.2

     How to enable gyroscope ? my gyro modules is freescale fxas21000 . But I don't know how to enable it !

       Thanks

Labels (3)
0 Kudos
9 Replies

957 Views
igorpadykov
NXP Employee
NXP Employee

Hi li

suggest to look at

Sensor Drivers for Android, Linux and OS|Freescale

https://community.freescale.com/docs/DOC-100869

Best regards

igor

-----------------------------------------------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct Answer button. Thank you!

-----------------------------------------------------------------------------------------------------------------------

0 Kudos

957 Views
liyu1
Contributor III

And on My deivces there are mag3110 ,mma845x , how to enable gyro in HAL layer ?

0 Kudos

957 Views
igorpadykov
NXP Employee
NXP Employee

Hi li

please check attached document

Best regards

igor

0 Kudos

957 Views
liyu1
Contributor III

But in it ,there is message about gyrocope in android HAL layer ! Do you have the files like Gyrocope.cpp ?

0 Kudos

957 Views
liyu1
Contributor III

and how to modify the code sensors.cpp SensorBase.cpp

0 Kudos

957 Views
liyu1
Contributor III

mma845x  , mag3110  and gyroscope

0 Kudos

957 Views
liyu1
Contributor III

I have ported the Gyroscope.cpp,But the data is not ok .When I enable gyroscope , mag app is not ok !

  But When I disable gyroscope, mag app is ok !

    I want to know the relationship between the three ?

0 Kudos

957 Views
liyu1
Contributor III

I have the driver ,But I have not the HAL layer code ..please help me !

0 Kudos