Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add calculated elevation to rides #415

Open
skofman opened this issue Jan 13, 2023 · 2 comments
Open

[Feature] Add calculated elevation to rides #415

skofman opened this issue Jan 13, 2023 · 2 comments
Labels
enhancement new feature / improvments research needed needs more research by developer

Comments

@skofman
Copy link

skofman commented Jan 13, 2023

Hello,
I know that Peloton does not provide an elevation metric but the Garmin workout does have the field.

The suggestion is to calculate the estimated elevation gain from the energy provided by Peloton in kJ.

The formula would be Energy (J) = Mass (kg) x Elevation (m) x Gravity (m/s^2). From it the elevation can be derived using the mass of user and gravity of 9.81 m/s^2. The user mass can be part of the config or if possible pulled from Peloton or Garmin.

@skofman skofman added bug enhancement new feature / improvments labels Jan 13, 2023
@philosowaffle philosowaffle removed the bug label Jan 13, 2023
@philosowaffle
Copy link
Owner

Its early on a Saturday morning and I'm trying to get my brain to do math so bear with me if these are silly thoughts. This function would calculate the potential elevation climbed at some constant speed correct?

What I'm trying to reconcile is given your energy output, how do I differentiate between you just going really fast on a mostly flat road vs. inferring this was a "hill" portion of the workout?

@skofman
Copy link
Author

skofman commented Jan 14, 2023

Your Saturday morning thinking is spot on. The formula doesn't take into account speed. It is just how much energy you need to elevate a certain mass to a certain elevation.

It is not perfect, but it's the closest I found to estimate the ride elevation gain.

@philosowaffle philosowaffle added the research needed needs more research by developer label Nov 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement new feature / improvments research needed needs more research by developer
Projects
None yet
Development

No branches or pull requests

2 participants