Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Simple Accelerometer Test

Author
Message
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 22nd Oct 2011 02:18 Edited at: 24th Oct 2011 16:09
I found myself playing around trying to work out the values of my Accelerometer, so I made this simple app. It will display the X / Y direction values and visually relay it as a bubble in the middle of the screen.

I'd be interested to know what people get as a max value. Tipping my phone gets 1.0. Shaking it takes it to 1.5 and beyond

Attachments

Login to view attachments
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 22nd Oct 2011 02:19 Edited at: 22nd Oct 2011 02:20
Screenshot



Attachments

Login to view attachments
Hodgey
15
Years of Service
User Offline
Joined: 10th Oct 2009
Location: Australia
Posted: 22nd Oct 2011 12:07
Neat app BatVink! I can't test it on my mobile devices because I haven't got myself a Mac yet but this will be a very handy app when I can test on my mobile devices. Just using arrowkeys I get -1.0 to 1.0.

BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 24th Oct 2011 16:12 Edited at: 24th Oct 2011 16:12
Minor update, adds Angle and Speed.

Angle on my Android is 0 degrees when tilting the phone forwards, 180 degrees backwards, and working in a clockwise direction.

Speed appears to be the vector of horizontal and vertical direction, always positive.



Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-22 10:52:36
Your offset time is: 2024-11-22 10:52:36