GLBasic forum

Main forum => GLBasic - en => Topic started by: MrTAToad on 2012-Mar-23

Title: Android Accelerator
Post by: MrTAToad on 2012-Mar-23
Is the Android acccelerator working ?  Just wonder if it's beem implemented as it seems to be returning 0...
Title: Re: Android Accelerator
Post by: ampos on 2012-Mar-23
It is working for me...
Title: Re: Android Accelerator
Post by: spacefractal on 2012-Mar-23
yes its working here on those devices I got tested on. Its mightbeen a manifest issue me guess? What device do you tested on?
Title: Re: Android Accelerator
Post by: MrTAToad on 2012-Mar-24
I'm testing it on my Samsung Galaxy Mini - could you try this unsigned APK file : http://www.un-map.com/glbasic-release-unsigned.apk (13.6Mb)

According to SystemInfo, the device has gravity, linear and rotation vector sensors so it should work.

Got it working - the movement values were too low...
Title: Re: Android Accelerator
Post by: coder14 on 2012-Mar-24
Quote from: MrTAToad on 2012-Mar-24
I'm testing it on my Samsung Galaxy Mini - could you try this unsigned APK file : http://www.un-map.com/glbasic-release-unsigned.apk (13.6Mb)

According to SystemInfo, the device has gravity, linear and rotation vector sensors so it should work.

Got it working - the movement values were too low...

I have an Android phone and I would love to give you a hand (if I can?). What do you need?
Title: Re: Android Accelerator
Post by: MrTAToad on 2012-Mar-24
Do you have one of the latest duel-core phones ?  If so, I have some 3D stuff that needs testing to see how well it performs...
Title: Re: Android Accelerator
Post by: sf-in-sf on 2012-Jun-13
Quote from: ampos on 2012-Mar-23
It is working for me...

I feel very happy for you!
Could you mention which device you use, and to which value the accelerators are calibrated to? I use an archos 101G9 and strangely all accelerators return a calibration value of 0.917 -or so- instead of the expected 9.81, when GLbasic reads the value.
is it a non-standard device?
will GLbasic find the same value on all device?
What's going on?
is there any option to read other sensors like gyroscope, in GLbasic?

Thank's for your help, I'm about to release a game that must run correctly on all devices.
Title: Re: Android Accelerator
Post by: MrTAToad on 2012-Jun-13
I doubt you will get the same values on all devices - and one thing you need to account for is a dead zone (otherwise you'll get a constant unwanted value even when the device is still).
Title: Re: Android Accelerator
Post by: Kitty Hello on 2012-Jun-14
It should return factors of "G". So for average earth gravity, it should return 1.0.

If it doesn't, the drivers offer incorrect data (or you're very high about the sea level ;) )