PDA

View Full Version : Accelerometer to detect Walking or Driving


kholy
11th December 2008, 02:57 PM
Ok, so i have a tracking program i made for my phone in C#, basically it uses my GPS gets coords stores in db then uploads then to a server which tracks me on gmaps.... now we have little icons for a car or a person walking... but no way to tell the difference, so my idea was to use the Accelerometer to tell if i was walking or driving, but i have no idea where to begin or if this is even possible? ideas?

joel2009
11th December 2008, 04:01 PM
I don't know about the accelerometer but you may just want to put a speed cap on the "icons"

ex if your tracked speed is less than 10 miles an hour your icon would be a person, if higher than 10 your icon would be a car (maybe specify a time so that every time you stop at a light your icon continues as a car)