Skip to content

Commit

Permalink
paces in the email
Browse files Browse the repository at this point in the history
  • Loading branch information
cagnulein committed Jun 7, 2024
1 parent 4f8d7d8 commit afe5e52
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion src/homeform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6404,10 +6404,22 @@ void homeform::sendMail() {
textMessage += QStringLiteral("Max Peloton Resistance: ") +
QString::number(((rower *)bluetoothManager->device())->pelotonResistance().max(), 'f', 0) +
QStringLiteral("\n");
textMessage += QStringLiteral("Average Pace: ") +
((rower *)bluetoothManager->device())->averagePace().toString(QStringLiteral("m:ss")) +
QStringLiteral("\n");
textMessage += QStringLiteral("Max Pace: ") +
((rower *)bluetoothManager->device())->maxPace().toString(QStringLiteral("m:ss")) +
QStringLiteral("\n");
textMessage +=
QStringLiteral("Average Strokes Length: ") +
QString::number(((rower *)bluetoothManager->device())->currentStrokesLength().average(), 'f', 1) + "\n";
} else if (bluetoothManager->device()->deviceType() == bluetoothdevice::TREADMILL) {
} else if (bluetoothManager->device()->deviceType() == bluetoothdevice::TREADMILL || bluetoothManager->device()->deviceType() == bluetoothdevice::ELLIPTICAL) {
textMessage += QStringLiteral("Average Pace: ") +
(bluetoothManager->device())->averagePace().toString(QStringLiteral("m:ss")) +
QStringLiteral("\n");
textMessage += QStringLiteral("Max Pace: ") +
(bluetoothManager->device())->maxPace().toString(QStringLiteral("m:ss")) +
QStringLiteral("\n");
// for stryd and similars
if (bluetoothManager->device()->currentCadence().average() > 0) {
textMessage += QStringLiteral("Average Cadence: ") +
Expand Down

0 comments on commit afe5e52

Please sign in to comment.