speed == 0

34 views
Skip to first unread message

Jarek Poświata

unread,
Jul 13, 2014, 10:02:04 AM7/13/14
to wattza...@googlegroups.com
When I stop the bike at once, strange situation happens. Video runs with last speed, but time stops and position, altitude, slope, etc don't change. Cadence/HR values are not updated either.
When I resume running, sometimes app continues after some time, sometimes doesn't.. What is worse, I have seen NPE several times after that (and only restart can help). Other situations are: video is desynchronized, or VLC (probably) tries to synchronize to given frame ("more than 5 seconds" message?).

I noticed, that speed is updated ("position/diff/rate" message) only when updated 'last event time' is read from speed/cadence dongle. It is updated only when magnet moves near sensor, when wheel rotates. If last event time doesn't advance.. nothing is updated.

David George

unread,
Jul 15, 2014, 6:25:46 PM7/15/14
to wattza...@googlegroups.com
> When I stop the bike at once, strange situation happens. Video runs with last speed, but time stops and position, altitude, slope, etc don't change.

That can happen sometimes, it seems to be an issue with certain videos; particularly ones with very high bitrates (high definition). Can you tell me which one(s) you've seen this with? VLC has been issued with a stop command but doesn't obey it; I suspect it misses the command due to the data rate of the video it is displaying.

It is "normal" that if you stop the bike that HR isn't updated as Speed, Cadence, Heart Rate data are all sent over the same channel from the Speed controller. This is maybe something to change in the future, at least for Heart Rate.

It is true that if the video keeps running on after you stop the bike it is then difficult to resynchronize the route and video.


> I noticed, that speed is updated ("position/diff/rate" message) only when updated 'last event time' is read from speed/cadence dongle. It is updated only when magnet moves near sensor, when wheel rotates. If last event time doesn't advance.. nothing is updated.

Are you saying that speed stays at say 15km/h rather than dropping to 0 km/h when you stop the wheel? I will take a look at that, it should drop to 0km/h but this won't happen immediately in the case of a sudden stop within a single rotation due to limitations of the ANT+ protocol - we need to differentiate between a 0 speed and a slow update from the ANT sensor which can be up to 2 seconds delay.

Did you download the version 2.0 for Windows? I made some changes to the way the speed and cadence are calculated in the latest release.

Jarek Poświata

unread,
Jul 16, 2014, 3:34:21 PM7/16/14
to wattza...@googlegroups.com
> particularly ones with very high bitrates (high definition). Can you tell me which one(s) you've seen this with
I tried NL_Kerkrade (from cyclingrlv). I have prepared "LQ" video (lower resolution, lower bitrate, lower framerate), and it looks the issue is not related to VLC: it behaves same way.

> Are you saying that speed stays at say 15km/h rather than dropping to 0 km/h when you stop the wheel?
Exactly. Constant value is displayed in "speed" field and video run with that speed, but time and distance don't advance. After getting next "rotation" video position is reported properly (position in the log changes "a bit").. but there is no jump in the position on the route.

> Did you download the version 2.0 for Windows?
Yes. 2.0.2, from May 27. Version without "auto" in SimulSpeed and without "real speed" field  (if it matters). B'Twin speedsensor (now.. on the desk with Arduino to "simulate" speed)

David George

unread,
Jul 24, 2014, 1:35:22 AM7/24/14
to wattza...@googlegroups.com
Hi Jarek

I downloaded and tested the NL_Kerkrade on my system which is pretty low power. (5 year old basic office PC) and it played ok. When I pressed stop it stopped, pressing start restarted. Have I understood your problem. Normally only the 1920x1060 at 60 fps can sometimes cause problems.

The none zero speed value is a problem if you stop the wheel very suddenly, say by very hard breaking. As I mentioned earlier the ANT sensor doesn't see the magnetic sensor and doesn't send an update - no update, no change in speed. I will see if there is a fix for this.

Using an Arduino is interesting, how does that work?

David George

unread,
Sep 30, 2014, 7:44:37 AM9/30/14
to wattza...@googlegroups.com
Fixed in C.E edition (github). Scheduled for release 2.2.
Reply all
Reply to author
Forward
0 new messages