Welcome!

Welcome to the Official BlackBerry Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Native Development

Reply
Regular Contributor
_NishantShah
Posts: 75
Registered: ‎07-31-2012
My Carrier: Vodafone
Accepted Solution

Accelerometer reading are not updated smoothly when you move your device left to right or right to left in the Horizontal Plane

[ Edited ]

I am developing an application for BB 10 devices using Accelerometer. I am testing it on a BB 10 Dev Alpha device.


When I move the device in LANSCAPE MODE in left to right or right to left direction in the Horizontal Plane, the accelerometer readings are not updated smoothly as they do in other directions .

Also, the update in the Vertical plane is not as per the expectations, it is not par with Android, Iphone or other blackberry devices.

I even checked BlackBerry Example project of Accelerometer. It has the same issue. Has anybody else face the same issue ? Is there any solution for this ?

Please use plain text.
Contributor
amitg95
Posts: 23
Registered: ‎04-22-2010
My Carrier: Airtel

Re: Accelerometer reading are not updated smoothly when you move your device left to right or right to left in the Horizontal Plane

I also noticed the same, the acclerometer reading are not getting updated frequently and smoothly on the BB 10 dev alpha device, I have OS 10.0.6 on the device.

 

Does any body have a soluton to the problem.

 

Also i noticed that direction sensor too is not working properly. It only gets updated in the portrait mode.

 

Any Help would be great.

 

Thanks in Advance.

Please use plain text.
Developer
borceg
Posts: 670
Registered: ‎03-21-2012
My Carrier: Vip

Re: Accelerometer reading are not updated smoothly when you move your device left to right or right to left in the Horizontal Plane

Please use plain text.
Developer
jtegen
Posts: 6,233
Registered: ‎10-27-2010
My Carrier: AT&T

Re: Accelerometer reading are not updated smoothly when you move your device left to right or right to left in the Horizontal Plane

Are you talking about the APR sensor? A saw that too being only correct in portrait mode. I notice that if you flip the device (down is up), you get a different reading that does not appear 180 degrees. When in landscape mode, it seems to be orthogonally off, but I could not find rhyme or reason to it. The APR sensor should take into account the orientation of the device. Should this be reported as a bug or is it well known by RIM?
Please use plain text.
Regular Contributor
_NishantShah
Posts: 75
Registered: ‎07-31-2012
My Carrier: Vodafone

Re: Accelerometer reading are not updated smoothly when you move your device left to right or right to left in the Horizontal Plane

[ Edited ]

Well, there is that issues with APR but here I am talking about accelerometer readings. & Yeah actually I was confused about whether RIM has knowingly made it that way or its a bug.

Anyways did you notice any issue in accelerometer while moving it left to right or right to left in Horizontal plane in LANDSCAPE MODE? I found them infrequent & less smooth. 

Please use plain text.
BlackBerry Development Advisor
mgoulet
Posts: 329
Registered: ‎05-07-2012
My Carrier: N/A

Re: Accelerometer reading are not updated smoothly when you move your device left to right or right to left in the Horizontal Plane

Hi there,

 

This definitely seems like a bug - I would recommend logging an issue for this here:

https://www.blackberry.com/jira/secure/Dashboard.jspa

 

Thanks,

 

Martin

Please use plain text.
Super Contributor
Meghasanghvi
Posts: 301
Registered: ‎08-10-2010

Re: Accelerometer reading are not updated smoothly when you move your device left to right or right to left in the Horizontal Plane

Accelerometer reading are not updated because example provided on github in that Accelerometer rate is set to very high. code:ACCELEROMETER_RATE = 25000 which is very high. As per their document 

This is the rate at which the accelerometer data will be updated from hardware. The hardware update rate
 is set below using sensor_set_rate. If we set this to 1000 then it update correctly and give readings as we get on BB java device.

Replace code: ACCELEROMETER_RATE = 1000  then it update corretly.

Please use plain text.