Hi, Is this will depend on what raw data the sensor report? My sensor report data in mg unit, I thought I need to convert it to m/ s^2 unit in HAL layer. Isn't it?
On Mar 4, 5:39 pm, WoW <jykl1...@gmail.com> 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分, "mkche...@gmail.com" <mkche...@gmail.com> 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: android-porting+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-porting