[android-porting] About G sensor driver

2010-04-26 Thread lgbk
Hi all, I'm portting my gsensor to android.My gsendor module is lis35XX of ST corpration.But I did'nt have the driver for android.If ang body can send me the driver or give me suggestion ,I'll appreciate to you ,thanks!!! -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: ht

[android-porting] Re: About G sensor driver

2010-04-27 Thread lgbk
Thanks,I got it. On 4月27日, 下午4时46分, wang xingchao wrote: > hi , > you can get open-source lis* driver from standard linux kernel tree. > > On Apr 26, 3:23 pm, lgbk wrote: > > > Hi all, > > I'm portting my gsensor to android.My gsendor module is lis35XX of >

[android-porting] About rotate screen use G-SENSOR

2010-05-17 Thread lgbk
Hi all, I'm debuging my gsensor in my devices.And now in my sensor HAL layer code ,I return two types data.(ID_ACCELERATION and ID_ORIENTATION).I'm confused how covert x,y,z data to pitch,roll.In my code I use pitch = atan(sensors.acceleration.y/ sensors.acceleration.z)*360/

[android-porting] Re: About rotate screen use G-SENSOR

2010-05-17 Thread lgbk
suggestion,thanks!!! On May 17, 3:42 pm, lgbk wrote: > Hi all, >   I'm debuging my gsensor in my devices.And now in my sensor HAL layer > code ,I return two types data.(ID_ACCELERATION and ID_ORIENTATION).I'm > confused how covert x,y,z data to pitch,roll.In my code I use >

[android-porting] About magnetic filed report unit in android

2010-10-27 Thread lgbk
Hi all, Is there anybody know the the magnetic unit in android?Which unit the android use?In sensor.h I know it seems MT (micro telsa),but when I report the mt to android ,compass app display the data is wrong.From my compass driver in linux ,it report the data of Micro Gauss unit. like (x=466MT,