Skip to content

Commit

Permalink
Power Profile Peloton #1733
Browse files Browse the repository at this point in the history
  • Loading branch information
cagnulein committed Oct 27, 2023
1 parent 180a246 commit 6e9a1ef
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/homeform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6055,13 +6055,13 @@ void homeform::sendMail() {
double peak = metric::powerPeak(&Session, 5);
double weightKg = settings.value(QZSettings::weight, QZSettings::default_weight).toFloat();
textMessage += QStringLiteral("5 Seconds Power: ") + QString::number(peak, 'f', 0) +
QStringLiteral("W") + QString::number(peak/weightKg, 'f', 1) + QStringLiteral("W/Kg\n");
QStringLiteral("W ") + QString::number(peak/weightKg, 'f', 1) + QStringLiteral("W/Kg\n");
peak = metric::powerPeak(&Session, 60);
textMessage += QStringLiteral("1 Minute Power: ") + QString::number(peak, 'f', 0) +
QStringLiteral("W") + QString::number(peak/weightKg, 'f', 1) + QStringLiteral("W/Kg\n");
QStringLiteral("W ") + QString::number(peak/weightKg, 'f', 1) + QStringLiteral("W/Kg\n");
peak = metric::powerPeak(&Session, 5 * 60);
textMessage += QStringLiteral("5 Minutes Power: ") + QString::number(peak, 'f', 0) +
QStringLiteral("W") + QString::number(peak/weightKg, 'f', 1) + QStringLiteral("W/Kg\n");
QStringLiteral("W ") + QString::number(peak/weightKg, 'f', 1) + QStringLiteral("W/Kg\n");
if (bluetoothManager->device()->deviceType() == bluetoothdevice::BIKE) {
textMessage += QStringLiteral("Average Cadence: ") +
QString::number(((bike *)bluetoothManager->device())->currentCadence().average(), 'f', 0) +
Expand Down

0 comments on commit 6e9a1ef

Please sign in to comment.