Some guys told me the sensor raw data is enough.So if it is right ,I think the raw data I have covert and report successfull.So maybe I forget some config in system.I also heared that I need config something in init,rc but I didn,t know what need I add.Can anybody told me or give me some suggestion,thanks!!!
On May 17, 3:42 pm, lgbk <brown.hu...@gmail.com> 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 > pitch = atan(sensors.acceleration.y/ > sensors.acceleration.z)*360/M_PI; > roll = atan(sensors.acceleration.x/ > sensors.acceleration.z)*180/M_PI; > sensors.orientation.azimuth = 0.0; > But it seems have some error.Now I can notrotatemyscreen > automaitic,but can play some g-sensor game,like(labyrinthfull.apk).So > my question is that ,if I want torotatescreenautomatic,which data > the system need to use?x,y,z? or pitch roll azimuth? or antoher data? > Can somebody show me some example,thanks.Any suggestion is appracite. > > -- > unsubscribe: android-porting+unsubscr...@googlegroups.com > website:http://groups.google.com/group/android-porting -- unsubscribe: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting