Skip to content

Commit

Permalink
Added virtual power support for CycleOps JetFluid Pro
Browse files Browse the repository at this point in the history
Fixes #1809
  • Loading branch information
amtriathlon committed Oct 29, 2019
1 parent a68cc8d commit a6875c5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Train/AddDeviceWizard.cpp
Expand Up @@ -1275,6 +1275,7 @@ AddFinal::AddFinal(AddDeviceWizard *parent) : QWizardPage(parent), wizard(parent
virtualPower->addItem(tr("Power - Tacx Sirius (10)")); // 65
virtualPower->addItem(tr("Power - Elite Crono Fluid ElastoGel")); // 66
virtualPower->addItem(tr("Power - Elite Turbo Muin (2015)")); // 67
virtualPower->addItem(tr("Power - CycleOps JetFluid Pro")); // 68

//
// Wheel size
Expand Down
7 changes: 7 additions & 0 deletions src/Train/RealtimeController.cpp
Expand Up @@ -598,6 +598,13 @@ RealtimeController::processRealtimeData(RealtimeData &rtData)
}
break;

case 68: // CycleOps JetFluid Pro
{
double V = rtData.getSpeed();
rtData.setWatts(0.94874757375670469046 * V + 0.11615123681031937322 * pow(V,2) + 0.00400691905019748630 * pow(V,3));
}
break;

default : // unknown - do nothing
break;
}
Expand Down

0 comments on commit a6875c5

Please sign in to comment.