Skip to content

Plug back in the speed calculator #7

@simonech

Description

@simonech

Now that we have the segments, let's put back the speed estimate.

Create a "ride" model which is a list of ride segments.
Each ride segment has

  • time/duration
  • speed
  • power
  • and a reference to the route segment

Use the parameter object already in the repo as well as the physics formula to calculate a ride from all the route segments.

One small caveat: the current formula assumes grade as one of the parameters. Obviously now it must be taken from the grade of the segment.

Power before came from the original tcx, now it needs to be an argument of the CLI.
If power is not passed the app should fail.

Update the cli output by also adding the time taken, and avg speed.

Also update the test part of the workflow to include the new parameter. Use 200W for the test

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions