77 return d->messageIndex;
134 return d->startPositionLat;
145 return d->startPositionLong;
156 return d->endPositionLat;
167 return d->endPositionLong;
180 return d->totalElapsedTime;
193 return d->totalTimerTime;
204 return d->totalDistance;
215 return d->totalCycles;
226 return d->totalCalories;
239 return d->totalFatCalories;
272 return d->avgHeartRate;
283 return d->maxHeartRate;
297 return d->avgCadence;
308 return d->maxCadence;
344 return d->totalAscent;
355 return d->totalDescent;
377 return d->eventGroup;
451 return d->normalizedPower;
462 return d->leftRightBalance;
495 return d->avgAltitude;
506 return d->maxAltitude;
517 return d->gpsAccuracy;
539 return d->avgPosGrade;
550 return d->avgNegGrade;
561 return d->maxPosGrade;
572 return d->maxNegGrade;
583 return d->avgTemperature;
594 return d->maxTemperature;
605 return d->totalMovingTime;
616 return d->avgPosVerticalSpeed;
627 return d->avgNegVerticalSpeed;
638 return d->maxPosVerticalSpeed;
649 return d->maxNegVerticalSpeed;
660 return d->timeInHrZone;
671 return d->timeInSpeedZone;
682 return d->timeInCadenceZone;
693 return d->timeInPowerZone;
704 return d->repetitionNum;
715 return d->minAltitude;
726 return d->minHeartRate;
737 return d->activeTime;
748 return d->wktStepIndex;
759 return d->sportEvent;
770 return d->avgLeftTorqueEffectiveness;
781 return d->avgRightTorqueEffectiveness;
792 return d->avgLeftPedalSmoothness;
803 return d->avgRightPedalSmoothness;
814 return d->avgCombinedPedalSmoothness;
849 return d->avgFractionalCadence;
862 return d->maxFractionalCadence;
875 return d->totalFractionalCycles;
886 return d->frontGearShiftCount;
897 return d->rearGearShiftCount;
910 return d->timeStanding;
923 return d->standCount;
936 return d->avgLeftPco;
949 return d->avgRightPco;
962 return d->avgLeftPowerPhase;
975 return d->avgLeftPowerPhasePeak;
988 return d->avgRightPowerPhase;
1001 return d->avgRightPowerPhasePeak;
1014 return d->avgPowerPosition;
1027 return d->maxPowerPosition;
1040 return d->avgCadencePosition;
1053 return d->maxCadencePosition;
1066 return d->manufacturer;
1080 return d->totalGrit;
1094 return d->totalFlow;
1135 return d->totalFractionalAscent;
1148 return d->totalFractionalDescent;
2094 , timestamp(static_cast<
DateTime>(-1))
2095 , event(static_cast<
Event>(-1))
2097 , startTime(static_cast<
DateTime>(-1))
2098 , startPositionLat(0x7FFFFFFF)
2099 , startPositionLong(0x7FFFFFFF)
2100 , endPositionLat(0x7FFFFFFF)
2101 , endPositionLong(0x7FFFFFFF)
2102 , totalElapsedTime(0xFFFFFFFF)
2103 , totalTimerTime(0xFFFFFFFF)
2104 , totalDistance(0xFFFFFFFF)
2105 , totalCycles(0xFFFFFFFF)
2106 , totalCalories(0xFFFF)
2107 , totalFatCalories(0xFFFF)
2110 , avgHeartRate(0xFF)
2111 , maxHeartRate(0xFF)
2116 , totalAscent(0xFFFF)
2117 , totalDescent(0xFFFF)
2118 , sport(static_cast<
Sport>(-1))
2120 , necLat(0x7FFFFFFF)
2121 , necLong(0x7FFFFFFF)
2122 , swcLat(0x7FFFFFFF)
2123 , swcLong(0x7FFFFFFF)
2124 , normalizedPower(0xFFFF)
2126 , subSport(static_cast<
SubSport>(-1))
2127 , totalWork(0xFFFFFFFF)
2128 , avgAltitude(0xFFFF)
2129 , maxAltitude(0xFFFF)
2132 , avgPosGrade(0x7FFF)
2133 , avgNegGrade(0x7FFF)
2134 , maxPosGrade(0x7FFF)
2135 , maxNegGrade(0x7FFF)
2136 , avgTemperature(0x7F)
2137 , maxTemperature(0x7F)
2138 , totalMovingTime(0xFFFFFFFF)
2139 , avgPosVerticalSpeed(0x7FFF)
2140 , avgNegVerticalSpeed(0x7FFF)
2141 , maxPosVerticalSpeed(0x7FFF)
2142 , maxNegVerticalSpeed(0x7FFF)
2143 , timeInHrZone(0xFFFFFFFF)
2144 , timeInSpeedZone(0xFFFFFFFF)
2145 , timeInCadenceZone(0xFFFFFFFF)
2146 , timeInPowerZone(0xFFFFFFFF)
2147 , repetitionNum(0xFFFF)
2148 , minAltitude(0xFFFF)
2149 , minHeartRate(0xFF)
2150 , activeTime(0xFFFFFFFF)
2153 , avgLeftTorqueEffectiveness(0xFF)
2154 , avgRightTorqueEffectiveness(0xFF)
2155 , avgLeftPedalSmoothness(0xFF)
2156 , avgRightPedalSmoothness(0xFF)
2157 , avgCombinedPedalSmoothness(0xFF)
2159 , avgFractionalCadence(0xFF)
2160 , maxFractionalCadence(0xFF)
2161 , totalFractionalCycles(0xFF)
2162 , frontGearShiftCount(0xFFFF)
2163 , rearGearShiftCount(0xFFFF)
2164 , timeStanding(0xFFFFFFFF)
2165 , standCount(0xFFFF)
2168 , avgLeftPowerPhase(0xFF)
2169 , avgLeftPowerPhasePeak(0xFF)
2170 , avgRightPowerPhase(0xFF)
2171 , avgRightPowerPhasePeak(0xFF)
2172 , avgPowerPosition(0xFFFF)
2173 , maxPowerPosition(0xFFFF)
2174 , avgCadencePosition(0xFF)
2175 , maxCadencePosition(0xFF)
2177 , totalGrit(static_cast<float>(-1))
2178 , totalFlow(static_cast<float>(-1))
2179 , avgGrit(static_cast<float>(-1))
2180 , avgFlow(static_cast<float>(-1))
2181 , totalFractionalAscent(0xFF)
2182 , totalFractionalDescent(0xFF)
2198 const int fieldId,
const QByteArray &data,
const FitBaseType baseType,
const bool bigEndian)
2202 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"segment_lap.messageIndex"))
return false;
2203 this->
messageIndex =
static_cast<MessageIndex>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
2206 if (!
verify(data, baseType, 4, FitBaseType::Uint32,
"segment_lap.timestamp"))
return false;
2207 this->
timestamp =
static_cast<DateTime>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
2210 if (!
verify(data, baseType, 1, FitBaseType::Enum,
"segment_lap.event"))
return false;
2211 this->
event =
static_cast<Event>(data.at(0));
2214 if (!
verify(data, baseType, 1, FitBaseType::Enum,
"segment_lap.eventType"))
return false;
2218 if (!
verify(data, baseType, 4, FitBaseType::Uint32,
"segment_lap.startTime"))
return false;
2219 this->
startTime =
static_cast<DateTime>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
2222 if (!
verify(data, baseType, 4, FitBaseType::Sint32,
"segment_lap.startPositionLat"))
return false;
2223 this->
startPositionLat =
static_cast<qint32
>(bigEndian ? qFromBigEndian< qint32>(data) : qFromLittleEndian< qint32>(data));
2226 if (!
verify(data, baseType, 4, FitBaseType::Sint32,
"segment_lap.startPositionLong"))
return false;
2227 this->
startPositionLong =
static_cast<qint32
>(bigEndian ? qFromBigEndian< qint32>(data) : qFromLittleEndian< qint32>(data));
2230 if (!
verify(data, baseType, 4, FitBaseType::Sint32,
"segment_lap.endPositionLat"))
return false;
2231 this->
endPositionLat =
static_cast<qint32
>(bigEndian ? qFromBigEndian< qint32>(data) : qFromLittleEndian< qint32>(data));
2234 if (!
verify(data, baseType, 4, FitBaseType::Sint32,
"segment_lap.endPositionLong"))
return false;
2235 this->
endPositionLong =
static_cast<qint32
>(bigEndian ? qFromBigEndian< qint32>(data) : qFromLittleEndian< qint32>(data));
2238 if (!
verify(data, baseType, 4, FitBaseType::Uint32,
"segment_lap.totalElapsedTime"))
return false;
2239 this->
totalElapsedTime =
static_cast<quint32
>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
2242 if (!
verify(data, baseType, 4, FitBaseType::Uint32,
"segment_lap.totalTimerTime"))
return false;
2243 this->
totalTimerTime =
static_cast<quint32
>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
2246 if (!
verify(data, baseType, 4, FitBaseType::Uint32,
"segment_lap.totalDistance"))
return false;
2247 this->
totalDistance =
static_cast<quint32
>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
2250 if (!
verify(data, baseType, 4, FitBaseType::Uint32,
"segment_lap.totalCycles"))
return false;
2251 this->
totalCycles =
static_cast<quint32
>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
2254 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"segment_lap.totalCalories"))
return false;
2255 this->
totalCalories =
static_cast<quint16
>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
2258 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"segment_lap.totalFatCalories"))
return false;
2259 this->
totalFatCalories =
static_cast<quint16
>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
2262 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"segment_lap.avgSpeed"))
return false;
2263 this->
avgSpeed =
static_cast<quint16
>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
2266 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"segment_lap.maxSpeed"))
return false;
2267 this->
maxSpeed =
static_cast<quint16
>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
2270 if (!
verify(data, baseType, 1, FitBaseType::Uint8,
"segment_lap.avgHeartRate"))
return false;
2274 if (!
verify(data, baseType, 1, FitBaseType::Uint8,
"segment_lap.maxHeartRate"))
return false;
2278 if (!
verify(data, baseType, 1, FitBaseType::Uint8,
"segment_lap.avgCadence"))
return false;
2279 this->
avgCadence =
static_cast<quint8
>(data.at(0));
2282 if (!
verify(data, baseType, 1, FitBaseType::Uint8,
"segment_lap.maxCadence"))
return false;
2283 this->
maxCadence =
static_cast<quint8
>(data.at(0));
2286 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"segment_lap.avgPower"))
return false;
2287 this->
avgPower =
static_cast<quint16
>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
2290 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"segment_lap.maxPower"))
return false;
2291 this->
maxPower =
static_cast<quint16
>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
2294 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"segment_lap.totalAscent"))
return false;
2295 this->
totalAscent =
static_cast<quint16
>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
2298 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"segment_lap.totalDescent"))
return false;
2299 this->
totalDescent =
static_cast<quint16
>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
2302 if (!
verify(data, baseType, 1, FitBaseType::Enum,
"segment_lap.sport"))
return false;
2303 this->
sport =
static_cast<Sport>(data.at(0));
2306 if (!
verify(data, baseType, 1, FitBaseType::Uint8,
"segment_lap.eventGroup"))
return false;
2307 this->
eventGroup =
static_cast<quint8
>(data.at(0));
2310 if (!
verify(data, baseType, 4, FitBaseType::Sint32,
"segment_lap.necLat"))
return false;
2311 this->
necLat =
static_cast<qint32
>(bigEndian ? qFromBigEndian< qint32>(data) : qFromLittleEndian< qint32>(data));
2314 if (!
verify(data, baseType, 4, FitBaseType::Sint32,
"segment_lap.necLong"))
return false;
2315 this->
necLong =
static_cast<qint32
>(bigEndian ? qFromBigEndian< qint32>(data) : qFromLittleEndian< qint32>(data));
2318 if (!
verify(data, baseType, 4, FitBaseType::Sint32,
"segment_lap.swcLat"))
return false;
2319 this->
swcLat =
static_cast<qint32
>(bigEndian ? qFromBigEndian< qint32>(data) : qFromLittleEndian< qint32>(data));
2322 if (!
verify(data, baseType, 4, FitBaseType::Sint32,
"segment_lap.swcLong"))
return false;
2323 this->
swcLong =
static_cast<qint32
>(bigEndian ? qFromBigEndian< qint32>(data) : qFromLittleEndian< qint32>(data));
2326 if (!
verify(data, baseType, 1, FitBaseType::String,
"segment_lap.name"))
return false;
2327 this->
name = QString::fromUtf8(data);
2330 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"segment_lap.normalizedPower"))
return false;
2331 this->
normalizedPower =
static_cast<quint16
>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
2334 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"segment_lap.leftRightBalance"))
return false;
2338 if (!
verify(data, baseType, 1, FitBaseType::Enum,
"segment_lap.subSport"))
return false;
2342 if (!
verify(data, baseType, 4, FitBaseType::Uint32,
"segment_lap.totalWork"))
return false;
2343 this->
totalWork =
static_cast<quint32
>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
2346 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"segment_lap.avgAltitude"))
return false;
2347 this->
avgAltitude =
static_cast<quint16
>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
2350 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"segment_lap.maxAltitude"))
return false;
2351 this->
maxAltitude =
static_cast<quint16
>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
2354 if (!
verify(data, baseType, 1, FitBaseType::Uint8,
"segment_lap.gpsAccuracy"))
return false;
2355 this->
gpsAccuracy =
static_cast<quint8
>(data.at(0));
2358 if (!
verify(data, baseType, 2, FitBaseType::Sint16,
"segment_lap.avgGrade"))
return false;
2359 this->
avgGrade =
static_cast<qint16
>(bigEndian ? qFromBigEndian< qint16>(data) : qFromLittleEndian< qint16>(data));
2362 if (!
verify(data, baseType, 2, FitBaseType::Sint16,
"segment_lap.avgPosGrade"))
return false;
2363 this->
avgPosGrade =
static_cast<qint16
>(bigEndian ? qFromBigEndian< qint16>(data) : qFromLittleEndian< qint16>(data));
2366 if (!
verify(data, baseType, 2, FitBaseType::Sint16,
"segment_lap.avgNegGrade"))
return false;
2367 this->
avgNegGrade =
static_cast<qint16
>(bigEndian ? qFromBigEndian< qint16>(data) : qFromLittleEndian< qint16>(data));
2370 if (!
verify(data, baseType, 2, FitBaseType::Sint16,
"segment_lap.maxPosGrade"))
return false;
2371 this->
maxPosGrade =
static_cast<qint16
>(bigEndian ? qFromBigEndian< qint16>(data) : qFromLittleEndian< qint16>(data));
2374 if (!
verify(data, baseType, 2, FitBaseType::Sint16,
"segment_lap.maxNegGrade"))
return false;
2375 this->
maxNegGrade =
static_cast<qint16
>(bigEndian ? qFromBigEndian< qint16>(data) : qFromLittleEndian< qint16>(data));
2378 if (!
verify(data, baseType, 1, FitBaseType::Sint8,
"segment_lap.avgTemperature"))
return false;
2382 if (!
verify(data, baseType, 1, FitBaseType::Sint8,
"segment_lap.maxTemperature"))
return false;
2386 if (!
verify(data, baseType, 4, FitBaseType::Uint32,
"segment_lap.totalMovingTime"))
return false;
2387 this->
totalMovingTime =
static_cast<quint32
>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
2390 if (!
verify(data, baseType, 2, FitBaseType::Sint16,
"segment_lap.avgPosVerticalSpeed"))
return false;
2391 this->
avgPosVerticalSpeed =
static_cast<qint16
>(bigEndian ? qFromBigEndian< qint16>(data) : qFromLittleEndian< qint16>(data));
2394 if (!
verify(data, baseType, 2, FitBaseType::Sint16,
"segment_lap.avgNegVerticalSpeed"))
return false;
2395 this->
avgNegVerticalSpeed =
static_cast<qint16
>(bigEndian ? qFromBigEndian< qint16>(data) : qFromLittleEndian< qint16>(data));
2398 if (!
verify(data, baseType, 2, FitBaseType::Sint16,
"segment_lap.maxPosVerticalSpeed"))
return false;
2399 this->
maxPosVerticalSpeed =
static_cast<qint16
>(bigEndian ? qFromBigEndian< qint16>(data) : qFromLittleEndian< qint16>(data));
2402 if (!
verify(data, baseType, 2, FitBaseType::Sint16,
"segment_lap.maxNegVerticalSpeed"))
return false;
2403 this->
maxNegVerticalSpeed =
static_cast<qint16
>(bigEndian ? qFromBigEndian< qint16>(data) : qFromLittleEndian< qint16>(data));
2406 if (!
verify(data, baseType, 4, FitBaseType::Uint32,
"segment_lap.timeInHrZone"))
return false;
2407 this->
timeInHrZone =
static_cast<quint32
>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
2410 if (!
verify(data, baseType, 4, FitBaseType::Uint32,
"segment_lap.timeInSpeedZone"))
return false;
2411 this->
timeInSpeedZone =
static_cast<quint32
>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
2414 if (!
verify(data, baseType, 4, FitBaseType::Uint32,
"segment_lap.timeInCadenceZone"))
return false;
2415 this->
timeInCadenceZone =
static_cast<quint32
>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
2418 if (!
verify(data, baseType, 4, FitBaseType::Uint32,
"segment_lap.timeInPowerZone"))
return false;
2419 this->
timeInPowerZone =
static_cast<quint32
>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
2422 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"segment_lap.repetitionNum"))
return false;
2423 this->
repetitionNum =
static_cast<quint16
>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
2426 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"segment_lap.minAltitude"))
return false;
2427 this->
minAltitude =
static_cast<quint16
>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
2430 if (!
verify(data, baseType, 1, FitBaseType::Uint8,
"segment_lap.minHeartRate"))
return false;
2434 if (!
verify(data, baseType, 4, FitBaseType::Uint32,
"segment_lap.activeTime"))
return false;
2435 this->
activeTime =
static_cast<quint32
>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
2438 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"segment_lap.wktStepIndex"))
return false;
2439 this->
wktStepIndex =
static_cast<MessageIndex>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
2442 if (!
verify(data, baseType, 1, FitBaseType::Enum,
"segment_lap.sportEvent"))
return false;
2446 if (!
verify(data, baseType, 1, FitBaseType::Uint8,
"segment_lap.avgLeftTorqueEffectiveness"))
return false;
2450 if (!
verify(data, baseType, 1, FitBaseType::Uint8,
"segment_lap.avgRightTorqueEffectiveness"))
return false;
2454 if (!
verify(data, baseType, 1, FitBaseType::Uint8,
"segment_lap.avgLeftPedalSmoothness"))
return false;
2458 if (!
verify(data, baseType, 1, FitBaseType::Uint8,
"segment_lap.avgRightPedalSmoothness"))
return false;
2462 if (!
verify(data, baseType, 1, FitBaseType::Uint8,
"segment_lap.avgCombinedPedalSmoothness"))
return false;
2466 if (!
verify(data, baseType, 1, FitBaseType::Enum,
"segment_lap.status"))
return false;
2470 if (!
verify(data, baseType, 1, FitBaseType::String,
"segment_lap.uuid"))
return false;
2471 this->
uuid = QString::fromUtf8(data);
2474 if (!
verify(data, baseType, 1, FitBaseType::Uint8,
"segment_lap.avgFractionalCadence"))
return false;
2478 if (!
verify(data, baseType, 1, FitBaseType::Uint8,
"segment_lap.maxFractionalCadence"))
return false;
2482 if (!
verify(data, baseType, 1, FitBaseType::Uint8,
"segment_lap.totalFractionalCycles"))
return false;
2486 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"segment_lap.frontGearShiftCount"))
return false;
2487 this->
frontGearShiftCount =
static_cast<quint16
>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
2490 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"segment_lap.rearGearShiftCount"))
return false;
2491 this->
rearGearShiftCount =
static_cast<quint16
>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
2494 if (!
verify(data, baseType, 4, FitBaseType::Uint32,
"segment_lap.timeStanding"))
return false;
2495 this->
timeStanding =
static_cast<quint32
>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
2498 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"segment_lap.standCount"))
return false;
2499 this->
standCount =
static_cast<quint16
>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
2502 if (!
verify(data, baseType, 1, FitBaseType::Sint8,
"segment_lap.avgLeftPco"))
return false;
2503 this->
avgLeftPco =
static_cast<qint8
>(data.at(0));
2506 if (!
verify(data, baseType, 1, FitBaseType::Sint8,
"segment_lap.avgRightPco"))
return false;
2507 this->
avgRightPco =
static_cast<qint8
>(data.at(0));
2510 if (!
verify(data, baseType, 1, FitBaseType::Uint8,
"segment_lap.avgLeftPowerPhase"))
return false;
2514 if (!
verify(data, baseType, 1, FitBaseType::Uint8,
"segment_lap.avgLeftPowerPhasePeak"))
return false;
2518 if (!
verify(data, baseType, 1, FitBaseType::Uint8,
"segment_lap.avgRightPowerPhase"))
return false;
2522 if (!
verify(data, baseType, 1, FitBaseType::Uint8,
"segment_lap.avgRightPowerPhasePeak"))
return false;
2526 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"segment_lap.avgPowerPosition"))
return false;
2527 this->
avgPowerPosition =
static_cast<quint16
>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
2530 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"segment_lap.maxPowerPosition"))
return false;
2531 this->
maxPowerPosition =
static_cast<quint16
>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
2534 if (!
verify(data, baseType, 1, FitBaseType::Uint8,
"segment_lap.avgCadencePosition"))
return false;
2538 if (!
verify(data, baseType, 1, FitBaseType::Uint8,
"segment_lap.maxCadencePosition"))
return false;
2542 if (!
verify(data, baseType, 2, FitBaseType::Uint16,
"segment_lap.manufacturer"))
return false;
2543 this->
manufacturer =
static_cast<Manufacturer>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
2546 if (!
verify(data, baseType, 4, FitBaseType::Float32,
"segment_lap.totalGrit"))
return false;
2547 #if QT_VERSION < QT_VERSION_CHECK(5, 12, 0)
2549 const quint32 localEndian = bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data);
2550 static_assert(
sizeof(localEndian) == 4,
"src not expected size");
2551 static_assert(
sizeof(this->
totalGrit) == 4,
"src and dst not the same size");
2552 memcpy(&this->
totalGrit, &localEndian, data.size());
2555 this->
totalGrit =
static_cast<float>(bigEndian ? qFromBigEndian<float>(data) : qFromLittleEndian<float>(data));
2559 if (!
verify(data, baseType, 4, FitBaseType::Float32,
"segment_lap.totalFlow"))
return false;
2560 #if QT_VERSION < QT_VERSION_CHECK(5, 12, 0)
2562 const quint32 localEndian = bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data);
2563 static_assert(
sizeof(localEndian) == 4,
"src not expected size");
2564 static_assert(
sizeof(this->
totalFlow) == 4,
"src and dst not the same size");
2565 memcpy(&this->
totalFlow, &localEndian, data.size());
2568 this->
totalFlow =
static_cast<float>(bigEndian ? qFromBigEndian<float>(data) : qFromLittleEndian<float>(data));
2572 if (!
verify(data, baseType, 4, FitBaseType::Float32,
"segment_lap.avgGrit"))
return false;
2573 #if QT_VERSION < QT_VERSION_CHECK(5, 12, 0)
2575 const quint32 localEndian = bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data);
2576 static_assert(
sizeof(localEndian) == 4,
"src not expected size");
2577 static_assert(
sizeof(this->
avgGrit) == 4,
"src and dst not the same size");
2578 memcpy(&this->
avgGrit, &localEndian, data.size());
2581 this->
avgGrit =
static_cast<float>(bigEndian ? qFromBigEndian<float>(data) : qFromLittleEndian<float>(data));
2585 if (!
verify(data, baseType, 4, FitBaseType::Float32,
"segment_lap.avgFlow"))
return false;
2586 #if QT_VERSION < QT_VERSION_CHECK(5, 12, 0)
2588 const quint32 localEndian = bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data);
2589 static_assert(
sizeof(localEndian) == 4,
"src not expected size");
2590 static_assert(
sizeof(this->
avgFlow) == 4,
"src and dst not the same size");
2591 memcpy(&this->
avgFlow, &localEndian, data.size());
2594 this->
avgFlow =
static_cast<float>(bigEndian ? qFromBigEndian<float>(data) : qFromLittleEndian<float>(data));
2598 if (!
verify(data, baseType, 1, FitBaseType::Uint8,
"segment_lap.totalFractionalAscent"))
return false;
2602 if (!
verify(data, baseType, 1, FitBaseType::Uint8,
"segment_lap.totalFractionalDescent"))
return false;
2606 qWarning() <<
"ignoring unknown segment_lap message field number" << fieldId << bigEndian;
#define QTFIT_END_NAMESPACE
Macro for ending the QtFit library's top-most namespace (if one is defined).
#define QTFIT_BEGIN_NAMESPACE
Macro for starting the QtFit library's top-most namespace (if one is defined).
MesgNum globalMessageNumber
FIT Globla Message Number for this FIT Data Message.
bool verify(const QByteArray &data, const FitBaseType actualType, const int expectedSize, const FitBaseType expectedType, const char *messageFieldName)
The AbstractDataMessage class is the polymorphic base class for all FIT Data Message classes.
quint8 minHeartRate
The SegmentLapMessage FIT message's minHeartRate field.
quint32 totalWork
The SegmentLapMessage FIT message's totalWork field.
MessageIndex messageIndex
The SegmentLapMessage FIT message's messageIndex field.
qint8 avgLeftPco
The SegmentLapMessage FIT message's avgLeftPco field.
quint16 avgPower
The SegmentLapMessage FIT message's avgPower field.
quint32 timeInCadenceZone
The SegmentLapMessage FIT message's timeInCadenceZone field.
DateTime timestamp
The SegmentLapMessage FIT message's timestamp field.
quint8 avgCombinedPedalSmoothness
The SegmentLapMessage FIT message's avgCombinedPedalSmoothness field.
EventType eventType
The SegmentLapMessage FIT message's eventType field.
qint8 avgTemperature
The SegmentLapMessage FIT message's avgTemperature field.
quint8 avgLeftTorqueEffectiveness
The SegmentLapMessage FIT message's avgLeftTorqueEffectiveness field.
qint16 maxNegVerticalSpeed
The SegmentLapMessage FIT message's maxNegVerticalSpeed field.
quint32 activeTime
The SegmentLapMessage FIT message's activeTime field.
quint16 avgAltitude
The SegmentLapMessage FIT message's avgAltitude field.
qint16 maxPosVerticalSpeed
The SegmentLapMessage FIT message's maxPosVerticalSpeed field.
quint16 rearGearShiftCount
The SegmentLapMessage FIT message's rearGearShiftCount field.
quint8 avgCadencePosition
The SegmentLapMessage FIT message's avgCadencePosition field.
qint32 swcLong
The SegmentLapMessage FIT message's swcLong field.
quint8 avgCadence
The SegmentLapMessage FIT message's avgCadence field.
quint16 totalDescent
The SegmentLapMessage FIT message's totalDescent field.
quint8 avgRightPowerPhasePeak
The SegmentLapMessage FIT message's avgRightPowerPhasePeak field.
quint8 avgRightPedalSmoothness
The SegmentLapMessage FIT message's avgRightPedalSmoothness field.
qint8 maxTemperature
The SegmentLapMessage FIT message's maxTemperature field.
qint16 avgNegGrade
The SegmentLapMessage FIT message's avgNegGrade field.
quint16 normalizedPower
The SegmentLapMessage FIT message's normalizedPower field.
quint32 totalTimerTime
The SegmentLapMessage FIT message's totalTimerTime field.
quint16 standCount
The SegmentLapMessage FIT message's standCount field.
qint8 avgRightPco
The SegmentLapMessage FIT message's avgRightPco field.
float avgFlow
The SegmentLapMessage FIT message's avgFlow field.
qint32 swcLat
The SegmentLapMessage FIT message's swcLat field.
quint16 avgPowerPosition
The SegmentLapMessage FIT message's avgPowerPosition field.
bool setField(const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian) override
virtual ~SegmentLapMessagePrivate()
SportEvent sportEvent
The SegmentLapMessage FIT message's sportEvent field.
quint8 avgLeftPedalSmoothness
The SegmentLapMessage FIT message's avgLeftPedalSmoothness field.
quint16 avgSpeed
The SegmentLapMessage FIT message's avgSpeed field.
quint16 minAltitude
The SegmentLapMessage FIT message's minAltitude field.
quint16 totalFatCalories
The SegmentLapMessage FIT message's totalFatCalories field.
quint16 maxAltitude
The SegmentLapMessage FIT message's maxAltitude field.
qint32 necLat
The SegmentLapMessage FIT message's necLat field.
quint8 totalFractionalAscent
The SegmentLapMessage FIT message's totalFractionalAscent field.
qint32 endPositionLong
The SegmentLapMessage FIT message's endPositionLong field.
quint32 timeInPowerZone
The SegmentLapMessage FIT message's timeInPowerZone field.
DateTime startTime
The SegmentLapMessage FIT message's startTime field.
Sport sport
The SegmentLapMessage FIT message's sport field.
qint16 avgPosGrade
The SegmentLapMessage FIT message's avgPosGrade field.
quint16 maxPower
The SegmentLapMessage FIT message's maxPower field.
quint16 maxPowerPosition
The SegmentLapMessage FIT message's maxPowerPosition field.
qint16 avgPosVerticalSpeed
The SegmentLapMessage FIT message's avgPosVerticalSpeed field.
quint16 repetitionNum
The SegmentLapMessage FIT message's repetitionNum field.
LeftRightBalance100 leftRightBalance
The SegmentLapMessage FIT message's leftRightBalance field.
quint16 totalAscent
The SegmentLapMessage FIT message's totalAscent field.
Manufacturer manufacturer
The SegmentLapMessage FIT message's manufacturer field.
quint32 totalDistance
The SegmentLapMessage FIT message's totalDistance field.
quint32 totalMovingTime
The SegmentLapMessage FIT message's totalMovingTime field.
MessageIndex wktStepIndex
The SegmentLapMessage FIT message's wktStepIndex field.
qint16 avgNegVerticalSpeed
The SegmentLapMessage FIT message's avgNegVerticalSpeed field.
quint8 maxCadencePosition
The SegmentLapMessage FIT message's maxCadencePosition field.
quint32 totalElapsedTime
The SegmentLapMessage FIT message's totalElapsedTime field.
QString name
The SegmentLapMessage FIT message's name field.
quint8 avgRightTorqueEffectiveness
The SegmentLapMessage FIT message's avgRightTorqueEffectiveness field.
quint8 avgHeartRate
The SegmentLapMessage FIT message's avgHeartRate field.
float totalGrit
The SegmentLapMessage FIT message's totalGrit field.
qint32 startPositionLat
The SegmentLapMessage FIT message's startPositionLat field.
quint16 frontGearShiftCount
The SegmentLapMessage FIT message's frontGearShiftCount field.
qint16 maxNegGrade
The SegmentLapMessage FIT message's maxNegGrade field.
quint8 avgFractionalCadence
The SegmentLapMessage FIT message's avgFractionalCadence field.
quint8 maxFractionalCadence
The SegmentLapMessage FIT message's maxFractionalCadence field.
quint8 avgLeftPowerPhase
The SegmentLapMessage FIT message's avgLeftPowerPhase field.
qint16 avgGrade
The SegmentLapMessage FIT message's avgGrade field.
qint32 necLong
The SegmentLapMessage FIT message's necLong field.
float totalFlow
The SegmentLapMessage FIT message's totalFlow field.
quint32 timeInSpeedZone
The SegmentLapMessage FIT message's timeInSpeedZone field.
quint32 timeStanding
The SegmentLapMessage FIT message's timeStanding field.
quint16 maxSpeed
The SegmentLapMessage FIT message's maxSpeed field.
quint8 maxHeartRate
The SegmentLapMessage FIT message's maxHeartRate field.
quint8 totalFractionalCycles
The SegmentLapMessage FIT message's totalFractionalCycles field.
quint8 avgRightPowerPhase
The SegmentLapMessage FIT message's avgRightPowerPhase field.
quint32 timeInHrZone
The SegmentLapMessage FIT message's timeInHrZone field.
SegmentLapStatus status
The SegmentLapMessage FIT message's status field.
quint32 totalCycles
The SegmentLapMessage FIT message's totalCycles field.
SubSport subSport
The SegmentLapMessage FIT message's subSport field.
quint8 avgLeftPowerPhasePeak
The SegmentLapMessage FIT message's avgLeftPowerPhasePeak field.
quint8 maxCadence
The SegmentLapMessage FIT message's maxCadence field.
quint8 gpsAccuracy
The SegmentLapMessage FIT message's gpsAccuracy field.
quint8 eventGroup
The SegmentLapMessage FIT message's eventGroup field.
QString uuid
The SegmentLapMessage FIT message's uuid field.
qint32 endPositionLat
The SegmentLapMessage FIT message's endPositionLat field.
qint32 startPositionLong
The SegmentLapMessage FIT message's startPositionLong field.
qint16 maxPosGrade
The SegmentLapMessage FIT message's maxPosGrade field.
float avgGrit
The SegmentLapMessage FIT message's avgGrit field.
quint16 totalCalories
The SegmentLapMessage FIT message's totalCalories field.
quint8 totalFractionalDescent
The SegmentLapMessage FIT message's totalFractionalDescent field.
The SegmentLapMessage class represents a FIT SegmentLapMessage data message.
quint16 totalDescent() const
Returns the SegmentLapMessage data message's totalDescent field's current value.
void setTimeInSpeedZone(const quint32 timeInSpeedZone)
Sets the timeInSpeedZone field to timeInSpeedZone.
quint8 avgCadence() const
Returns the SegmentLapMessage data message's avgCadence field's current value.
quint32 timeInHrZone() const
Returns the SegmentLapMessage data message's timeInHrZone field's current value.
DateTime startTime() const
Returns the SegmentLapMessage data message's startTime field's current value.
Event event() const
Returns the SegmentLapMessage data message's event field's current value.
void setEndPositionLong(const qint32 endPositionLong)
Sets the endPositionLong field to endPositionLong.
quint8 avgRightPedalSmoothness() const
Returns the SegmentLapMessage data message's avgRightPedalSmoothness field's current value.
quint8 avgLeftTorqueEffectiveness() const
Returns the SegmentLapMessage data message's avgLeftTorqueEffectiveness field's current value.
void setStandCount(const quint16 standCount)
Sets the standCount field to standCount.
void setTotalFlow(const float totalFlow)
Sets the totalFlow field to totalFlow.
void setAvgPosGrade(const qint16 avgPosGrade)
Sets the avgPosGrade field to avgPosGrade.
quint8 totalFractionalDescent() const
Returns the SegmentLapMessage data message's totalFractionalDescent field's current value.
void setAvgRightPowerPhasePeak(const quint8 avgRightPowerPhasePeak)
Sets the avgRightPowerPhasePeak field to avgRightPowerPhasePeak.
qint16 maxPosGrade() const
Returns the SegmentLapMessage data message's maxPosGrade field's current value.
DateTime timestamp() const
Returns the SegmentLapMessage data message's timestamp field's current value.
quint32 timeInPowerZone() const
Returns the SegmentLapMessage data message's timeInPowerZone field's current value.
qint16 avgPosGrade() const
Returns the SegmentLapMessage data message's avgPosGrade field's current value.
qint16 maxPosVerticalSpeed() const
Returns the SegmentLapMessage data message's maxPosVerticalSpeed field's current value.
void setNecLong(const qint32 necLong)
Sets the necLong field to necLong.
void setTotalFractionalCycles(const quint8 totalFractionalCycles)
Sets the totalFractionalCycles field to totalFractionalCycles.
quint8 maxCadence() const
Returns the SegmentLapMessage data message's maxCadence field's current value.
void setMessageIndex(const MessageIndex messageIndex)
Sets the messageIndex field to messageIndex.
void setSubSport(const SubSport subSport)
Sets the subSport field to subSport.
void setMaxTemperature(const qint8 maxTemperature)
Sets the maxTemperature field to maxTemperature.
void setSportEvent(const SportEvent sportEvent)
Sets the sportEvent field to sportEvent.
quint16 normalizedPower() const
Returns the SegmentLapMessage data message's normalizedPower field's current value.
quint16 totalFatCalories() const
Returns the SegmentLapMessage data message's totalFatCalories field's current value.
void setTotalDistance(const quint32 totalDistance)
Sets the totalDistance field to totalDistance.
void setAvgRightPowerPhase(const quint8 avgRightPowerPhase)
Sets the avgRightPowerPhase field to avgRightPowerPhase.
void setTimeStanding(const quint32 timeStanding)
Sets the timeStanding field to timeStanding.
void setAvgRightPedalSmoothness(const quint8 avgRightPedalSmoothness)
Sets the avgRightPedalSmoothness field to avgRightPedalSmoothness.
SegmentLapMessage()
Constructs a SegmentLapMessage object.
quint8 avgRightPowerPhase() const
Returns the SegmentLapMessage data message's avgRightPowerPhase field's current value.
quint16 minAltitude() const
Returns the SegmentLapMessage data message's minAltitude field's current value.
void setAvgNegVerticalSpeed(const qint16 avgNegVerticalSpeed)
Sets the avgNegVerticalSpeed field to avgNegVerticalSpeed.
void setUuid(const QString uuid)
Sets the uuid field to uuid.
void setTotalCycles(const quint32 totalCycles)
Sets the totalCycles field to totalCycles.
qint32 swcLong() const
Returns the SegmentLapMessage data message's swcLong field's current value.
void setStartPositionLong(const qint32 startPositionLong)
Sets the startPositionLong field to startPositionLong.
void setEndPositionLat(const qint32 endPositionLat)
Sets the endPositionLat field to endPositionLat.
void setAvgLeftPedalSmoothness(const quint8 avgLeftPedalSmoothness)
Sets the avgLeftPedalSmoothness field to avgLeftPedalSmoothness.
void setTotalFractionalAscent(const quint8 totalFractionalAscent)
Sets the totalFractionalAscent field to totalFractionalAscent.
quint8 maxCadencePosition() const
Returns the SegmentLapMessage data message's maxCadencePosition field's current value.
qint16 avgNegGrade() const
Returns the SegmentLapMessage data message's avgNegGrade field's current value.
quint32 activeTime() const
Returns the SegmentLapMessage data message's activeTime field's current value.
QString name() const
Returns the SegmentLapMessage data message's name field's current value.
quint16 avgPowerPosition() const
Returns the SegmentLapMessage data message's avgPowerPosition field's current value.
void setName(const QString name)
Sets the name field to name.
void setMaxCadencePosition(const quint8 maxCadencePosition)
Sets the maxCadencePosition field to maxCadencePosition.
void setStartPositionLat(const qint32 startPositionLat)
Sets the startPositionLat field to startPositionLat.
void setAvgPosVerticalSpeed(const qint16 avgPosVerticalSpeed)
Sets the avgPosVerticalSpeed field to avgPosVerticalSpeed.
void setTotalFractionalDescent(const quint8 totalFractionalDescent)
Sets the totalFractionalDescent field to totalFractionalDescent.
qint32 necLat() const
Returns the SegmentLapMessage data message's necLat field's current value.
quint16 avgAltitude() const
Returns the SegmentLapMessage data message's avgAltitude field's current value.
void setEventType(const EventType eventType)
Sets the eventType field to eventType.
quint8 totalFractionalCycles() const
Returns the SegmentLapMessage data message's totalFractionalCycles field's current value.
void setMaxAltitude(const quint16 maxAltitude)
Sets the maxAltitude field to maxAltitude.
void setAvgTemperature(const qint8 avgTemperature)
Sets the avgTemperature field to avgTemperature.
void setNormalizedPower(const quint16 normalizedPower)
Sets the normalizedPower field to normalizedPower.
quint16 avgSpeed() const
Returns the SegmentLapMessage data message's avgSpeed field's current value.
float totalFlow() const
Returns the SegmentLapMessage data message's totalFlow field's current value.
quint32 totalElapsedTime() const
Returns the SegmentLapMessage data message's totalElapsedTime field's current value.
MessageIndex messageIndex() const
Returns the SegmentLapMessage data message's messageIndex field's current value.
void setTotalAscent(const quint16 totalAscent)
Sets the totalAscent field to totalAscent.
qint16 maxNegVerticalSpeed() const
Returns the SegmentLapMessage data message's maxNegVerticalSpeed field's current value.
quint16 maxPowerPosition() const
Returns the SegmentLapMessage data message's maxPowerPosition field's current value.
void setMaxPower(const quint16 maxPower)
Sets the maxPower field to maxPower.
void setAvgLeftTorqueEffectiveness(const quint8 avgLeftTorqueEffectiveness)
Sets the avgLeftTorqueEffectiveness field to avgLeftTorqueEffectiveness.
quint8 avgFractionalCadence() const
Returns the SegmentLapMessage data message's avgFractionalCadence field's current value.
void setAvgLeftPowerPhase(const quint8 avgLeftPowerPhase)
Sets the avgLeftPowerPhase field to avgLeftPowerPhase.
qint32 swcLat() const
Returns the SegmentLapMessage data message's swcLat field's current value.
void setStatus(const SegmentLapStatus status)
Sets the status field to status.
void setAvgHeartRate(const quint8 avgHeartRate)
Sets the avgHeartRate field to avgHeartRate.
qint32 necLong() const
Returns the SegmentLapMessage data message's necLong field's current value.
void setAvgLeftPco(const qint8 avgLeftPco)
Sets the avgLeftPco field to avgLeftPco.
void setTotalWork(const quint32 totalWork)
Sets the totalWork field to totalWork.
void setTimeInPowerZone(const quint32 timeInPowerZone)
Sets the timeInPowerZone field to timeInPowerZone.
void setLeftRightBalance(const LeftRightBalance100 leftRightBalance)
Sets the leftRightBalance field to leftRightBalance.
quint8 maxHeartRate() const
Returns the SegmentLapMessage data message's maxHeartRate field's current value.
void setAvgCadencePosition(const quint8 avgCadencePosition)
Sets the avgCadencePosition field to avgCadencePosition.
qint8 avgRightPco() const
Returns the SegmentLapMessage data message's avgRightPco field's current value.
void setAvgAltitude(const quint16 avgAltitude)
Sets the avgAltitude field to avgAltitude.
void setTotalFatCalories(const quint16 totalFatCalories)
Sets the totalFatCalories field to totalFatCalories.
quint8 avgLeftPowerPhase() const
Returns the SegmentLapMessage data message's avgLeftPowerPhase field's current value.
void setMaxHeartRate(const quint8 maxHeartRate)
Sets the maxHeartRate field to maxHeartRate.
quint8 maxFractionalCadence() const
Returns the SegmentLapMessage data message's maxFractionalCadence field's current value.
quint16 rearGearShiftCount() const
Returns the SegmentLapMessage data message's rearGearShiftCount field's current value.
void setAvgSpeed(const quint16 avgSpeed)
Sets the avgSpeed field to avgSpeed.
void setTimestamp(const DateTime timestamp)
Sets the timestamp field to timestamp.
Sport sport() const
Returns the SegmentLapMessage data message's sport field's current value.
qint16 maxNegGrade() const
Returns the SegmentLapMessage data message's maxNegGrade field's current value.
void setAvgRightPco(const qint8 avgRightPco)
Sets the avgRightPco field to avgRightPco.
void setSwcLat(const qint32 swcLat)
Sets the swcLat field to swcLat.
void setNecLat(const qint32 necLat)
Sets the necLat field to necLat.
qint32 startPositionLong() const
Returns the SegmentLapMessage data message's startPositionLong field's current value.
float avgGrit() const
Returns the SegmentLapMessage data message's avgGrit field's current value.
quint8 avgRightPowerPhasePeak() const
Returns the SegmentLapMessage data message's avgRightPowerPhasePeak field's current value.
EventType eventType() const
Returns the SegmentLapMessage data message's eventType field's current value.
quint16 avgPower() const
Returns the SegmentLapMessage data message's avgPower field's current value.
void setAvgRightTorqueEffectiveness(const quint8 avgRightTorqueEffectiveness)
Sets the avgRightTorqueEffectiveness field to avgRightTorqueEffectiveness.
void setAvgPower(const quint16 avgPower)
Sets the avgPower field to avgPower.
qint8 avgLeftPco() const
Returns the SegmentLapMessage data message's avgLeftPco field's current value.
void setMaxSpeed(const quint16 maxSpeed)
Sets the maxSpeed field to maxSpeed.
void setMaxFractionalCadence(const quint8 maxFractionalCadence)
Sets the maxFractionalCadence field to maxFractionalCadence.
LeftRightBalance100 leftRightBalance() const
Returns the SegmentLapMessage data message's leftRightBalance field's current value.
void setEventGroup(const quint8 eventGroup)
Sets the eventGroup field to eventGroup.
quint8 avgCombinedPedalSmoothness() const
Returns the SegmentLapMessage data message's avgCombinedPedalSmoothness field's current value.
quint32 timeStanding() const
Returns the SegmentLapMessage data message's timeStanding field's current value.
quint8 minHeartRate() const
Returns the SegmentLapMessage data message's minHeartRate field's current value.
void setAvgGrade(const qint16 avgGrade)
Sets the avgGrade field to avgGrade.
qint16 avgGrade() const
Returns the SegmentLapMessage data message's avgGrade field's current value.
void setMinHeartRate(const quint8 minHeartRate)
Sets the minHeartRate field to minHeartRate.
quint16 totalAscent() const
Returns the SegmentLapMessage data message's totalAscent field's current value.
void setFrontGearShiftCount(const quint16 frontGearShiftCount)
Sets the frontGearShiftCount field to frontGearShiftCount.
quint16 repetitionNum() const
Returns the SegmentLapMessage data message's repetitionNum field's current value.
void setMaxCadence(const quint8 maxCadence)
Sets the maxCadence field to maxCadence.
void setTotalGrit(const float totalGrit)
Sets the totalGrit field to totalGrit.
void setWktStepIndex(const MessageIndex wktStepIndex)
Sets the wktStepIndex field to wktStepIndex.
quint32 timeInSpeedZone() const
Returns the SegmentLapMessage data message's timeInSpeedZone field's current value.
quint8 avgHeartRate() const
Returns the SegmentLapMessage data message's avgHeartRate field's current value.
qint32 startPositionLat() const
Returns the SegmentLapMessage data message's startPositionLat field's current value.
quint8 avgCadencePosition() const
Returns the SegmentLapMessage data message's avgCadencePosition field's current value.
quint8 avgLeftPowerPhasePeak() const
Returns the SegmentLapMessage data message's avgLeftPowerPhasePeak field's current value.
quint8 totalFractionalAscent() const
Returns the SegmentLapMessage data message's totalFractionalAscent field's current value.
quint8 avgLeftPedalSmoothness() const
Returns the SegmentLapMessage data message's avgLeftPedalSmoothness field's current value.
void setAvgFractionalCadence(const quint8 avgFractionalCadence)
Sets the avgFractionalCadence field to avgFractionalCadence.
qint16 avgNegVerticalSpeed() const
Returns the SegmentLapMessage data message's avgNegVerticalSpeed field's current value.
quint8 gpsAccuracy() const
Returns the SegmentLapMessage data message's gpsAccuracy field's current value.
void setAvgFlow(const float avgFlow)
Sets the avgFlow field to avgFlow.
void setManufacturer(const Manufacturer manufacturer)
Sets the manufacturer field to manufacturer.
void setMaxPowerPosition(const quint16 maxPowerPosition)
Sets the maxPowerPosition field to maxPowerPosition.
SegmentLapStatus status() const
Returns the SegmentLapMessage data message's status field's current value.
Manufacturer manufacturer() const
Returns the SegmentLapMessage data message's manufacturer field's current value.
void setEvent(const Event event)
Sets the event field to event.
quint32 totalWork() const
Returns the SegmentLapMessage data message's totalWork field's current value.
quint16 standCount() const
Returns the SegmentLapMessage data message's standCount field's current value.
quint32 totalTimerTime() const
Returns the SegmentLapMessage data message's totalTimerTime field's current value.
void setTotalDescent(const quint16 totalDescent)
Sets the totalDescent field to totalDescent.
float avgFlow() const
Returns the SegmentLapMessage data message's avgFlow field's current value.
void setStartTime(const DateTime startTime)
Sets the startTime field to startTime.
void setAvgNegGrade(const qint16 avgNegGrade)
Sets the avgNegGrade field to avgNegGrade.
void setTimeInCadenceZone(const quint32 timeInCadenceZone)
Sets the timeInCadenceZone field to timeInCadenceZone.
void setMaxPosVerticalSpeed(const qint16 maxPosVerticalSpeed)
Sets the maxPosVerticalSpeed field to maxPosVerticalSpeed.
qint8 avgTemperature() const
Returns the SegmentLapMessage data message's avgTemperature field's current value.
void setMaxPosGrade(const qint16 maxPosGrade)
Sets the maxPosGrade field to maxPosGrade.
SubSport subSport() const
Returns the SegmentLapMessage data message's subSport field's current value.
qint8 maxTemperature() const
Returns the SegmentLapMessage data message's maxTemperature field's current value.
void setAvgPowerPosition(const quint16 avgPowerPosition)
Sets the avgPowerPosition field to avgPowerPosition.
void setTotalCalories(const quint16 totalCalories)
Sets the totalCalories field to totalCalories.
void setSwcLong(const qint32 swcLong)
Sets the swcLong field to swcLong.
void setGpsAccuracy(const quint8 gpsAccuracy)
Sets the gpsAccuracy field to gpsAccuracy.
quint8 eventGroup() const
Returns the SegmentLapMessage data message's eventGroup field's current value.
QString uuid() const
Returns the SegmentLapMessage data message's uuid field's current value.
void setRepetitionNum(const quint16 repetitionNum)
Sets the repetitionNum field to repetitionNum.
quint16 maxSpeed() const
Returns the SegmentLapMessage data message's maxSpeed field's current value.
void setAvgGrit(const float avgGrit)
Sets the avgGrit field to avgGrit.
quint32 totalCycles() const
Returns the SegmentLapMessage data message's totalCycles field's current value.
void setAvgCombinedPedalSmoothness(const quint8 avgCombinedPedalSmoothness)
Sets the avgCombinedPedalSmoothness field to avgCombinedPedalSmoothness.
void setSport(const Sport sport)
Sets the sport field to sport.
void setTotalMovingTime(const quint32 totalMovingTime)
Sets the totalMovingTime field to totalMovingTime.
void setTotalElapsedTime(const quint32 totalElapsedTime)
Sets the totalElapsedTime field to totalElapsedTime.
quint32 totalMovingTime() const
Returns the SegmentLapMessage data message's totalMovingTime field's current value.
void setMinAltitude(const quint16 minAltitude)
Sets the minAltitude field to minAltitude.
quint8 avgRightTorqueEffectiveness() const
Returns the SegmentLapMessage data message's avgRightTorqueEffectiveness field's current value.
SportEvent sportEvent() const
Returns the SegmentLapMessage data message's sportEvent field's current value.
void setAvgLeftPowerPhasePeak(const quint8 avgLeftPowerPhasePeak)
Sets the avgLeftPowerPhasePeak field to avgLeftPowerPhasePeak.
void setMaxNegGrade(const qint16 maxNegGrade)
Sets the maxNegGrade field to maxNegGrade.
void setTimeInHrZone(const quint32 timeInHrZone)
Sets the timeInHrZone field to timeInHrZone.
quint16 frontGearShiftCount() const
Returns the SegmentLapMessage data message's frontGearShiftCount field's current value.
qint16 avgPosVerticalSpeed() const
Returns the SegmentLapMessage data message's avgPosVerticalSpeed field's current value.
qint32 endPositionLat() const
Returns the SegmentLapMessage data message's endPositionLat field's current value.
quint32 totalDistance() const
Returns the SegmentLapMessage data message's totalDistance field's current value.
float totalGrit() const
Returns the SegmentLapMessage data message's totalGrit field's current value.
void setActiveTime(const quint32 activeTime)
Sets the activeTime field to activeTime.
quint16 maxPower() const
Returns the SegmentLapMessage data message's maxPower field's current value.
quint16 totalCalories() const
Returns the SegmentLapMessage data message's totalCalories field's current value.
void setTotalTimerTime(const quint32 totalTimerTime)
Sets the totalTimerTime field to totalTimerTime.
void setRearGearShiftCount(const quint16 rearGearShiftCount)
Sets the rearGearShiftCount field to rearGearShiftCount.
quint16 maxAltitude() const
Returns the SegmentLapMessage data message's maxAltitude field's current value.
void setMaxNegVerticalSpeed(const qint16 maxNegVerticalSpeed)
Sets the maxNegVerticalSpeed field to maxNegVerticalSpeed.
quint32 timeInCadenceZone() const
Returns the SegmentLapMessage data message's timeInCadenceZone field's current value.
void setAvgCadence(const quint8 avgCadence)
Sets the avgCadence field to avgCadence.
qint32 endPositionLong() const
Returns the SegmentLapMessage data message's endPositionLong field's current value.
MessageIndex wktStepIndex() const
Returns the SegmentLapMessage data message's wktStepIndex field's current value.
Declares the SegmentLapMessage class.
Declares the SegmentLapMessagePrivate class.
EventType
Garmin FIT EventType type.
Event
Garmin FIT Event type.
FitBaseType
Garmin FIT FitBaseType type.
SportEvent
Garmin FIT SportEvent type.
LeftRightBalance100
Garmin FIT LeftRightBalance100 type.
Sport
Garmin FIT Sport type.
SegmentLapStatus
Garmin FIT SegmentLapStatus type.
MessageIndex
Garmin FIT MessageIndex type.
Manufacturer
Garmin FIT Manufacturer type.
SubSport
Garmin FIT SubSport type.
DateTime
Seconds since UTC 00:00 Dec 31 1989.