Sublimis / UrbanBiker

Urban Biker issue tracker and Knowledge Base
https://urban-bike-computer.com/
18 stars 4 forks source link

kcal calculation from sensor data only? #63

Closed natewill11 closed 7 months ago

natewill11 commented 4 years ago

I don;t use GPS because I keep my phone in my pocket when riding. When I use the app (connected to my duotrap s) speed and distance and everything is great! but energy (kcal) remains at zero. Is it possible to have the app calculate energy from sensor data alone, without relying on GPS data?

Sublimis commented 4 years ago

Hi, yes, and the issue has been implemented/fixed just now. The upcoming version v5.70 will behave the way you described.

However, please note that it's perfectly okay to have GPS enabled even when you carry your phone in a pocket. The GPS signal in a pocket is usually not much worse than outside of the pocket.

Also note that if your phone does not have a barometer sensor, the power and energy calculations won't be so accurate -- There's no altitude information in this case (without GPS), so ascents and descents cannot be detected.

natewill11 commented 4 years ago

Hello,

I have been using your app for a few months now, and I love it! I upgraded to the paid version for what it's worth.

A quick question: can I get a bit more information on how your app calculates calories burned? Specifically, I'm wondering if the calculations will be more accurate if I add a cadence sensor, a heart rate monitor, or other sensors to the equation. Currently I only use GPS and a speed sensor.

Regards,

Nathan Willis

On Sat, Apr 11, 2020 at 9:49 PM Sublimis notifications@github.com wrote:

Hi, yes, and the issue has been implemented/fixed just now. The upcoming version v5.70 will behave the way you described.

However, please note that it's perfectly okay to have GPS enabled even when you carry your phone in a pocket. The GPS signal in a pocket is usually not much worse than outside of the pocket.

Also note that if your phone does not have a barometer sensor, the power and energy calculations won't be so accurate -- There's no altitude information in this case (without GPS), so ascents and descents cannot be detected.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Sublimis/UrbanBiker/issues/63#issuecomment-612438051, or unsubscribe https://github.com/notifications/unsubscribe-auth/APDTS5VCX5INZKSYTNO2KDLRMB7PFANCNFSM4MEOPQ4Q .

Sublimis commented 4 years ago

Hi Nathan, sorry for the delay. Two essential ingredients when calculating cycling power (and thus energy spent) are:

  1. Speed. You already have this covered with your speed sensor.
  2. Altitude change. If your phone doesn't have barometer sensor, then you should really get yourself one that has. GPS simply cannot provide precise altitude changes.

Cadence and heart rate sensors are not used when calculating energy spent (calories). Heart rate is important mostly just for stationary workouts, where calories cannot be calculated via kinematics. [It would be just a minor correction otherwise, and this can be taken into account simply by adjusting the "Overall thermal efficiency" parameter by a percent or two.] Similar story for cadence. Earlier we had an idea to also use cadence to somewhat adjust energy calculations, but then realized it's not plausible.

If you're really into getting the most accurate power and energy values, you should get yourself a dedicated power sensor. They are not cheap, though. If this is too much money to spent, simply getting a phone with a barometer and using a speed sensor will get you excellent results.

Hope this helps. Thanks for the feedback!

natewill11 commented 4 years ago

Cool! Thanks for the feedback.

On Mon, Aug 24, 2020 at 6:51 PM Sublimis notifications@github.com wrote:

Hi Nathan, sorry for the delay. Two essential ingredients when calculating cycling power (and thus energy spent) are:

  1. Speed. You already have this covered with your speed sensor.
  2. Altitude change. If your phone doesn't have barometer sensor, then you should really get yourself one that has. GPS simply cannot provide precise altitude changes.

Cadence and heart rate sensors are not used when calculating energy spent (calories). Heart rate is important mostly just for stationary workouts, where calories cannot be calculated via kinematics. [It would be just a minor correction otherwise, and this can be taken into account simply by adjusting the "Overall thermal efficiency" parameter by a percent or two.] Similar story for cadence. Earlier we had an idea to also use cadence to somewhat adjust energy calculations, but then realized it's not plausible.

If you're really into getting the most accurate power and energy values, you should get yourself a dedicated power sensor. They are not cheap, though. If this is too much money to spent, simply getting a phone with a barometer and using a speed sensor will get you excellent results.

Hope this helps. Thanks for the feedback!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Sublimis/UrbanBiker/issues/63#issuecomment-679080133, or unsubscribe https://github.com/notifications/unsubscribe-auth/APDTS5RBKLTIJ5QK3CUVRELSCJH2ZANCNFSM4MEOPQ4Q .