Sunday, April 03, 2011

Virtual Reality Cycling ... with Golden Cheetah and Native ANT+

Ok, so its VERY basic at the moment, but using the excellent Videolan libs and client I can now play video. I've also made the realtime view more configurable, so you can select what dials / instruments you want on screen and move them around and resize them.

The screenshot below is Fightclub from Sufferfest. This makes the training mode useful for those without Computrainers and the excellent Ergvideo stuff.

So, get an ANT+ stick and join in the fun....


And now got it working on Windows too, libvlc is rocking!

9 comments:

Adam Spiers said...

Unbelievably awesome! Will you ultimately be able to adjust the speed of playback based on speed?

Mark Liversedge said...

I hadn't thought of that... not sure... might be a bit weird?

sean said...

Mark
How do you do this. I have been using GCv2 and tried the virtual box stuff.
Pleased to find V3 and promise of Native Ant+ connections.
Could not get it to work though.

Then found your Sufferfest Videolan live data display on the blog.
How is that done within V3 of GC?
Looks great.

Mark Liversedge said...

Hi Sean,

Its not in the main GC repo yet. I often blog about stuff I am working on, but with no guarantee it will make it into the main code.

As it happens, the code is in the main V3 repo (by accident) but its not ready for use (it looks for a video file on my desktop [oops]).

Cool that you are interested in it, will get back to it soon ... working on other things at the moment.

sean said...

Mark
Can I get live data into GC3 as it stands.
How do you pair devices.
I am guessing it is Native Ant+.
I have a Garmin USB stick which has worked before in V2 with QUARD and virtual box so should be ok.
Do I have to set a virtual channel?
Do I need any specific drivers running for the Ant+ stick?
Thanks
Sean

Mark Liversedge said...

Hi Sean,

You don't need to pair with native ANT+ devices, I should remove it from the code .. it just finds whatever is there when you start.

Live on-line racing is not gonna happen in a hurry I'm afraid.

sean said...

Hi Markl
Worked fine with Powertap Watts, Powertap speed and HRM.
Didnt pick up Gramin GSC-10 spped / cadence or powertap cadence.
Am I doing something wrong?

Any way the time scale on the real time trend can be increased or is it fixed?

Can power reading be averaged. Real time?

Many Thanks
Sean

Mark Liversedge said...

Hi Sean,

You should post over on the golden cheetah mailing list at

https://groups.google.com/forum/#!forum/golden-cheetah-users

the GSC-10 should work fine, PT cadence not so sure. I use a GSC-10 myself!

rob2jim said...

very interested in this thread - just installed Garmin usb and got real time working - issue with HR from Garmin ANT+ HR strap - seems to be giving me a constant HR +/- a few beats, and no HR at all if I stop the bike (!!) - would like the rolling average feature and the ability to shift boxes around - is some of this in the beta V3? I haven't loaded that yet as I don't want to risk breaking what I have with real time on V2 just yet.