msimms / OpenWorkoutTracker

A workout tracker for iOS that includes cycling, running, as well as strength exercises. Supports Bluetooth sensors.
Other
49 stars 3 forks source link

Calories are wrong when cycling with intermittent power data #29

Closed msimms closed 3 years ago

msimms commented 4 years ago

If cycling power is intermittent (i.e., bluetooth issues cause the power meter to cut in and out) then calories are computed incorrectly, presumably because the average power is also incorrect. If the power data is bad we should either calculate average power using only the data we have (instead of assuming zeros for the missing data) or default to another method of calorie calculation.

msimms commented 3 years ago

I didn't really implement a fix for this as the power data has to be pretty bad and recent fixes to Bluetooth discovery makes intermittent power data less likely.