[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-02-10 Thread Scott
Glad this thread is still alive and silly. Seriously, take a look at the LocationManager class in the docs. There are constants for specifying GPS_PROVIDER, NETWORK_PROVIDER, or PASSIVE_PROVIDER. The accuracy will depending on the provider but the same code for determining position (and speed)

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-02-09 Thread metal mikey
So, summarising: just hold the phone near the window. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-02-09 Thread DanH
Tie it to a string and throw it out the window. Then measure how rapidly the string deploys. On Feb 9, 9:38 pm, metal mikey coref...@gmail.com wrote: So, summarising: just hold the phone near the window. -- You received this message because you are subscribed to the Google Groups Android

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-19 Thread Scott
At first, yes. The hardware requirement may be overkill but it depends on the situation. There are Bluetooth enabled hardware and apps for monitoring engine performance in cars. I started flying single-engine airplanes and after some searching I found the Bluetooth enabled pitot- static system,

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-18 Thread Scott
A Bluetooth enabled pitot-static sensor would work if the difference between ground speed and air speed is insignificant. :-) http://bags.oxaero.com/PCA_eGyro.php On Jan 12, 7:52 pm, metal mikey coref...@gmail.com wrote: You could use the phone's camera to take video of the car's speedometer

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-18 Thread DanH
Now you're just being silly. On Jan 15, 7:30 am, Scott scott.sei...@gmail.com wrote: A Bluetooth enabled pitot-static sensor would work if the difference between ground speed and air speed is insignificant.  :-) http://bags.oxaero.com/PCA_eGyro.php On Jan 12, 7:52 pm, metal mikey

Re: [android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-17 Thread Kostya Vasilyev
2011/1/17 ko5tik kpriblo...@yahoo.com INS also requires gyroscopes. But quality of those sensors lies far below ones utilised in ICBMs in 60s Good thing their weight, size, and power consumption are also far below the ICMB ones :) Kumar Bibek coomar@gmail.com Ah, I forgot, the

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-17 Thread DanH
I think that by then you will be passing cell towers fast enough that you can use that reference. Or detect the color shift in a flash picture. On Jan 17, 12:05 am, metal mikey coref...@gmail.com wrote: Will this still work as the car approaches and quite potentially breaches the speed of

Re: [android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-17 Thread Kostya Vasilyev
A phone with a camera can used to take pictures of the car's speedometer. Not very precise (since car speedometers typically lie by a few mph/kph), but keeps date and time with the image for later reference. If your car's speedometer is broken, and you see someone you know driving in the next

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-17 Thread DanH
Payload's less, too. On Jan 17, 3:54 am, Kostya Vasilyev kmans...@gmail.com wrote: 2011/1/17 ko5tik kpriblo...@yahoo.com INS also requires gyroscopes.  But quality of those sensors lies far below ones utilised in  ICBMs in 60s Good thing their weight, size, and power consumption are

Re: [android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-17 Thread Kostya Vasilyev
If you're talking about Android phones, yes. But those melting iPhones can be pretty lethal :) 2011/1/17 DanH danhi...@ieee.org Payload's less, too. On Jan 17, 3:54 am, Kostya Vasilyev kmans...@gmail.com wrote: 2011/1/17 ko5tik kpriblo...@yahoo.com INS also requires

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-17 Thread gjs
Hi, Ah, I forgot, the phones don't yet have a light sensor. Too bad.. I think you will find some already do: eg Nexus S, Nexus One, Droid X and others. See http://developer.android.com/reference/android/hardware/Sensor.html Here's a sample photo from Nexus S showing ambient light LUX, at

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-16 Thread metal mikey
Will this still work as the car approaches and quite potentially breaches the speed of sound??? On Jan 15, 4:59 am, DanH danhi...@ieee.org wrote: It only takes one phone:  You have the phone generate a tone and detect the shifted tone off of whatever object reflects it, like radar.  ;) --

Re: [android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-16 Thread Kumar Bibek
In that case, it's an obvious NO. Then, you probably have to rely on the camera's flash, and it's Doppler shift. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Mon, Jan 17, 2011 at 11:35 AM, metal mikey coref...@gmail.com wrote: Will this still work as the car approaches

Re: [android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-16 Thread Kumar Bibek
Ah, I forgot, the phones don't yet have a light sensor. Too bad.. Kumar Bibek http://techdroid.kbeanie.com http://www.kbeanie.com On Mon, Jan 17, 2011 at 11:44 AM, Kumar Bibek coomar@gmail.com wrote: In that case, it's an obvious NO. Then, you probably have to rely on the camera's

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-16 Thread ko5tik
On Jan 12, 7:16 am, keyboardr keyboa...@gmail.com wrote: You could also try integrating the readings from the accelerometers, but I suspect this would give you even worse accuracy and you'd have to have some way to calibrate the zero point. INS also requires gyroscopes. But quality of those

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-14 Thread Hogus
Don't be ridiculous, you can't use doppler shift if the source and recorder remain at the same position relative to each other. On Jan 13, 5:56 am, Spiral123 cumis...@gmail.com wrote: Play a tone and record it at the same time.  The doppler shift should give you the speed.  Works for galaxies.

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-14 Thread SIDIBE Ali-Broma
You can calculate the speed with the sensor ( accelerometer) at the below link http://jahbromo.blogspot.com/2009/11/android-faire-un-speedometre-avec.html GPS is not need to calculate the speed. On Jan 13, 8:48 am, gjs garyjamessi...@gmail.com wrote: Hi, I think you could still

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-14 Thread SIDIBE Ali-Broma
You can use Sensor to determinate speed but you must do some mathematic calculat ( Cos, sinus, abs...) Please check this below code package org.sidibe.speedometre; /* * SIDIBE Ali-Broma,malien, jahbr...@gmail.com, ENSAT Tanger * Novembre 2009 Tout droit permis. * * import java.util.*;

Re: [android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-14 Thread Kostya Vasilyev
Right, it takes two phones. You start playing sound on one and throw it out the car window, then measure the Doppler effect with the other. Great thing is, you can get a speed reading on the way back, if you pass by the same place. -- Kostya 2011/1/13 Hogus dupisani.lo...@gmail.com Don't be

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-14 Thread DanH
It only takes one phone: You have the phone generate a tone and detect the shifted tone off of whatever object reflects it, like radar. ;) On Jan 14, 7:52 am, Kostya Vasilyev kmans...@gmail.com wrote: Right, it takes two phones. You start playing sound on one and throw it out the car window,

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-14 Thread Indicator Veritatis
No, because as already pointed out, a naive integration of acceleration is too inaccurate; it is too easily corrupted by noise. Now you can improve it somewhat by considering integration as a low pass filter, and applying DSP techniques to enhance the accuracy, but don't expect a dramatic

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-14 Thread Indicator Veritatis
This code shows us how to get accelerometer readings out of the SensorManager, but the calculation you perform neglects noise in the accelerometer output. So if you actually try this out, you will notice it will not compare well with the car's speedometer. As I mentioned before: to get a

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-14 Thread Indicator Veritatis
This code shows us how to get the accelerometer data from the SensorManager, but not how to calculate the velocity correctly. The naive formula you use is correct ONLY for a completely noiseless signal. But all signals in the real world DO have noise, which must be filtered out. Filtering it out

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-12 Thread Brill Pappin
Well you pretty much need distance traveled over time to find speed, so anything you can do to determine distance travelled should allow you to calculate the speed. For instance you could use cell tower location, but I wouldn't class it as even remotely accurate. If you want to give an actual

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-12 Thread Brill Pappin
Yah, that is used a lot in simple robotics. You can't actually get anything accurate though. the longer the distance traveled the more inaccurate it becomes. - Brill On Jan 12, 1:16 am, keyboardr keyboa...@gmail.com wrote: You could also try integrating the readings from the accelerometers,

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-12 Thread cellurl
couldn't you use the accelerometer? Integrate that? Use time. s=Integral(a dt) If that doesn't work, look to skyhook wireless! -cellurl On Jan 12, 8:20 am, Brill Pappin br...@pappin.ca wrote: Well you pretty much need distance traveled over time to find speed, so anything you can do to

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-12 Thread cellurl
or try an external gps receiver with bluetooth interface to phone. On Jan 12, 9:22 am, cellurl gpscru...@gmail.com wrote: couldn't you use the accelerometer? Integrate that? Use time. s=Integral(a  dt) If that doesn't work, look to skyhook wireless! -cellurl On Jan 12, 8:20 am, Brill Pappin

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-12 Thread keyboardr
I know Nintendo originally tried to use accelerometers to figure out where it was pointing, and while that's theoretically possible, in practice the accuracy just isn't good enough. The acceleration most of the time is small enough that even the slightest error will throw the whole calculation

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-12 Thread metal mikey
You could use the phone's camera to take video of the car's speedometer and use image analysis to determine what the speedometer indicates the speed as. LOL :D -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to this group, send email

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-12 Thread Spiral123
Play a tone and record it at the same time. The doppler shift should give you the speed. Works for galaxies. On Jan 12, 9:52 pm, metal mikey coref...@gmail.com wrote: You could use the phone's camera to take video of the car's speedometer and use image analysis to determine what the

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-12 Thread Jake Basile
This cracked me up. Thank you sir. On Wednesday, January 12, 2011 10:56:35 PM UTC-5, Spiral123 wrote: Play a tone and record it at the same time. The doppler shift should give you the speed. Works for galaxies. On Jan 12, 9:52 pm, metal mikey core...@gmail.com wrote: You could use the

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-12 Thread ip332
You can get location from NETWORK_PROVIDER which can be calculated from cell towers or WiFi AP. The first one works almost always but the accuracy is not good therefore you may get the same location for quite a long time. All you need to do is to replace GPS_PROVIDER with NETWORK_PROVIDER. On Jan

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-12 Thread Bob Kerns
I've never gotten around to experimenting to see just how good you CAN get -- but there are some reference points that should help considerably. * Gravity * The magnetic field * Any period of low acceleration noise in the vicinity of about 1 g total acceleration probably indicates it has been set

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-12 Thread gjs
Hi, I think you could still extrapolate (average) speed for some trip with intermittent GPS signals. If you get a GPS fix at the start of the journey and then at the end you can calculate an average speed based on the time duration and straight line distance between these points, any additional

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-11 Thread Jake Basile
I don't have any code, but it should be possible. It would also be wildly inaccurate. You' reduce the sample rate by quite a lot, and the samples would be of much lower quality. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post to

[android-developers] Re: Anyone know how to calculate speed WITHOUT GPS?

2011-01-11 Thread keyboardr
You could also try integrating the readings from the accelerometers, but I suspect this would give you even worse accuracy and you'd have to have some way to calibrate the zero point. -- You received this message because you are subscribed to the Google Groups Android Developers group. To post