You are here: Forum Home → ANT+ Forums → ANT+ Bike Power → Thread
——————————————————
Free Indoor Cycling Software - https://maximumtrainer.com
Hi Max,
The FE-C use case was added in version 4.0 of the Fitness Equipment device profile. (http://www.thisisant.com/resources/fitness-equipment-device/)
——————————————————
Free Indoor Cycling Software - https://maximumtrainer.com
——————————————————
Free Indoor Cycling Software - https://maximumtrainer.com
——————————————————
Free Indoor Cycling Software - https://maximumtrainer.com
case ANT_SPECIFIC_TRAINER_DATA: //0x19
{
qDebug() << "ANT_SPECIFIC_TRAINER_DATA";
uint8_t eventCount0x19 = stMessage.aucData[2];
uint8_t instantCadence = stMessage.aucData[3];
uint16_t accumulatedPower = stMessage.aucData[4] + (stMessage.aucData[5]<<8);
uint16_t diffAccumulatedPower = 0;
uint16_t diffEventCount = 0;
//--- Check for rollover event
if (lastAccumulatedPower > accumulatedPower) {
diffAccumulatedPower = 65536-lastAccumulatedPower + accumulatedPower;
}
else {
diffAccumulatedPower = accumulatedPower - lastAccumulatedPower;
}
if (lastEventCount0x19 > eventCount0x19) {
diffEventCount = 256-lastEventCount0x19 + eventCount0x19;
}
else {
diffEventCount = eventCount0x19 - lastEventCount0x19;
}
....
}
——————————————————
Free Indoor Cycling Software - https://maximumtrainer.com
——————————————————
Free Indoor Cycling Software - https://maximumtrainer.com
——————————————————
Free Indoor Cycling Software - https://maximumtrainer.com
——————————————————
Free Indoor Cycling Software - https://maximumtrainer.com