stefaandesmet2003 / hometrainer

ride indoor videos on interactive trainer
16 stars 3 forks source link

Direto XR compatibility #1

Closed Godtux closed 2 years ago

Godtux commented 3 years ago

Hello, i have a diretoXR (with cadence sensor) and would like to get the 24 points of measurement.

Thanks

Here is the current situation image

stefaandesmet2003 commented 3 years ago

Hi, thanks for reaching out here. I've set up a test version for you to try at https://stefaandesmet2003.github.io/hometrainer/pedallingAnalysis.html Would you mind to give it a shot? If the 24 points don't show up correctly, please to send a screenshot similar to the one below. I would need the console logs of 'ntf15' (use F12 in Chrome), to know exactly what the XR sends. Thanks! Screenshot from 2021-03-08 21-36-18

Godtux commented 3 years ago

Looks like it works ! Thanks a lot ! cartesian polar do you know how to set the beginning of the stroke, so as to rotate the polar graph ?

stefaandesmet2003 commented 3 years ago

Great news! Thanks for the feedback. With a cadence sensor hooked up, the zero angle is when the pedal passes the sensor. Without a sensor, I don't know how the Direto determines the 'zero' reference. From your very first screenshot it looks like you have a sensor hooked up, is that correct? There are probably easy ways to tune the polar graph in the javascript, but haven't looked into that. It's more a proof of concept.

Godtux commented 2 years ago

Yes i have a sensor hooked up.