fmierlo / mytracks

Automatically exported from code.google.com/p/mytracks
1 stars 0 forks source link

When not moving, stats and chart still report non-zero speed #1555

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start driving with My Tracks recording.
2. During the drive, stop for a non-trivial amount of time, e.g. 2 minutes.
3. During the stop, observe that Stats stays stuck at the same non-zero speed, 
e.g. 10mph for the entire 2 minutes.
4. After driving, stop recording. Observe chart recorded that reduced speed but 
did not ever show a zero speed.

What is the expected output? What do you see instead?
I would expect it to show me my actual zero speed. I see a positive speed.

What version of MyTracks are you using? On what version of Android? On what
phone?
Google Nexus 7, second generation
Android 4.4.2
My Tracks v2.0.7

Please provide any additional information here:
I believe this happens because it doesn't record additional points when not 
moving; I looked at the exported KML file to confirm this. So, your speed 
calculation is based on the last two (or more - not sure how large your moving 
average is) points. The last two points would include a non-zero speed and a 
zero speed. If you calculate over that, you'll get a speed half way in between 
the speed at those two points. Your algorithm should understand "Hey, no new 
points are coming in, that means we are at the same place and thus are not 
moving."

Original issue reported on code.google.com by cwell...@gmail.com on 12 Aug 2014 at 2:28

GoogleCodeExporter commented 9 years ago
When I run or cycle, stops for traffic lights and such frequently seem not be 
sensed, i.e., the stop seems to often be included in the "moving time."

Original comment by donbike...@gmail.com on 20 Nov 2014 at 2:37