Skip to content

Commit

Permalink
New Peloton Rower Paces #1611
Browse files Browse the repository at this point in the history
  • Loading branch information
cagnulein committed Oct 3, 2023
1 parent 64059f2 commit 9116a46
Showing 1 changed file with 217 additions and 0 deletions.
217 changes: 217 additions & 0 deletions src/peloton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,223 @@ peloton::peloton(bluetooth *bl, QObject *parent) : QObject(parent) {
return;
}

rower_pace_offset = 1;

rower_pace[0].value = -1;
rower_pace[0].display_name = QStringLiteral("Recovery");
rower_pace[0].levels[0].fast_pace = 4.31;
rower_pace[0].levels[0].slow_pace = 15;
rower_pace[0].levels[0].display_name = QStringLiteral("Level 1");
rower_pace[0].levels[0].slug = QStringLiteral("level_1");
rower_pace[0].levels[1].fast_pace = 3.58;
rower_pace[0].levels[1].slow_pace = 15;
rower_pace[0].levels[1].display_name = QStringLiteral("Level 2");
rower_pace[0].levels[1].slug = QStringLiteral("level_2");
rower_pace[0].levels[2].fast_pace = 3.34;
rower_pace[0].levels[2].slow_pace = 15;
rower_pace[0].levels[2].display_name = QStringLiteral("Level 3");
rower_pace[0].levels[2].slug = QStringLiteral("level_3");
rower_pace[0].levels[3].fast_pace = 3.17;
rower_pace[0].levels[3].slow_pace = 15;
rower_pace[0].levels[3].display_name = QStringLiteral("Level 4");
rower_pace[0].levels[3].slug = QStringLiteral("level_4");
rower_pace[0].levels[4].fast_pace = 3.03;
rower_pace[0].levels[4].slow_pace = 15;
rower_pace[0].levels[4].display_name = QStringLiteral("Level 5");
rower_pace[0].levels[4].slug = QStringLiteral("level_5");
rower_pace[0].levels[5].fast_pace = 2.5;
rower_pace[0].levels[5].slow_pace = 15;
rower_pace[0].levels[5].display_name = QStringLiteral("Level 6");
rower_pace[0].levels[5].slug = QStringLiteral("level_6");
rower_pace[0].levels[6].fast_pace = 2.38;
rower_pace[0].levels[6].slow_pace = 15;
rower_pace[0].levels[6].display_name = QStringLiteral("Level 7");
rower_pace[0].levels[6].slug = QStringLiteral("level_7");
rower_pace[0].levels[7].fast_pace = 2.28;
rower_pace[0].levels[7].slow_pace = 15;
rower_pace[0].levels[7].display_name = QStringLiteral("Level 8");
rower_pace[0].levels[7].slug = QStringLiteral("level_8");
rower_pace[0].levels[8].fast_pace = 2.17;
rower_pace[0].levels[8].slow_pace = 15;
rower_pace[0].levels[8].display_name = QStringLiteral("Level 9");
rower_pace[0].levels[8].slug = QStringLiteral("level_9");
rower_pace[0].levels[9].fast_pace = 2.07;
rower_pace[0].levels[9].slow_pace = 15;
rower_pace[0].levels[9].display_name = QStringLiteral("Level 10");
rower_pace[0].levels[9].slug = QStringLiteral("level_10");

rower_pace[1].value = 0;
rower_pace[1].display_name = QStringLiteral("Easy");
rower_pace[1].levels[0].fast_pace = 3.51;
rower_pace[1].levels[0].slow_pace = 4.31;
rower_pace[1].levels[0].display_name = QStringLiteral("Level 1");
rower_pace[1].levels[0].slug = QStringLiteral("level_1");
rower_pace[1].levels[1].fast_pace = 3.22;
rower_pace[1].levels[1].slow_pace = 3.58;
rower_pace[1].levels[1].display_name = QStringLiteral("Level 2");
rower_pace[1].levels[1].slug = QStringLiteral("level_2");
rower_pace[1].levels[2].fast_pace = 3.02;
rower_pace[1].levels[2].slow_pace = 3.34;
rower_pace[1].levels[2].display_name = QStringLiteral("Level 3");
rower_pace[1].levels[2].slug = QStringLiteral("level_3");
rower_pace[1].levels[3].fast_pace = 2.47;
rower_pace[1].levels[3].slow_pace = 3.17;
rower_pace[1].levels[3].display_name = QStringLiteral("Level 4");
rower_pace[1].levels[3].slug = QStringLiteral("level_4");
rower_pace[1].levels[4].fast_pace = 2.36;
rower_pace[1].levels[4].slow_pace = 3.03;
rower_pace[1].levels[4].display_name = QStringLiteral("Level 5");
rower_pace[1].levels[4].slug = QStringLiteral("level_5");
rower_pace[1].levels[5].fast_pace = 2.24;
rower_pace[1].levels[5].slow_pace = 2.5;
rower_pace[1].levels[5].display_name = QStringLiteral("Level 6");
rower_pace[1].levels[5].slug = QStringLiteral("level_6");
rower_pace[1].levels[6].fast_pace = 2.14;
rower_pace[1].levels[6].slow_pace = 2.38;
rower_pace[1].levels[6].display_name = QStringLiteral("Level 7");
rower_pace[1].levels[6].slug = QStringLiteral("level_7");
rower_pace[1].levels[7].fast_pace = 2.06;
rower_pace[1].levels[7].slow_pace = 2.28;
rower_pace[1].levels[7].display_name = QStringLiteral("Level 8");
rower_pace[1].levels[7].slug = QStringLiteral("level_8");
rower_pace[1].levels[8].fast_pace = 1.56;
rower_pace[1].levels[8].slow_pace = 2.17;
rower_pace[1].levels[8].display_name = QStringLiteral("Level 9");
rower_pace[1].levels[8].slug = QStringLiteral("level_9");
rower_pace[1].levels[9].fast_pace = 1.48;
rower_pace[1].levels[9].slow_pace = 2.07;
rower_pace[1].levels[9].display_name = QStringLiteral("Level 10");
rower_pace[1].levels[9].slug = QStringLiteral("level_10");

rower_pace[2].value = 1;
rower_pace[2].display_name = QStringLiteral("Moderate");
rower_pace[2].levels[0].fast_pace = 3.35;
rower_pace[2].levels[0].slow_pace = 3.51;
rower_pace[2].levels[0].display_name = QStringLiteral("Level 1");
rower_pace[2].levels[0].slug = QStringLiteral("level_1");
rower_pace[2].levels[1].fast_pace = 3.09;
rower_pace[2].levels[1].slow_pace = 3.22;
rower_pace[2].levels[1].display_name = QStringLiteral("Level 2");
rower_pace[2].levels[1].slug = QStringLiteral("level_2");
rower_pace[2].levels[2].fast_pace = 2.5;
rower_pace[2].levels[2].slow_pace = 3.02;
rower_pace[2].levels[2].display_name = QStringLiteral("Level 3");
rower_pace[2].levels[2].slug = QStringLiteral("level_3");
rower_pace[2].levels[3].fast_pace = 2.36;
rower_pace[2].levels[3].slow_pace = 2.47;
rower_pace[2].levels[3].display_name = QStringLiteral("Level 4");
rower_pace[2].levels[3].slug = QStringLiteral("level_4");
rower_pace[2].levels[4].fast_pace = 2.25;
rower_pace[2].levels[4].slow_pace = 2.36;
rower_pace[2].levels[4].display_name = QStringLiteral("Level 5");
rower_pace[2].levels[4].slug = QStringLiteral("level_5");
rower_pace[2].levels[5].fast_pace = 2.15;
rower_pace[2].levels[5].slow_pace = 2.24;
rower_pace[2].levels[5].display_name = QStringLiteral("Level 6");
rower_pace[2].levels[5].slug = QStringLiteral("level_6");
rower_pace[2].levels[6].fast_pace = 2.05;
rower_pace[2].levels[6].slow_pace = 2.14;
rower_pace[2].levels[6].display_name = QStringLiteral("Level 7");
rower_pace[2].levels[6].slug = QStringLiteral("level_7");
rower_pace[2].levels[7].fast_pace = 1.57;
rower_pace[2].levels[7].slow_pace = 2.06;
rower_pace[2].levels[7].display_name = QStringLiteral("Level 8");
rower_pace[2].levels[7].slug = QStringLiteral("level_8");
rower_pace[2].levels[8].fast_pace = 1.49;
rower_pace[2].levels[8].slow_pace = 1.57;
rower_pace[2].levels[8].display_name = QStringLiteral("Level 9");
rower_pace[2].levels[8].slug = QStringLiteral("level_9");
rower_pace[2].levels[9].fast_pace = 1.41;
rower_pace[2].levels[9].slow_pace = 1.48;
rower_pace[2].levels[9].display_name = QStringLiteral("Level 10");
rower_pace[2].levels[9].slug = QStringLiteral("level_10");

rower_pace[3].value = 2;
rower_pace[3].display_name = QStringLiteral("Challenging");
rower_pace[3].levels[0].fast_pace = 3.17;
rower_pace[3].levels[0].slow_pace = 3.35;
rower_pace[3].levels[0].display_name = QStringLiteral("Level 1");
rower_pace[3].levels[0].slug = QStringLiteral("level_1");
rower_pace[3].levels[1].fast_pace = 2.52;
rower_pace[3].levels[1].slow_pace = 3.09;
rower_pace[3].levels[1].display_name = QStringLiteral("Level 2");
rower_pace[3].levels[1].slug = QStringLiteral("level_2");
rower_pace[3].levels[2].fast_pace = 2.35;
rower_pace[3].levels[2].slow_pace = 2.5;
rower_pace[3].levels[2].display_name = QStringLiteral("Level 3");
rower_pace[3].levels[2].slug = QStringLiteral("level_3");
rower_pace[3].levels[3].fast_pace = 2.23;
rower_pace[3].levels[3].slow_pace = 2.36;
rower_pace[3].levels[3].display_name = QStringLiteral("Level 4");
rower_pace[3].levels[3].slug = QStringLiteral("level_4");
rower_pace[3].levels[4].fast_pace = 2.13;
rower_pace[3].levels[4].slow_pace = 2.25;
rower_pace[3].levels[4].display_name = QStringLiteral("Level 5");
rower_pace[3].levels[4].slug = QStringLiteral("level_5");
rower_pace[3].levels[5].fast_pace = 2.03;
rower_pace[3].levels[5].slow_pace = 2.15;
rower_pace[3].levels[5].display_name = QStringLiteral("Level 6");
rower_pace[3].levels[5].slug = QStringLiteral("level_6");
rower_pace[3].levels[6].fast_pace = 1.54;
rower_pace[3].levels[6].slow_pace = 2.05;
rower_pace[3].levels[6].display_name = QStringLiteral("Level 7");
rower_pace[3].levels[6].slug = QStringLiteral("level_7");
rower_pace[3].levels[7].fast_pace = 1.47;
rower_pace[3].levels[7].slow_pace = 1.57;
rower_pace[3].levels[7].display_name = QStringLiteral("Level 8");
rower_pace[3].levels[7].slug = QStringLiteral("level_8");
rower_pace[3].levels[8].fast_pace = 1.4;
rower_pace[3].levels[8].slow_pace = 1.49;
rower_pace[3].levels[8].display_name = QStringLiteral("Level 9");
rower_pace[3].levels[8].slug = QStringLiteral("level_9");
rower_pace[3].levels[9].fast_pace = 1.32;
rower_pace[3].levels[9].slow_pace = 1.41;
rower_pace[3].levels[9].display_name = QStringLiteral("Level 10");
rower_pace[3].levels[9].slug = QStringLiteral("level_10");

rower_pace[4].value = 3;
rower_pace[4].display_name = QStringLiteral("Max");
rower_pace[4].levels[0].fast_pace = 3.06;
rower_pace[4].levels[0].slow_pace = 3.17;
rower_pace[4].levels[0].display_name = QStringLiteral("Level 1");
rower_pace[4].levels[0].slug = QStringLiteral("level_1");
rower_pace[4].levels[1].fast_pace = 2.42;
rower_pace[4].levels[1].slow_pace = 2.52;
rower_pace[4].levels[1].display_name = QStringLiteral("Level 2");
rower_pace[4].levels[1].slug = QStringLiteral("level_2");
rower_pace[4].levels[2].fast_pace = 2.26;
rower_pace[4].levels[2].slow_pace = 2.35;
rower_pace[4].levels[2].display_name = QStringLiteral("Level 3");
rower_pace[4].levels[2].slug = QStringLiteral("level_3");
rower_pace[4].levels[3].fast_pace = 2.15;
rower_pace[4].levels[3].slow_pace = 2.23;
rower_pace[4].levels[3].display_name = QStringLiteral("Level 4");
rower_pace[4].levels[3].slug = QStringLiteral("level_4");
rower_pace[4].levels[4].fast_pace = 2.05;
rower_pace[4].levels[4].slow_pace = 2.13;
rower_pace[4].levels[4].display_name = QStringLiteral("Level 5");
rower_pace[4].levels[4].slug = QStringLiteral("level_5");
rower_pace[4].levels[5].fast_pace = 1.56;
rower_pace[4].levels[5].slow_pace = 2.03;
rower_pace[4].levels[5].display_name = QStringLiteral("Level 6");
rower_pace[4].levels[5].slug = QStringLiteral("level_6");
rower_pace[4].levels[6].fast_pace = 1.48;
rower_pace[4].levels[6].slow_pace = 1.54;
rower_pace[4].levels[6].display_name = QStringLiteral("Level 7");
rower_pace[4].levels[6].slug = QStringLiteral("level_7");
rower_pace[4].levels[7].fast_pace = 1.41;
rower_pace[4].levels[7].slow_pace = 1.47;
rower_pace[4].levels[7].display_name = QStringLiteral("Level 8");
rower_pace[4].levels[7].slug = QStringLiteral("level_8");
rower_pace[4].levels[8].fast_pace = 1.34;
rower_pace[4].levels[8].slow_pace = 1.4;
rower_pace[4].levels[8].display_name = QStringLiteral("Level 9");
rower_pace[4].levels[8].slug = QStringLiteral("level_9");
rower_pace[4].levels[9].fast_pace = 1.27;
rower_pace[4].levels[9].slow_pace = 1.32;
rower_pace[4].levels[9].display_name = QStringLiteral("Level 10");
rower_pace[4].levels[9].slug = QStringLiteral("level_10");

connect(timer, &QTimer::timeout, this, &peloton::startEngine);

PZP = new powerzonepack(bl, this);
Expand Down

0 comments on commit 9116a46

Please sign in to comment.