starryalley / CSC_BLE_Bridge

Android app that bridges ANT+ Cycling Speed/Cadence/HR sensors as Bluetooth LE sensors
MIT License
65 stars 17 forks source link

Wheel size #16

Closed chrismonks closed 3 years ago

chrismonks commented 3 years ago

So now everything is workin, i'd like to change the wheel size to 700x28C

is it as simple as changing

// 700x23c circumference in meter private static final BigDecimal circumference = new BigDecimal("2.095");

to

// 700x23c circumference in meter private static final BigDecimal circumference = new BigDecimal("2.136");

AM i missing anything else, i suspect i am as I think BLE advertising also incorporates 700x23c profile, but not 100% on it. Any help greatly appreciated

starryalley commented 3 years ago

Hi @chrismonks,

I assume you are using ANT+ speed sensor with this app to ride in zwift?

When you set circumference in the code private static final BigDecimal circumference = new BigDecimal("2.095");, it only affects what is displayed on this app's screen. Bluetooth CSC profile (cycling speed and cadence) only specifies "Cumulative Wheel Revolutions". See details here.

So that means whatever application is using that BLE CSC sensor advertised by this app should convert that revolution into meaningful speed figures. Zwift has wheel size setting when you try to connect with speed sensor (instead of power sensor). You have to set your wheel size there instead.

Hope this clarifies.

chrismonks commented 3 years ago

Got ya. Thanks for the very helpful answer. you guys are awesome. My main issue was with zwift....I connected everything fine. The watts on my elite supercrono digital wireless was roughly 2X what zwift was show in their zpower calcs. Did a bit of reading and played around with some of their trainer selected, was previously using "unknown" and boom, got a wattage on zwift within 2%+- what my trainer was telling me.

btw using an old timex speed/cadence/hr for ant+.

overall really great to be back on a bike after 8 year out......