#region Copyright
////////////////////////////////////////////////////////////////////////////////
// The following FIT Protocol software provided may be used with FIT protocol
// devices only and remains the copyrighted property of Dynastream Innovations Inc.
// The software is being provided on an "as-is" basis and as an accommodation,
// and therefore all warranties, representations, or guarantees of any kind
// (whether express, implied or statutory) including, without limitation,
// warranties of merchantability, non-infringement, or fitness for a particular
// purpose, are specifically disclaimed.
//
// Copyright 2016 Dynastream Innovations Inc.
////////////////////////////////////////////////////////////////////////////////
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
// Profile Version = 16.60Release
// Tag = production-akw-16.60.00-0-g5d3d436
////////////////////////////////////////////////////////////////////////////////
#endregion
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Text;
using System.IO;
namespace Dynastream.Fit
{
///
/// Implements the Lap profile message.
///
public class LapMesg : Mesg
{
#region Fields
static class TotalCyclesSubfield
{
public static ushort TotalStrides = 0;
public static ushort Subfields = 1;
public static ushort Active = Fit.SubfieldIndexActiveSubfield;
public static ushort MainField = Fit.SubfieldIndexMainField;
}
static class AvgCadenceSubfield
{
public static ushort AvgRunningCadence = 0;
public static ushort Subfields = 1;
public static ushort Active = Fit.SubfieldIndexActiveSubfield;
public static ushort MainField = Fit.SubfieldIndexMainField;
}
static class MaxCadenceSubfield
{
public static ushort MaxRunningCadence = 0;
public static ushort Subfields = 1;
public static ushort Active = Fit.SubfieldIndexActiveSubfield;
public static ushort MainField = Fit.SubfieldIndexMainField;
}
#endregion
#region Constructors
public LapMesg() : base(Profile.GetMesg(MesgNum.Lap))
{
}
public LapMesg(Mesg mesg) : base(mesg)
{
}
#endregion // Constructors
#region Methods
///
/// Retrieves the MessageIndex field
/// Returns nullable ushort representing the MessageIndex field
public ushort? GetMessageIndex()
{
return (ushort?)GetFieldValue(254, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MessageIndex field
/// Nullable field value to be set
public void SetMessageIndex(ushort? messageIndex_)
{
SetFieldValue(254, 0, messageIndex_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the Timestamp field
/// Units: s
/// Comment: Lap end time.
/// Returns DateTime representing the Timestamp field
public DateTime GetTimestamp()
{
return TimestampToDateTime((uint?)GetFieldValue(253, 0, Fit.SubfieldIndexMainField));
}
///
/// Set Timestamp field
/// Units: s
/// Comment: Lap end time.
/// Nullable field value to be set
public void SetTimestamp(DateTime timestamp_)
{
SetFieldValue(253, 0, timestamp_.GetTimeStamp(), Fit.SubfieldIndexMainField);
}
///
/// Retrieves the Event field
/// Returns nullable Event enum representing the Event field
public Event? GetEvent()
{
object obj = GetFieldValue(0, 0, Fit.SubfieldIndexMainField);
Event? value = obj == null ? (Event?)null : (Event)obj;
return value;
}
///
/// Set Event field
/// Nullable field value to be set
public void SetEvent(Event? event_)
{
SetFieldValue(0, 0, event_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the EventType field
/// Returns nullable EventType enum representing the EventType field
public EventType? GetEventType()
{
object obj = GetFieldValue(1, 0, Fit.SubfieldIndexMainField);
EventType? value = obj == null ? (EventType?)null : (EventType)obj;
return value;
}
///
/// Set EventType field
/// Nullable field value to be set
public void SetEventType(EventType? eventType_)
{
SetFieldValue(1, 0, eventType_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the StartTime field
/// Returns DateTime representing the StartTime field
public DateTime GetStartTime()
{
return TimestampToDateTime((uint?)GetFieldValue(2, 0, Fit.SubfieldIndexMainField));
}
///
/// Set StartTime field
/// Nullable field value to be set
public void SetStartTime(DateTime startTime_)
{
SetFieldValue(2, 0, startTime_.GetTimeStamp(), Fit.SubfieldIndexMainField);
}
///
/// Retrieves the StartPositionLat field
/// Units: semicircles
/// Returns nullable int representing the StartPositionLat field
public int? GetStartPositionLat()
{
return (int?)GetFieldValue(3, 0, Fit.SubfieldIndexMainField);
}
///
/// Set StartPositionLat field
/// Units: semicircles
/// Nullable field value to be set
public void SetStartPositionLat(int? startPositionLat_)
{
SetFieldValue(3, 0, startPositionLat_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the StartPositionLong field
/// Units: semicircles
/// Returns nullable int representing the StartPositionLong field
public int? GetStartPositionLong()
{
return (int?)GetFieldValue(4, 0, Fit.SubfieldIndexMainField);
}
///
/// Set StartPositionLong field
/// Units: semicircles
/// Nullable field value to be set
public void SetStartPositionLong(int? startPositionLong_)
{
SetFieldValue(4, 0, startPositionLong_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the EndPositionLat field
/// Units: semicircles
/// Returns nullable int representing the EndPositionLat field
public int? GetEndPositionLat()
{
return (int?)GetFieldValue(5, 0, Fit.SubfieldIndexMainField);
}
///
/// Set EndPositionLat field
/// Units: semicircles
/// Nullable field value to be set
public void SetEndPositionLat(int? endPositionLat_)
{
SetFieldValue(5, 0, endPositionLat_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the EndPositionLong field
/// Units: semicircles
/// Returns nullable int representing the EndPositionLong field
public int? GetEndPositionLong()
{
return (int?)GetFieldValue(6, 0, Fit.SubfieldIndexMainField);
}
///
/// Set EndPositionLong field
/// Units: semicircles
/// Nullable field value to be set
public void SetEndPositionLong(int? endPositionLong_)
{
SetFieldValue(6, 0, endPositionLong_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the TotalElapsedTime field
/// Units: s
/// Comment: Time (includes pauses)
/// Returns nullable float representing the TotalElapsedTime field
public float? GetTotalElapsedTime()
{
return (float?)GetFieldValue(7, 0, Fit.SubfieldIndexMainField);
}
///
/// Set TotalElapsedTime field
/// Units: s
/// Comment: Time (includes pauses)
/// Nullable field value to be set
public void SetTotalElapsedTime(float? totalElapsedTime_)
{
SetFieldValue(7, 0, totalElapsedTime_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the TotalTimerTime field
/// Units: s
/// Comment: Timer Time (excludes pauses)
/// Returns nullable float representing the TotalTimerTime field
public float? GetTotalTimerTime()
{
return (float?)GetFieldValue(8, 0, Fit.SubfieldIndexMainField);
}
///
/// Set TotalTimerTime field
/// Units: s
/// Comment: Timer Time (excludes pauses)
/// Nullable field value to be set
public void SetTotalTimerTime(float? totalTimerTime_)
{
SetFieldValue(8, 0, totalTimerTime_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the TotalDistance field
/// Units: m
/// Returns nullable float representing the TotalDistance field
public float? GetTotalDistance()
{
return (float?)GetFieldValue(9, 0, Fit.SubfieldIndexMainField);
}
///
/// Set TotalDistance field
/// Units: m
/// Nullable field value to be set
public void SetTotalDistance(float? totalDistance_)
{
SetFieldValue(9, 0, totalDistance_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the TotalCycles field
/// Units: cycles
/// Returns nullable uint representing the TotalCycles field
public uint? GetTotalCycles()
{
return (uint?)GetFieldValue(10, 0, Fit.SubfieldIndexMainField);
}
///
/// Set TotalCycles field
/// Units: cycles
/// Nullable field value to be set
public void SetTotalCycles(uint? totalCycles_)
{
SetFieldValue(10, 0, totalCycles_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the TotalStrides subfield
/// Units: strides
/// Nullable uint representing the TotalStrides subfield
public uint? GetTotalStrides()
{
return (uint?)GetFieldValue(10, 0, TotalCyclesSubfield.TotalStrides);
}
///
///
/// Set TotalStrides subfield
/// Units: strides
/// Subfield value to be set
public void SetTotalStrides(uint? totalStrides)
{
SetFieldValue(10, 0, totalStrides, TotalCyclesSubfield.TotalStrides);
}
///
/// Retrieves the TotalCalories field
/// Units: kcal
/// Returns nullable ushort representing the TotalCalories field
public ushort? GetTotalCalories()
{
return (ushort?)GetFieldValue(11, 0, Fit.SubfieldIndexMainField);
}
///
/// Set TotalCalories field
/// Units: kcal
/// Nullable field value to be set
public void SetTotalCalories(ushort? totalCalories_)
{
SetFieldValue(11, 0, totalCalories_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the TotalFatCalories field
/// Units: kcal
/// Comment: If New Leaf
/// Returns nullable ushort representing the TotalFatCalories field
public ushort? GetTotalFatCalories()
{
return (ushort?)GetFieldValue(12, 0, Fit.SubfieldIndexMainField);
}
///
/// Set TotalFatCalories field
/// Units: kcal
/// Comment: If New Leaf
/// Nullable field value to be set
public void SetTotalFatCalories(ushort? totalFatCalories_)
{
SetFieldValue(12, 0, totalFatCalories_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgSpeed field
/// Units: m/s
/// Returns nullable float representing the AvgSpeed field
public float? GetAvgSpeed()
{
return (float?)GetFieldValue(13, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgSpeed field
/// Units: m/s
/// Nullable field value to be set
public void SetAvgSpeed(float? avgSpeed_)
{
SetFieldValue(13, 0, avgSpeed_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxSpeed field
/// Units: m/s
/// Returns nullable float representing the MaxSpeed field
public float? GetMaxSpeed()
{
return (float?)GetFieldValue(14, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MaxSpeed field
/// Units: m/s
/// Nullable field value to be set
public void SetMaxSpeed(float? maxSpeed_)
{
SetFieldValue(14, 0, maxSpeed_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgHeartRate field
/// Units: bpm
/// Returns nullable byte representing the AvgHeartRate field
public byte? GetAvgHeartRate()
{
return (byte?)GetFieldValue(15, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgHeartRate field
/// Units: bpm
/// Nullable field value to be set
public void SetAvgHeartRate(byte? avgHeartRate_)
{
SetFieldValue(15, 0, avgHeartRate_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxHeartRate field
/// Units: bpm
/// Returns nullable byte representing the MaxHeartRate field
public byte? GetMaxHeartRate()
{
return (byte?)GetFieldValue(16, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MaxHeartRate field
/// Units: bpm
/// Nullable field value to be set
public void SetMaxHeartRate(byte? maxHeartRate_)
{
SetFieldValue(16, 0, maxHeartRate_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgCadence field
/// Units: rpm
/// Comment: total_cycles / total_timer_time if non_zero_avg_cadence otherwise total_cycles / total_elapsed_time
/// Returns nullable byte representing the AvgCadence field
public byte? GetAvgCadence()
{
return (byte?)GetFieldValue(17, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgCadence field
/// Units: rpm
/// Comment: total_cycles / total_timer_time if non_zero_avg_cadence otherwise total_cycles / total_elapsed_time
/// Nullable field value to be set
public void SetAvgCadence(byte? avgCadence_)
{
SetFieldValue(17, 0, avgCadence_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgRunningCadence subfield
/// Units: strides/min
/// Nullable byte representing the AvgRunningCadence subfield
public byte? GetAvgRunningCadence()
{
return (byte?)GetFieldValue(17, 0, AvgCadenceSubfield.AvgRunningCadence);
}
///
///
/// Set AvgRunningCadence subfield
/// Units: strides/min
/// Subfield value to be set
public void SetAvgRunningCadence(byte? avgRunningCadence)
{
SetFieldValue(17, 0, avgRunningCadence, AvgCadenceSubfield.AvgRunningCadence);
}
///
/// Retrieves the MaxCadence field
/// Units: rpm
/// Returns nullable byte representing the MaxCadence field
public byte? GetMaxCadence()
{
return (byte?)GetFieldValue(18, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MaxCadence field
/// Units: rpm
/// Nullable field value to be set
public void SetMaxCadence(byte? maxCadence_)
{
SetFieldValue(18, 0, maxCadence_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxRunningCadence subfield
/// Units: strides/min
/// Nullable byte representing the MaxRunningCadence subfield
public byte? GetMaxRunningCadence()
{
return (byte?)GetFieldValue(18, 0, MaxCadenceSubfield.MaxRunningCadence);
}
///
///
/// Set MaxRunningCadence subfield
/// Units: strides/min
/// Subfield value to be set
public void SetMaxRunningCadence(byte? maxRunningCadence)
{
SetFieldValue(18, 0, maxRunningCadence, MaxCadenceSubfield.MaxRunningCadence);
}
///
/// Retrieves the AvgPower field
/// Units: watts
/// Comment: total_power / total_timer_time if non_zero_avg_power otherwise total_power / total_elapsed_time
/// Returns nullable ushort representing the AvgPower field
public ushort? GetAvgPower()
{
return (ushort?)GetFieldValue(19, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgPower field
/// Units: watts
/// Comment: total_power / total_timer_time if non_zero_avg_power otherwise total_power / total_elapsed_time
/// Nullable field value to be set
public void SetAvgPower(ushort? avgPower_)
{
SetFieldValue(19, 0, avgPower_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxPower field
/// Units: watts
/// Returns nullable ushort representing the MaxPower field
public ushort? GetMaxPower()
{
return (ushort?)GetFieldValue(20, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MaxPower field
/// Units: watts
/// Nullable field value to be set
public void SetMaxPower(ushort? maxPower_)
{
SetFieldValue(20, 0, maxPower_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the TotalAscent field
/// Units: m
/// Returns nullable ushort representing the TotalAscent field
public ushort? GetTotalAscent()
{
return (ushort?)GetFieldValue(21, 0, Fit.SubfieldIndexMainField);
}
///
/// Set TotalAscent field
/// Units: m
/// Nullable field value to be set
public void SetTotalAscent(ushort? totalAscent_)
{
SetFieldValue(21, 0, totalAscent_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the TotalDescent field
/// Units: m
/// Returns nullable ushort representing the TotalDescent field
public ushort? GetTotalDescent()
{
return (ushort?)GetFieldValue(22, 0, Fit.SubfieldIndexMainField);
}
///
/// Set TotalDescent field
/// Units: m
/// Nullable field value to be set
public void SetTotalDescent(ushort? totalDescent_)
{
SetFieldValue(22, 0, totalDescent_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the Intensity field
/// Returns nullable Intensity enum representing the Intensity field
public Intensity? GetIntensity()
{
object obj = GetFieldValue(23, 0, Fit.SubfieldIndexMainField);
Intensity? value = obj == null ? (Intensity?)null : (Intensity)obj;
return value;
}
///
/// Set Intensity field
/// Nullable field value to be set
public void SetIntensity(Intensity? intensity_)
{
SetFieldValue(23, 0, intensity_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the LapTrigger field
/// Returns nullable LapTrigger enum representing the LapTrigger field
public LapTrigger? GetLapTrigger()
{
object obj = GetFieldValue(24, 0, Fit.SubfieldIndexMainField);
LapTrigger? value = obj == null ? (LapTrigger?)null : (LapTrigger)obj;
return value;
}
///
/// Set LapTrigger field
/// Nullable field value to be set
public void SetLapTrigger(LapTrigger? lapTrigger_)
{
SetFieldValue(24, 0, lapTrigger_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the Sport field
/// Returns nullable Sport enum representing the Sport field
public Sport? GetSport()
{
object obj = GetFieldValue(25, 0, Fit.SubfieldIndexMainField);
Sport? value = obj == null ? (Sport?)null : (Sport)obj;
return value;
}
///
/// Set Sport field
/// Nullable field value to be set
public void SetSport(Sport? sport_)
{
SetFieldValue(25, 0, sport_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the EventGroup field
/// Returns nullable byte representing the EventGroup field
public byte? GetEventGroup()
{
return (byte?)GetFieldValue(26, 0, Fit.SubfieldIndexMainField);
}
///
/// Set EventGroup field
/// Nullable field value to be set
public void SetEventGroup(byte? eventGroup_)
{
SetFieldValue(26, 0, eventGroup_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the NumLengths field
/// Units: lengths
/// Comment: # of lengths of swim pool
/// Returns nullable ushort representing the NumLengths field
public ushort? GetNumLengths()
{
return (ushort?)GetFieldValue(32, 0, Fit.SubfieldIndexMainField);
}
///
/// Set NumLengths field
/// Units: lengths
/// Comment: # of lengths of swim pool
/// Nullable field value to be set
public void SetNumLengths(ushort? numLengths_)
{
SetFieldValue(32, 0, numLengths_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the NormalizedPower field
/// Units: watts
/// Returns nullable ushort representing the NormalizedPower field
public ushort? GetNormalizedPower()
{
return (ushort?)GetFieldValue(33, 0, Fit.SubfieldIndexMainField);
}
///
/// Set NormalizedPower field
/// Units: watts
/// Nullable field value to be set
public void SetNormalizedPower(ushort? normalizedPower_)
{
SetFieldValue(33, 0, normalizedPower_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the LeftRightBalance field
/// Returns nullable ushort representing the LeftRightBalance field
public ushort? GetLeftRightBalance()
{
return (ushort?)GetFieldValue(34, 0, Fit.SubfieldIndexMainField);
}
///
/// Set LeftRightBalance field
/// Nullable field value to be set
public void SetLeftRightBalance(ushort? leftRightBalance_)
{
SetFieldValue(34, 0, leftRightBalance_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the FirstLengthIndex field
/// Returns nullable ushort representing the FirstLengthIndex field
public ushort? GetFirstLengthIndex()
{
return (ushort?)GetFieldValue(35, 0, Fit.SubfieldIndexMainField);
}
///
/// Set FirstLengthIndex field
/// Nullable field value to be set
public void SetFirstLengthIndex(ushort? firstLengthIndex_)
{
SetFieldValue(35, 0, firstLengthIndex_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgStrokeDistance field
/// Units: m
/// Returns nullable float representing the AvgStrokeDistance field
public float? GetAvgStrokeDistance()
{
return (float?)GetFieldValue(37, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgStrokeDistance field
/// Units: m
/// Nullable field value to be set
public void SetAvgStrokeDistance(float? avgStrokeDistance_)
{
SetFieldValue(37, 0, avgStrokeDistance_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the SwimStroke field
/// Returns nullable SwimStroke enum representing the SwimStroke field
public SwimStroke? GetSwimStroke()
{
object obj = GetFieldValue(38, 0, Fit.SubfieldIndexMainField);
SwimStroke? value = obj == null ? (SwimStroke?)null : (SwimStroke)obj;
return value;
}
///
/// Set SwimStroke field
/// Nullable field value to be set
public void SetSwimStroke(SwimStroke? swimStroke_)
{
SetFieldValue(38, 0, swimStroke_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the SubSport field
/// Returns nullable SubSport enum representing the SubSport field
public SubSport? GetSubSport()
{
object obj = GetFieldValue(39, 0, Fit.SubfieldIndexMainField);
SubSport? value = obj == null ? (SubSport?)null : (SubSport)obj;
return value;
}
///
/// Set SubSport field
/// Nullable field value to be set
public void SetSubSport(SubSport? subSport_)
{
SetFieldValue(39, 0, subSport_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the NumActiveLengths field
/// Units: lengths
/// Comment: # of active lengths of swim pool
/// Returns nullable ushort representing the NumActiveLengths field
public ushort? GetNumActiveLengths()
{
return (ushort?)GetFieldValue(40, 0, Fit.SubfieldIndexMainField);
}
///
/// Set NumActiveLengths field
/// Units: lengths
/// Comment: # of active lengths of swim pool
/// Nullable field value to be set
public void SetNumActiveLengths(ushort? numActiveLengths_)
{
SetFieldValue(40, 0, numActiveLengths_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the TotalWork field
/// Units: J
/// Returns nullable uint representing the TotalWork field
public uint? GetTotalWork()
{
return (uint?)GetFieldValue(41, 0, Fit.SubfieldIndexMainField);
}
///
/// Set TotalWork field
/// Units: J
/// Nullable field value to be set
public void SetTotalWork(uint? totalWork_)
{
SetFieldValue(41, 0, totalWork_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgAltitude field
/// Units: m
/// Returns nullable float representing the AvgAltitude field
public float? GetAvgAltitude()
{
return (float?)GetFieldValue(42, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgAltitude field
/// Units: m
/// Nullable field value to be set
public void SetAvgAltitude(float? avgAltitude_)
{
SetFieldValue(42, 0, avgAltitude_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxAltitude field
/// Units: m
/// Returns nullable float representing the MaxAltitude field
public float? GetMaxAltitude()
{
return (float?)GetFieldValue(43, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MaxAltitude field
/// Units: m
/// Nullable field value to be set
public void SetMaxAltitude(float? maxAltitude_)
{
SetFieldValue(43, 0, maxAltitude_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the GpsAccuracy field
/// Units: m
/// Returns nullable byte representing the GpsAccuracy field
public byte? GetGpsAccuracy()
{
return (byte?)GetFieldValue(44, 0, Fit.SubfieldIndexMainField);
}
///
/// Set GpsAccuracy field
/// Units: m
/// Nullable field value to be set
public void SetGpsAccuracy(byte? gpsAccuracy_)
{
SetFieldValue(44, 0, gpsAccuracy_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgGrade field
/// Units: %
/// Returns nullable float representing the AvgGrade field
public float? GetAvgGrade()
{
return (float?)GetFieldValue(45, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgGrade field
/// Units: %
/// Nullable field value to be set
public void SetAvgGrade(float? avgGrade_)
{
SetFieldValue(45, 0, avgGrade_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgPosGrade field
/// Units: %
/// Returns nullable float representing the AvgPosGrade field
public float? GetAvgPosGrade()
{
return (float?)GetFieldValue(46, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgPosGrade field
/// Units: %
/// Nullable field value to be set
public void SetAvgPosGrade(float? avgPosGrade_)
{
SetFieldValue(46, 0, avgPosGrade_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgNegGrade field
/// Units: %
/// Returns nullable float representing the AvgNegGrade field
public float? GetAvgNegGrade()
{
return (float?)GetFieldValue(47, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgNegGrade field
/// Units: %
/// Nullable field value to be set
public void SetAvgNegGrade(float? avgNegGrade_)
{
SetFieldValue(47, 0, avgNegGrade_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxPosGrade field
/// Units: %
/// Returns nullable float representing the MaxPosGrade field
public float? GetMaxPosGrade()
{
return (float?)GetFieldValue(48, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MaxPosGrade field
/// Units: %
/// Nullable field value to be set
public void SetMaxPosGrade(float? maxPosGrade_)
{
SetFieldValue(48, 0, maxPosGrade_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxNegGrade field
/// Units: %
/// Returns nullable float representing the MaxNegGrade field
public float? GetMaxNegGrade()
{
return (float?)GetFieldValue(49, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MaxNegGrade field
/// Units: %
/// Nullable field value to be set
public void SetMaxNegGrade(float? maxNegGrade_)
{
SetFieldValue(49, 0, maxNegGrade_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgTemperature field
/// Units: C
/// Returns nullable sbyte representing the AvgTemperature field
public sbyte? GetAvgTemperature()
{
return (sbyte?)GetFieldValue(50, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgTemperature field
/// Units: C
/// Nullable field value to be set
public void SetAvgTemperature(sbyte? avgTemperature_)
{
SetFieldValue(50, 0, avgTemperature_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxTemperature field
/// Units: C
/// Returns nullable sbyte representing the MaxTemperature field
public sbyte? GetMaxTemperature()
{
return (sbyte?)GetFieldValue(51, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MaxTemperature field
/// Units: C
/// Nullable field value to be set
public void SetMaxTemperature(sbyte? maxTemperature_)
{
SetFieldValue(51, 0, maxTemperature_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the TotalMovingTime field
/// Units: s
/// Returns nullable float representing the TotalMovingTime field
public float? GetTotalMovingTime()
{
return (float?)GetFieldValue(52, 0, Fit.SubfieldIndexMainField);
}
///
/// Set TotalMovingTime field
/// Units: s
/// Nullable field value to be set
public void SetTotalMovingTime(float? totalMovingTime_)
{
SetFieldValue(52, 0, totalMovingTime_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgPosVerticalSpeed field
/// Units: m/s
/// Returns nullable float representing the AvgPosVerticalSpeed field
public float? GetAvgPosVerticalSpeed()
{
return (float?)GetFieldValue(53, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgPosVerticalSpeed field
/// Units: m/s
/// Nullable field value to be set
public void SetAvgPosVerticalSpeed(float? avgPosVerticalSpeed_)
{
SetFieldValue(53, 0, avgPosVerticalSpeed_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgNegVerticalSpeed field
/// Units: m/s
/// Returns nullable float representing the AvgNegVerticalSpeed field
public float? GetAvgNegVerticalSpeed()
{
return (float?)GetFieldValue(54, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgNegVerticalSpeed field
/// Units: m/s
/// Nullable field value to be set
public void SetAvgNegVerticalSpeed(float? avgNegVerticalSpeed_)
{
SetFieldValue(54, 0, avgNegVerticalSpeed_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxPosVerticalSpeed field
/// Units: m/s
/// Returns nullable float representing the MaxPosVerticalSpeed field
public float? GetMaxPosVerticalSpeed()
{
return (float?)GetFieldValue(55, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MaxPosVerticalSpeed field
/// Units: m/s
/// Nullable field value to be set
public void SetMaxPosVerticalSpeed(float? maxPosVerticalSpeed_)
{
SetFieldValue(55, 0, maxPosVerticalSpeed_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxNegVerticalSpeed field
/// Units: m/s
/// Returns nullable float representing the MaxNegVerticalSpeed field
public float? GetMaxNegVerticalSpeed()
{
return (float?)GetFieldValue(56, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MaxNegVerticalSpeed field
/// Units: m/s
/// Nullable field value to be set
public void SetMaxNegVerticalSpeed(float? maxNegVerticalSpeed_)
{
SetFieldValue(56, 0, maxNegVerticalSpeed_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field TimeInHrZone
public int GetNumTimeInHrZone()
{
return GetNumFieldValues(57, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the TimeInHrZone field
/// Units: s
/// 0 based index of TimeInHrZone element to retrieve
/// Returns nullable float representing the TimeInHrZone field
public float? GetTimeInHrZone(int index)
{
return (float?)GetFieldValue(57, index, Fit.SubfieldIndexMainField);
}
///
/// Set TimeInHrZone field
/// Units: s
/// 0 based index of time_in_hr_zone
/// Nullable field value to be set
public void SetTimeInHrZone(int index, float? timeInHrZone_)
{
SetFieldValue(57, index, timeInHrZone_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field TimeInSpeedZone
public int GetNumTimeInSpeedZone()
{
return GetNumFieldValues(58, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the TimeInSpeedZone field
/// Units: s
/// 0 based index of TimeInSpeedZone element to retrieve
/// Returns nullable float representing the TimeInSpeedZone field
public float? GetTimeInSpeedZone(int index)
{
return (float?)GetFieldValue(58, index, Fit.SubfieldIndexMainField);
}
///
/// Set TimeInSpeedZone field
/// Units: s
/// 0 based index of time_in_speed_zone
/// Nullable field value to be set
public void SetTimeInSpeedZone(int index, float? timeInSpeedZone_)
{
SetFieldValue(58, index, timeInSpeedZone_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field TimeInCadenceZone
public int GetNumTimeInCadenceZone()
{
return GetNumFieldValues(59, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the TimeInCadenceZone field
/// Units: s
/// 0 based index of TimeInCadenceZone element to retrieve
/// Returns nullable float representing the TimeInCadenceZone field
public float? GetTimeInCadenceZone(int index)
{
return (float?)GetFieldValue(59, index, Fit.SubfieldIndexMainField);
}
///
/// Set TimeInCadenceZone field
/// Units: s
/// 0 based index of time_in_cadence_zone
/// Nullable field value to be set
public void SetTimeInCadenceZone(int index, float? timeInCadenceZone_)
{
SetFieldValue(59, index, timeInCadenceZone_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field TimeInPowerZone
public int GetNumTimeInPowerZone()
{
return GetNumFieldValues(60, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the TimeInPowerZone field
/// Units: s
/// 0 based index of TimeInPowerZone element to retrieve
/// Returns nullable float representing the TimeInPowerZone field
public float? GetTimeInPowerZone(int index)
{
return (float?)GetFieldValue(60, index, Fit.SubfieldIndexMainField);
}
///
/// Set TimeInPowerZone field
/// Units: s
/// 0 based index of time_in_power_zone
/// Nullable field value to be set
public void SetTimeInPowerZone(int index, float? timeInPowerZone_)
{
SetFieldValue(60, index, timeInPowerZone_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the RepetitionNum field
/// Returns nullable ushort representing the RepetitionNum field
public ushort? GetRepetitionNum()
{
return (ushort?)GetFieldValue(61, 0, Fit.SubfieldIndexMainField);
}
///
/// Set RepetitionNum field
/// Nullable field value to be set
public void SetRepetitionNum(ushort? repetitionNum_)
{
SetFieldValue(61, 0, repetitionNum_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MinAltitude field
/// Units: m
/// Returns nullable float representing the MinAltitude field
public float? GetMinAltitude()
{
return (float?)GetFieldValue(62, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MinAltitude field
/// Units: m
/// Nullable field value to be set
public void SetMinAltitude(float? minAltitude_)
{
SetFieldValue(62, 0, minAltitude_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MinHeartRate field
/// Units: bpm
/// Returns nullable byte representing the MinHeartRate field
public byte? GetMinHeartRate()
{
return (byte?)GetFieldValue(63, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MinHeartRate field
/// Units: bpm
/// Nullable field value to be set
public void SetMinHeartRate(byte? minHeartRate_)
{
SetFieldValue(63, 0, minHeartRate_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the WktStepIndex field
/// Returns nullable ushort representing the WktStepIndex field
public ushort? GetWktStepIndex()
{
return (ushort?)GetFieldValue(71, 0, Fit.SubfieldIndexMainField);
}
///
/// Set WktStepIndex field
/// Nullable field value to be set
public void SetWktStepIndex(ushort? wktStepIndex_)
{
SetFieldValue(71, 0, wktStepIndex_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the OpponentScore field
/// Returns nullable ushort representing the OpponentScore field
public ushort? GetOpponentScore()
{
return (ushort?)GetFieldValue(74, 0, Fit.SubfieldIndexMainField);
}
///
/// Set OpponentScore field
/// Nullable field value to be set
public void SetOpponentScore(ushort? opponentScore_)
{
SetFieldValue(74, 0, opponentScore_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field StrokeCount
public int GetNumStrokeCount()
{
return GetNumFieldValues(75, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the StrokeCount field
/// Units: counts
/// Comment: stroke_type enum used as the index
/// 0 based index of StrokeCount element to retrieve
/// Returns nullable ushort representing the StrokeCount field
public ushort? GetStrokeCount(int index)
{
return (ushort?)GetFieldValue(75, index, Fit.SubfieldIndexMainField);
}
///
/// Set StrokeCount field
/// Units: counts
/// Comment: stroke_type enum used as the index
/// 0 based index of stroke_count
/// Nullable field value to be set
public void SetStrokeCount(int index, ushort? strokeCount_)
{
SetFieldValue(75, index, strokeCount_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field ZoneCount
public int GetNumZoneCount()
{
return GetNumFieldValues(76, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the ZoneCount field
/// Units: counts
/// Comment: zone number used as the index
/// 0 based index of ZoneCount element to retrieve
/// Returns nullable ushort representing the ZoneCount field
public ushort? GetZoneCount(int index)
{
return (ushort?)GetFieldValue(76, index, Fit.SubfieldIndexMainField);
}
///
/// Set ZoneCount field
/// Units: counts
/// Comment: zone number used as the index
/// 0 based index of zone_count
/// Nullable field value to be set
public void SetZoneCount(int index, ushort? zoneCount_)
{
SetFieldValue(76, index, zoneCount_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgVerticalOscillation field
/// Units: mm
/// Returns nullable float representing the AvgVerticalOscillation field
public float? GetAvgVerticalOscillation()
{
return (float?)GetFieldValue(77, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgVerticalOscillation field
/// Units: mm
/// Nullable field value to be set
public void SetAvgVerticalOscillation(float? avgVerticalOscillation_)
{
SetFieldValue(77, 0, avgVerticalOscillation_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgStanceTimePercent field
/// Units: percent
/// Returns nullable float representing the AvgStanceTimePercent field
public float? GetAvgStanceTimePercent()
{
return (float?)GetFieldValue(78, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgStanceTimePercent field
/// Units: percent
/// Nullable field value to be set
public void SetAvgStanceTimePercent(float? avgStanceTimePercent_)
{
SetFieldValue(78, 0, avgStanceTimePercent_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgStanceTime field
/// Units: ms
/// Returns nullable float representing the AvgStanceTime field
public float? GetAvgStanceTime()
{
return (float?)GetFieldValue(79, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgStanceTime field
/// Units: ms
/// Nullable field value to be set
public void SetAvgStanceTime(float? avgStanceTime_)
{
SetFieldValue(79, 0, avgStanceTime_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgFractionalCadence field
/// Units: rpm
/// Comment: fractional part of the avg_cadence
/// Returns nullable float representing the AvgFractionalCadence field
public float? GetAvgFractionalCadence()
{
return (float?)GetFieldValue(80, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgFractionalCadence field
/// Units: rpm
/// Comment: fractional part of the avg_cadence
/// Nullable field value to be set
public void SetAvgFractionalCadence(float? avgFractionalCadence_)
{
SetFieldValue(80, 0, avgFractionalCadence_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxFractionalCadence field
/// Units: rpm
/// Comment: fractional part of the max_cadence
/// Returns nullable float representing the MaxFractionalCadence field
public float? GetMaxFractionalCadence()
{
return (float?)GetFieldValue(81, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MaxFractionalCadence field
/// Units: rpm
/// Comment: fractional part of the max_cadence
/// Nullable field value to be set
public void SetMaxFractionalCadence(float? maxFractionalCadence_)
{
SetFieldValue(81, 0, maxFractionalCadence_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the TotalFractionalCycles field
/// Units: cycles
/// Comment: fractional part of the total_cycles
/// Returns nullable float representing the TotalFractionalCycles field
public float? GetTotalFractionalCycles()
{
return (float?)GetFieldValue(82, 0, Fit.SubfieldIndexMainField);
}
///
/// Set TotalFractionalCycles field
/// Units: cycles
/// Comment: fractional part of the total_cycles
/// Nullable field value to be set
public void SetTotalFractionalCycles(float? totalFractionalCycles_)
{
SetFieldValue(82, 0, totalFractionalCycles_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the PlayerScore field
/// Returns nullable ushort representing the PlayerScore field
public ushort? GetPlayerScore()
{
return (ushort?)GetFieldValue(83, 0, Fit.SubfieldIndexMainField);
}
///
/// Set PlayerScore field
/// Nullable field value to be set
public void SetPlayerScore(ushort? playerScore_)
{
SetFieldValue(83, 0, playerScore_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field AvgTotalHemoglobinConc
public int GetNumAvgTotalHemoglobinConc()
{
return GetNumFieldValues(84, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgTotalHemoglobinConc field
/// Units: g/dL
/// Comment: Avg saturated and unsaturated hemoglobin
/// 0 based index of AvgTotalHemoglobinConc element to retrieve
/// Returns nullable float representing the AvgTotalHemoglobinConc field
public float? GetAvgTotalHemoglobinConc(int index)
{
return (float?)GetFieldValue(84, index, Fit.SubfieldIndexMainField);
}
///
/// Set AvgTotalHemoglobinConc field
/// Units: g/dL
/// Comment: Avg saturated and unsaturated hemoglobin
/// 0 based index of avg_total_hemoglobin_conc
/// Nullable field value to be set
public void SetAvgTotalHemoglobinConc(int index, float? avgTotalHemoglobinConc_)
{
SetFieldValue(84, index, avgTotalHemoglobinConc_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field MinTotalHemoglobinConc
public int GetNumMinTotalHemoglobinConc()
{
return GetNumFieldValues(85, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MinTotalHemoglobinConc field
/// Units: g/dL
/// Comment: Min saturated and unsaturated hemoglobin
/// 0 based index of MinTotalHemoglobinConc element to retrieve
/// Returns nullable float representing the MinTotalHemoglobinConc field
public float? GetMinTotalHemoglobinConc(int index)
{
return (float?)GetFieldValue(85, index, Fit.SubfieldIndexMainField);
}
///
/// Set MinTotalHemoglobinConc field
/// Units: g/dL
/// Comment: Min saturated and unsaturated hemoglobin
/// 0 based index of min_total_hemoglobin_conc
/// Nullable field value to be set
public void SetMinTotalHemoglobinConc(int index, float? minTotalHemoglobinConc_)
{
SetFieldValue(85, index, minTotalHemoglobinConc_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field MaxTotalHemoglobinConc
public int GetNumMaxTotalHemoglobinConc()
{
return GetNumFieldValues(86, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxTotalHemoglobinConc field
/// Units: g/dL
/// Comment: Max saturated and unsaturated hemoglobin
/// 0 based index of MaxTotalHemoglobinConc element to retrieve
/// Returns nullable float representing the MaxTotalHemoglobinConc field
public float? GetMaxTotalHemoglobinConc(int index)
{
return (float?)GetFieldValue(86, index, Fit.SubfieldIndexMainField);
}
///
/// Set MaxTotalHemoglobinConc field
/// Units: g/dL
/// Comment: Max saturated and unsaturated hemoglobin
/// 0 based index of max_total_hemoglobin_conc
/// Nullable field value to be set
public void SetMaxTotalHemoglobinConc(int index, float? maxTotalHemoglobinConc_)
{
SetFieldValue(86, index, maxTotalHemoglobinConc_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field AvgSaturatedHemoglobinPercent
public int GetNumAvgSaturatedHemoglobinPercent()
{
return GetNumFieldValues(87, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgSaturatedHemoglobinPercent field
/// Units: %
/// Comment: Avg percentage of hemoglobin saturated with oxygen
/// 0 based index of AvgSaturatedHemoglobinPercent element to retrieve
/// Returns nullable float representing the AvgSaturatedHemoglobinPercent field
public float? GetAvgSaturatedHemoglobinPercent(int index)
{
return (float?)GetFieldValue(87, index, Fit.SubfieldIndexMainField);
}
///
/// Set AvgSaturatedHemoglobinPercent field
/// Units: %
/// Comment: Avg percentage of hemoglobin saturated with oxygen
/// 0 based index of avg_saturated_hemoglobin_percent
/// Nullable field value to be set
public void SetAvgSaturatedHemoglobinPercent(int index, float? avgSaturatedHemoglobinPercent_)
{
SetFieldValue(87, index, avgSaturatedHemoglobinPercent_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field MinSaturatedHemoglobinPercent
public int GetNumMinSaturatedHemoglobinPercent()
{
return GetNumFieldValues(88, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MinSaturatedHemoglobinPercent field
/// Units: %
/// Comment: Min percentage of hemoglobin saturated with oxygen
/// 0 based index of MinSaturatedHemoglobinPercent element to retrieve
/// Returns nullable float representing the MinSaturatedHemoglobinPercent field
public float? GetMinSaturatedHemoglobinPercent(int index)
{
return (float?)GetFieldValue(88, index, Fit.SubfieldIndexMainField);
}
///
/// Set MinSaturatedHemoglobinPercent field
/// Units: %
/// Comment: Min percentage of hemoglobin saturated with oxygen
/// 0 based index of min_saturated_hemoglobin_percent
/// Nullable field value to be set
public void SetMinSaturatedHemoglobinPercent(int index, float? minSaturatedHemoglobinPercent_)
{
SetFieldValue(88, index, minSaturatedHemoglobinPercent_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field MaxSaturatedHemoglobinPercent
public int GetNumMaxSaturatedHemoglobinPercent()
{
return GetNumFieldValues(89, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxSaturatedHemoglobinPercent field
/// Units: %
/// Comment: Max percentage of hemoglobin saturated with oxygen
/// 0 based index of MaxSaturatedHemoglobinPercent element to retrieve
/// Returns nullable float representing the MaxSaturatedHemoglobinPercent field
public float? GetMaxSaturatedHemoglobinPercent(int index)
{
return (float?)GetFieldValue(89, index, Fit.SubfieldIndexMainField);
}
///
/// Set MaxSaturatedHemoglobinPercent field
/// Units: %
/// Comment: Max percentage of hemoglobin saturated with oxygen
/// 0 based index of max_saturated_hemoglobin_percent
/// Nullable field value to be set
public void SetMaxSaturatedHemoglobinPercent(int index, float? maxSaturatedHemoglobinPercent_)
{
SetFieldValue(89, index, maxSaturatedHemoglobinPercent_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgLeftTorqueEffectiveness field
/// Units: percent
/// Returns nullable float representing the AvgLeftTorqueEffectiveness field
public float? GetAvgLeftTorqueEffectiveness()
{
return (float?)GetFieldValue(91, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgLeftTorqueEffectiveness field
/// Units: percent
/// Nullable field value to be set
public void SetAvgLeftTorqueEffectiveness(float? avgLeftTorqueEffectiveness_)
{
SetFieldValue(91, 0, avgLeftTorqueEffectiveness_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgRightTorqueEffectiveness field
/// Units: percent
/// Returns nullable float representing the AvgRightTorqueEffectiveness field
public float? GetAvgRightTorqueEffectiveness()
{
return (float?)GetFieldValue(92, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgRightTorqueEffectiveness field
/// Units: percent
/// Nullable field value to be set
public void SetAvgRightTorqueEffectiveness(float? avgRightTorqueEffectiveness_)
{
SetFieldValue(92, 0, avgRightTorqueEffectiveness_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgLeftPedalSmoothness field
/// Units: percent
/// Returns nullable float representing the AvgLeftPedalSmoothness field
public float? GetAvgLeftPedalSmoothness()
{
return (float?)GetFieldValue(93, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgLeftPedalSmoothness field
/// Units: percent
/// Nullable field value to be set
public void SetAvgLeftPedalSmoothness(float? avgLeftPedalSmoothness_)
{
SetFieldValue(93, 0, avgLeftPedalSmoothness_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgRightPedalSmoothness field
/// Units: percent
/// Returns nullable float representing the AvgRightPedalSmoothness field
public float? GetAvgRightPedalSmoothness()
{
return (float?)GetFieldValue(94, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgRightPedalSmoothness field
/// Units: percent
/// Nullable field value to be set
public void SetAvgRightPedalSmoothness(float? avgRightPedalSmoothness_)
{
SetFieldValue(94, 0, avgRightPedalSmoothness_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgCombinedPedalSmoothness field
/// Units: percent
/// Returns nullable float representing the AvgCombinedPedalSmoothness field
public float? GetAvgCombinedPedalSmoothness()
{
return (float?)GetFieldValue(95, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgCombinedPedalSmoothness field
/// Units: percent
/// Nullable field value to be set
public void SetAvgCombinedPedalSmoothness(float? avgCombinedPedalSmoothness_)
{
SetFieldValue(95, 0, avgCombinedPedalSmoothness_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the TimeStanding field
/// Units: s
/// Comment: Total time spent in the standing position
/// Returns nullable float representing the TimeStanding field
public float? GetTimeStanding()
{
return (float?)GetFieldValue(98, 0, Fit.SubfieldIndexMainField);
}
///
/// Set TimeStanding field
/// Units: s
/// Comment: Total time spent in the standing position
/// Nullable field value to be set
public void SetTimeStanding(float? timeStanding_)
{
SetFieldValue(98, 0, timeStanding_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the StandCount field
/// Comment: Number of transitions to the standing state
/// Returns nullable ushort representing the StandCount field
public ushort? GetStandCount()
{
return (ushort?)GetFieldValue(99, 0, Fit.SubfieldIndexMainField);
}
///
/// Set StandCount field
/// Comment: Number of transitions to the standing state
/// Nullable field value to be set
public void SetStandCount(ushort? standCount_)
{
SetFieldValue(99, 0, standCount_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgLeftPco field
/// Units: mm
/// Comment: Average left platform center offset
/// Returns nullable sbyte representing the AvgLeftPco field
public sbyte? GetAvgLeftPco()
{
return (sbyte?)GetFieldValue(100, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgLeftPco field
/// Units: mm
/// Comment: Average left platform center offset
/// Nullable field value to be set
public void SetAvgLeftPco(sbyte? avgLeftPco_)
{
SetFieldValue(100, 0, avgLeftPco_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgRightPco field
/// Units: mm
/// Comment: Average right platform center offset
/// Returns nullable sbyte representing the AvgRightPco field
public sbyte? GetAvgRightPco()
{
return (sbyte?)GetFieldValue(101, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgRightPco field
/// Units: mm
/// Comment: Average right platform center offset
/// Nullable field value to be set
public void SetAvgRightPco(sbyte? avgRightPco_)
{
SetFieldValue(101, 0, avgRightPco_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field AvgLeftPowerPhase
public int GetNumAvgLeftPowerPhase()
{
return GetNumFieldValues(102, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgLeftPowerPhase field
/// Units: degrees
/// Comment: Average left power phase angles. Data value indexes defined by power_phase_type.
/// 0 based index of AvgLeftPowerPhase element to retrieve
/// Returns nullable byte representing the AvgLeftPowerPhase field
public byte? GetAvgLeftPowerPhase(int index)
{
return (byte?)GetFieldValue(102, index, Fit.SubfieldIndexMainField);
}
///
/// Set AvgLeftPowerPhase field
/// Units: degrees
/// Comment: Average left power phase angles. Data value indexes defined by power_phase_type.
/// 0 based index of avg_left_power_phase
/// Nullable field value to be set
public void SetAvgLeftPowerPhase(int index, byte? avgLeftPowerPhase_)
{
SetFieldValue(102, index, avgLeftPowerPhase_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field AvgLeftPowerPhasePeak
public int GetNumAvgLeftPowerPhasePeak()
{
return GetNumFieldValues(103, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgLeftPowerPhasePeak field
/// Units: degrees
/// Comment: Average left power phase peak angles. Data value indexes defined by power_phase_type.
/// 0 based index of AvgLeftPowerPhasePeak element to retrieve
/// Returns nullable byte representing the AvgLeftPowerPhasePeak field
public byte? GetAvgLeftPowerPhasePeak(int index)
{
return (byte?)GetFieldValue(103, index, Fit.SubfieldIndexMainField);
}
///
/// Set AvgLeftPowerPhasePeak field
/// Units: degrees
/// Comment: Average left power phase peak angles. Data value indexes defined by power_phase_type.
/// 0 based index of avg_left_power_phase_peak
/// Nullable field value to be set
public void SetAvgLeftPowerPhasePeak(int index, byte? avgLeftPowerPhasePeak_)
{
SetFieldValue(103, index, avgLeftPowerPhasePeak_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field AvgRightPowerPhase
public int GetNumAvgRightPowerPhase()
{
return GetNumFieldValues(104, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgRightPowerPhase field
/// Units: degrees
/// Comment: Average right power phase angles. Data value indexes defined by power_phase_type.
/// 0 based index of AvgRightPowerPhase element to retrieve
/// Returns nullable byte representing the AvgRightPowerPhase field
public byte? GetAvgRightPowerPhase(int index)
{
return (byte?)GetFieldValue(104, index, Fit.SubfieldIndexMainField);
}
///
/// Set AvgRightPowerPhase field
/// Units: degrees
/// Comment: Average right power phase angles. Data value indexes defined by power_phase_type.
/// 0 based index of avg_right_power_phase
/// Nullable field value to be set
public void SetAvgRightPowerPhase(int index, byte? avgRightPowerPhase_)
{
SetFieldValue(104, index, avgRightPowerPhase_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field AvgRightPowerPhasePeak
public int GetNumAvgRightPowerPhasePeak()
{
return GetNumFieldValues(105, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgRightPowerPhasePeak field
/// Units: degrees
/// Comment: Average right power phase peak angles. Data value indexes defined by power_phase_type.
/// 0 based index of AvgRightPowerPhasePeak element to retrieve
/// Returns nullable byte representing the AvgRightPowerPhasePeak field
public byte? GetAvgRightPowerPhasePeak(int index)
{
return (byte?)GetFieldValue(105, index, Fit.SubfieldIndexMainField);
}
///
/// Set AvgRightPowerPhasePeak field
/// Units: degrees
/// Comment: Average right power phase peak angles. Data value indexes defined by power_phase_type.
/// 0 based index of avg_right_power_phase_peak
/// Nullable field value to be set
public void SetAvgRightPowerPhasePeak(int index, byte? avgRightPowerPhasePeak_)
{
SetFieldValue(105, index, avgRightPowerPhasePeak_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field AvgPowerPosition
public int GetNumAvgPowerPosition()
{
return GetNumFieldValues(106, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgPowerPosition field
/// Units: watts
/// Comment: Average power by position. Data value indexes defined by rider_position_type.
/// 0 based index of AvgPowerPosition element to retrieve
/// Returns nullable ushort representing the AvgPowerPosition field
public ushort? GetAvgPowerPosition(int index)
{
return (ushort?)GetFieldValue(106, index, Fit.SubfieldIndexMainField);
}
///
/// Set AvgPowerPosition field
/// Units: watts
/// Comment: Average power by position. Data value indexes defined by rider_position_type.
/// 0 based index of avg_power_position
/// Nullable field value to be set
public void SetAvgPowerPosition(int index, ushort? avgPowerPosition_)
{
SetFieldValue(106, index, avgPowerPosition_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field MaxPowerPosition
public int GetNumMaxPowerPosition()
{
return GetNumFieldValues(107, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxPowerPosition field
/// Units: watts
/// Comment: Maximum power by position. Data value indexes defined by rider_position_type.
/// 0 based index of MaxPowerPosition element to retrieve
/// Returns nullable ushort representing the MaxPowerPosition field
public ushort? GetMaxPowerPosition(int index)
{
return (ushort?)GetFieldValue(107, index, Fit.SubfieldIndexMainField);
}
///
/// Set MaxPowerPosition field
/// Units: watts
/// Comment: Maximum power by position. Data value indexes defined by rider_position_type.
/// 0 based index of max_power_position
/// Nullable field value to be set
public void SetMaxPowerPosition(int index, ushort? maxPowerPosition_)
{
SetFieldValue(107, index, maxPowerPosition_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field AvgCadencePosition
public int GetNumAvgCadencePosition()
{
return GetNumFieldValues(108, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgCadencePosition field
/// Units: rpm
/// Comment: Average cadence by position. Data value indexes defined by rider_position_type.
/// 0 based index of AvgCadencePosition element to retrieve
/// Returns nullable byte representing the AvgCadencePosition field
public byte? GetAvgCadencePosition(int index)
{
return (byte?)GetFieldValue(108, index, Fit.SubfieldIndexMainField);
}
///
/// Set AvgCadencePosition field
/// Units: rpm
/// Comment: Average cadence by position. Data value indexes defined by rider_position_type.
/// 0 based index of avg_cadence_position
/// Nullable field value to be set
public void SetAvgCadencePosition(int index, byte? avgCadencePosition_)
{
SetFieldValue(108, index, avgCadencePosition_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field MaxCadencePosition
public int GetNumMaxCadencePosition()
{
return GetNumFieldValues(109, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxCadencePosition field
/// Units: rpm
/// Comment: Maximum cadence by position. Data value indexes defined by rider_position_type.
/// 0 based index of MaxCadencePosition element to retrieve
/// Returns nullable byte representing the MaxCadencePosition field
public byte? GetMaxCadencePosition(int index)
{
return (byte?)GetFieldValue(109, index, Fit.SubfieldIndexMainField);
}
///
/// Set MaxCadencePosition field
/// Units: rpm
/// Comment: Maximum cadence by position. Data value indexes defined by rider_position_type.
/// 0 based index of max_cadence_position
/// Nullable field value to be set
public void SetMaxCadencePosition(int index, byte? maxCadencePosition_)
{
SetFieldValue(109, index, maxCadencePosition_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the EnhancedAvgSpeed field
/// Units: m/s
/// Returns nullable float representing the EnhancedAvgSpeed field
public float? GetEnhancedAvgSpeed()
{
return (float?)GetFieldValue(110, 0, Fit.SubfieldIndexMainField);
}
///
/// Set EnhancedAvgSpeed field
/// Units: m/s
/// Nullable field value to be set
public void SetEnhancedAvgSpeed(float? enhancedAvgSpeed_)
{
SetFieldValue(110, 0, enhancedAvgSpeed_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the EnhancedMaxSpeed field
/// Units: m/s
/// Returns nullable float representing the EnhancedMaxSpeed field
public float? GetEnhancedMaxSpeed()
{
return (float?)GetFieldValue(111, 0, Fit.SubfieldIndexMainField);
}
///
/// Set EnhancedMaxSpeed field
/// Units: m/s
/// Nullable field value to be set
public void SetEnhancedMaxSpeed(float? enhancedMaxSpeed_)
{
SetFieldValue(111, 0, enhancedMaxSpeed_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the EnhancedAvgAltitude field
/// Units: m
/// Returns nullable float representing the EnhancedAvgAltitude field
public float? GetEnhancedAvgAltitude()
{
return (float?)GetFieldValue(112, 0, Fit.SubfieldIndexMainField);
}
///
/// Set EnhancedAvgAltitude field
/// Units: m
/// Nullable field value to be set
public void SetEnhancedAvgAltitude(float? enhancedAvgAltitude_)
{
SetFieldValue(112, 0, enhancedAvgAltitude_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the EnhancedMinAltitude field
/// Units: m
/// Returns nullable float representing the EnhancedMinAltitude field
public float? GetEnhancedMinAltitude()
{
return (float?)GetFieldValue(113, 0, Fit.SubfieldIndexMainField);
}
///
/// Set EnhancedMinAltitude field
/// Units: m
/// Nullable field value to be set
public void SetEnhancedMinAltitude(float? enhancedMinAltitude_)
{
SetFieldValue(113, 0, enhancedMinAltitude_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the EnhancedMaxAltitude field
/// Units: m
/// Returns nullable float representing the EnhancedMaxAltitude field
public float? GetEnhancedMaxAltitude()
{
return (float?)GetFieldValue(114, 0, Fit.SubfieldIndexMainField);
}
///
/// Set EnhancedMaxAltitude field
/// Units: m
/// Nullable field value to be set
public void SetEnhancedMaxAltitude(float? enhancedMaxAltitude_)
{
SetFieldValue(114, 0, enhancedMaxAltitude_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AvgLevMotorPower field
/// Units: watts
/// Comment: lev average motor power during lap
/// Returns nullable ushort representing the AvgLevMotorPower field
public ushort? GetAvgLevMotorPower()
{
return (ushort?)GetFieldValue(115, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AvgLevMotorPower field
/// Units: watts
/// Comment: lev average motor power during lap
/// Nullable field value to be set
public void SetAvgLevMotorPower(ushort? avgLevMotorPower_)
{
SetFieldValue(115, 0, avgLevMotorPower_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MaxLevMotorPower field
/// Units: watts
/// Comment: lev maximum motor power during lap
/// Returns nullable ushort representing the MaxLevMotorPower field
public ushort? GetMaxLevMotorPower()
{
return (ushort?)GetFieldValue(116, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MaxLevMotorPower field
/// Units: watts
/// Comment: lev maximum motor power during lap
/// Nullable field value to be set
public void SetMaxLevMotorPower(ushort? maxLevMotorPower_)
{
SetFieldValue(116, 0, maxLevMotorPower_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the LevBatteryConsumption field
/// Units: percent
/// Comment: lev battery consumption during lap
/// Returns nullable float representing the LevBatteryConsumption field
public float? GetLevBatteryConsumption()
{
return (float?)GetFieldValue(117, 0, Fit.SubfieldIndexMainField);
}
///
/// Set LevBatteryConsumption field
/// Units: percent
/// Comment: lev battery consumption during lap
/// Nullable field value to be set
public void SetLevBatteryConsumption(float? levBatteryConsumption_)
{
SetFieldValue(117, 0, levBatteryConsumption_, Fit.SubfieldIndexMainField);
}
#endregion // Methods
} // Class
} // namespace