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

Fix Absolute Power Targets with Intervals.icu synced workouts #245

Open
dvmarinoff opened this issue Feb 7, 2025 · 0 comments
Open

Fix Absolute Power Targets with Intervals.icu synced workouts #245

dvmarinoff opened this issue Feb 7, 2025 · 0 comments

Comments

@dvmarinoff
Copy link
Owner

A workouts created with Intervals.icu with absolute targets, when synced to Auuki has some of the targets a few watts down.

This is the workout on Intervals.icu:

- 5m 120w
- 1m 0w
- 5m 120w
- 1m 0w

- 5m 130w
- 1m 0w
- 5m 130w
- 1m 0w

- 5m 140w
- 1m 0w
- 5m 140w
- 1m 0w

- 5m 150w
- 1m 0w
- 5m 150w
- 1m 0w

- 5m 160w
- 1m 0w
- 5m 160w
- 1m 0w

- 5m 170w
- 1m 0w
- 5m 170w
- 1m 0w

- 5m 180w
- 1m 0w
- 5m 180w
- 1m 0w

- 5m 190w
- 1m 0w
- 5m 190w
- 1m 0w

This is the exported zwo from Intervals.icu:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<workout_file>
    <author>Dimitar Marinov</author>
    <name>5-1-5 Zone 2 Test (10w steps)</name>
    <sportType>bike</sportType>
    <ftpOverride>242</ftpOverride>
    <tags/>
    <workout>
        <SteadyState show_avg="1" Power="0.495" Duration="300"/>
        <SteadyState show_avg="1" Power="0.0" Duration="60"/>
        <SteadyState show_avg="1" Power="0.495" Duration="300"/>
        <SteadyState show_avg="1" Power="0.0" Duration="60"/>
        <SteadyState show_avg="1" Power="0.537" Duration="300"/>
        <SteadyState show_avg="1" Power="0.0" Duration="60"/>
        <SteadyState show_avg="1" Power="0.537" Duration="300"/>
        <SteadyState show_avg="1" Power="0.0" Duration="60"/>
        <SteadyState show_avg="1" Power="0.578" Duration="300"/>
        <SteadyState show_avg="1" Power="0.0" Duration="60"/>
        <SteadyState show_avg="1" Power="0.578" Duration="300"/>
        <SteadyState show_avg="1" Power="0.0" Duration="60"/>
        <SteadyState show_avg="1" Power="0.619" Duration="300"/>
        <SteadyState show_avg="1" Power="0.0" Duration="60"/>
        <SteadyState show_avg="1" Power="0.619" Duration="300"/>
        <SteadyState show_avg="1" Power="0.0" Duration="60"/>
        <SteadyState show_avg="1" Power="0.661" Duration="300"/>
        <SteadyState show_avg="1" Power="0.0" Duration="60"/>
        <SteadyState show_avg="1" Power="0.661" Duration="300"/>
        <SteadyState show_avg="1" Power="0.0" Duration="60"/>
        <SteadyState show_avg="1" Power="0.702" Duration="300"/>
        <SteadyState show_avg="1" Power="0.0" Duration="60"/>
        <SteadyState show_avg="1" Power="0.702" Duration="300"/>
        <SteadyState show_avg="1" Power="0.0" Duration="60"/>
        <SteadyState show_avg="1" Power="0.743" Duration="300"/>
        <SteadyState show_avg="1" Power="0.0" Duration="60"/>
        <SteadyState show_avg="1" Power="0.743" Duration="300"/>
        <SteadyState show_avg="1" Power="0.0" Duration="60"/>
        <SteadyState show_avg="1" Power="0.785" Duration="300"/>
        <SteadyState show_avg="1" Power="0.0" Duration="60"/>
        <SteadyState show_avg="1" Power="0.785" Duration="300"/>
        <SteadyState show_avg="1" Power="0.0" Duration="60"/>
    </workout>
</workout_file>

The absolute targets are converted to relative. So 160 becomes 0.661 which given an FTP of 240 results in 240 * 0.661 = 158.64000000000001 or Math.round(158.64000000000001) = 159, 1 watt down

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant