Should be the same but i did not check if Android will take care the input value for light sensor and proximity.
The sample HAL implementation can be found here. http://android.git.kernel.org/ On 3月4日, 下午4時47分, chetan kumar <[email protected]> wrote: > Thank you.. > One more thing is same is applicable to compass/light sensor/proximity > sensor or any conversion is required ? > > > > On Thu, Mar 4, 2010 at 2:09 PM, WoW <[email protected]> wrote: > > From my experience, i only report raw data. SensorManager will use the > > data you report to calculate the angle and do the rotation. You need > > to implement HAL in \Hardware. So, JNI can get values from your driver > > and report to AP. > > > On 3月1日, 下午12時59分, "[email protected]" <[email protected]> wrote: > > > Hi, > > > > I am writing Sensor HAL for BMA150(3-axis accelerometer) on eclair. > > > when i refer to sensors.h below has been give. > > > Acceleration > > > ------------------- > > > All values are in SI units(m/s^2) and measure the acceleration > > > of the device minus the force of gravity. > > > X:Acceleration minus GX on the X-axis > > > Y:Acceleration minus GX on the Y-axis > > > Z:Acceleration minus GX on the Z-axis > > > > I am getting raw values X,Y,Z values(from accelerometer Driver) Any > > > help on this how to convert raw values for above ?? > > > > Rgds > > > Chetan > > > -- > > unsubscribe: > > [email protected]<android-porting%[email protected]> > > website:http://groups.google.com/group/android-porting- 隱藏被引用文字 - > > - 顯示被引用文字 - -- unsubscribe: [email protected] website: http://groups.google.com/group/android-porting
