#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 Record profile message.
///
public class RecordMesg : Mesg
{
#region Fields
#endregion
#region Constructors
public RecordMesg() : base(Profile.GetMesg(MesgNum.Record))
{
}
public RecordMesg(Mesg mesg) : base(mesg)
{
}
#endregion // Constructors
#region Methods
///
/// Retrieves the Timestamp field
/// Units: s
/// Returns DateTime representing the Timestamp field
public DateTime GetTimestamp()
{
return TimestampToDateTime((uint?)GetFieldValue(253, 0, Fit.SubfieldIndexMainField));
}
///
/// Set Timestamp field
/// Units: s
/// Nullable field value to be set
public void SetTimestamp(DateTime timestamp_)
{
SetFieldValue(253, 0, timestamp_.GetTimeStamp(), Fit.SubfieldIndexMainField);
}
///
/// Retrieves the PositionLat field
/// Units: semicircles
/// Returns nullable int representing the PositionLat field
public int? GetPositionLat()
{
return (int?)GetFieldValue(0, 0, Fit.SubfieldIndexMainField);
}
///
/// Set PositionLat field
/// Units: semicircles
/// Nullable field value to be set
public void SetPositionLat(int? positionLat_)
{
SetFieldValue(0, 0, positionLat_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the PositionLong field
/// Units: semicircles
/// Returns nullable int representing the PositionLong field
public int? GetPositionLong()
{
return (int?)GetFieldValue(1, 0, Fit.SubfieldIndexMainField);
}
///
/// Set PositionLong field
/// Units: semicircles
/// Nullable field value to be set
public void SetPositionLong(int? positionLong_)
{
SetFieldValue(1, 0, positionLong_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the Altitude field
/// Units: m
/// Returns nullable float representing the Altitude field
public float? GetAltitude()
{
return (float?)GetFieldValue(2, 0, Fit.SubfieldIndexMainField);
}
///
/// Set Altitude field
/// Units: m
/// Nullable field value to be set
public void SetAltitude(float? altitude_)
{
SetFieldValue(2, 0, altitude_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the HeartRate field
/// Units: bpm
/// Returns nullable byte representing the HeartRate field
public byte? GetHeartRate()
{
return (byte?)GetFieldValue(3, 0, Fit.SubfieldIndexMainField);
}
///
/// Set HeartRate field
/// Units: bpm
/// Nullable field value to be set
public void SetHeartRate(byte? heartRate_)
{
SetFieldValue(3, 0, heartRate_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the Cadence field
/// Units: rpm
/// Returns nullable byte representing the Cadence field
public byte? GetCadence()
{
return (byte?)GetFieldValue(4, 0, Fit.SubfieldIndexMainField);
}
///
/// Set Cadence field
/// Units: rpm
/// Nullable field value to be set
public void SetCadence(byte? cadence_)
{
SetFieldValue(4, 0, cadence_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the Distance field
/// Units: m
/// Returns nullable float representing the Distance field
public float? GetDistance()
{
return (float?)GetFieldValue(5, 0, Fit.SubfieldIndexMainField);
}
///
/// Set Distance field
/// Units: m
/// Nullable field value to be set
public void SetDistance(float? distance_)
{
SetFieldValue(5, 0, distance_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the Speed field
/// Units: m/s
/// Returns nullable float representing the Speed field
public float? GetSpeed()
{
return (float?)GetFieldValue(6, 0, Fit.SubfieldIndexMainField);
}
///
/// Set Speed field
/// Units: m/s
/// Nullable field value to be set
public void SetSpeed(float? speed_)
{
SetFieldValue(6, 0, speed_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the Power field
/// Units: watts
/// Returns nullable ushort representing the Power field
public ushort? GetPower()
{
return (ushort?)GetFieldValue(7, 0, Fit.SubfieldIndexMainField);
}
///
/// Set Power field
/// Units: watts
/// Nullable field value to be set
public void SetPower(ushort? power_)
{
SetFieldValue(7, 0, power_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field CompressedSpeedDistance
public int GetNumCompressedSpeedDistance()
{
return GetNumFieldValues(8, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the CompressedSpeedDistance field
/// 0 based index of CompressedSpeedDistance element to retrieve
/// Returns nullable byte representing the CompressedSpeedDistance field
public byte? GetCompressedSpeedDistance(int index)
{
return (byte?)GetFieldValue(8, index, Fit.SubfieldIndexMainField);
}
///
/// Set CompressedSpeedDistance field
/// 0 based index of compressed_speed_distance
/// Nullable field value to be set
public void SetCompressedSpeedDistance(int index, byte? compressedSpeedDistance_)
{
SetFieldValue(8, index, compressedSpeedDistance_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the Grade field
/// Units: %
/// Returns nullable float representing the Grade field
public float? GetGrade()
{
return (float?)GetFieldValue(9, 0, Fit.SubfieldIndexMainField);
}
///
/// Set Grade field
/// Units: %
/// Nullable field value to be set
public void SetGrade(float? grade_)
{
SetFieldValue(9, 0, grade_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the Resistance field
/// Comment: Relative. 0 is none 254 is Max.
/// Returns nullable byte representing the Resistance field
public byte? GetResistance()
{
return (byte?)GetFieldValue(10, 0, Fit.SubfieldIndexMainField);
}
///
/// Set Resistance field
/// Comment: Relative. 0 is none 254 is Max.
/// Nullable field value to be set
public void SetResistance(byte? resistance_)
{
SetFieldValue(10, 0, resistance_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the TimeFromCourse field
/// Units: s
/// Returns nullable float representing the TimeFromCourse field
public float? GetTimeFromCourse()
{
return (float?)GetFieldValue(11, 0, Fit.SubfieldIndexMainField);
}
///
/// Set TimeFromCourse field
/// Units: s
/// Nullable field value to be set
public void SetTimeFromCourse(float? timeFromCourse_)
{
SetFieldValue(11, 0, timeFromCourse_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the CycleLength field
/// Units: m
/// Returns nullable float representing the CycleLength field
public float? GetCycleLength()
{
return (float?)GetFieldValue(12, 0, Fit.SubfieldIndexMainField);
}
///
/// Set CycleLength field
/// Units: m
/// Nullable field value to be set
public void SetCycleLength(float? cycleLength_)
{
SetFieldValue(12, 0, cycleLength_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the Temperature field
/// Units: C
/// Returns nullable sbyte representing the Temperature field
public sbyte? GetTemperature()
{
return (sbyte?)GetFieldValue(13, 0, Fit.SubfieldIndexMainField);
}
///
/// Set Temperature field
/// Units: C
/// Nullable field value to be set
public void SetTemperature(sbyte? temperature_)
{
SetFieldValue(13, 0, temperature_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field Speed1s
public int GetNumSpeed1s()
{
return GetNumFieldValues(17, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the Speed1s field
/// Units: m/s
/// Comment: Speed at 1s intervals. Timestamp field indicates time of last array element.
/// 0 based index of Speed1s element to retrieve
/// Returns nullable float representing the Speed1s field
public float? GetSpeed1s(int index)
{
return (float?)GetFieldValue(17, index, Fit.SubfieldIndexMainField);
}
///
/// Set Speed1s field
/// Units: m/s
/// Comment: Speed at 1s intervals. Timestamp field indicates time of last array element.
/// 0 based index of speed_1s
/// Nullable field value to be set
public void SetSpeed1s(int index, float? speed1s_)
{
SetFieldValue(17, index, speed1s_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the Cycles field
/// Units: cycles
/// Returns nullable byte representing the Cycles field
public byte? GetCycles()
{
return (byte?)GetFieldValue(18, 0, Fit.SubfieldIndexMainField);
}
///
/// Set Cycles field
/// Units: cycles
/// Nullable field value to be set
public void SetCycles(byte? cycles_)
{
SetFieldValue(18, 0, cycles_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the TotalCycles field
/// Units: cycles
/// Returns nullable uint representing the TotalCycles field
public uint? GetTotalCycles()
{
return (uint?)GetFieldValue(19, 0, Fit.SubfieldIndexMainField);
}
///
/// Set TotalCycles field
/// Units: cycles
/// Nullable field value to be set
public void SetTotalCycles(uint? totalCycles_)
{
SetFieldValue(19, 0, totalCycles_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the CompressedAccumulatedPower field
/// Units: watts
/// Returns nullable ushort representing the CompressedAccumulatedPower field
public ushort? GetCompressedAccumulatedPower()
{
return (ushort?)GetFieldValue(28, 0, Fit.SubfieldIndexMainField);
}
///
/// Set CompressedAccumulatedPower field
/// Units: watts
/// Nullable field value to be set
public void SetCompressedAccumulatedPower(ushort? compressedAccumulatedPower_)
{
SetFieldValue(28, 0, compressedAccumulatedPower_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the AccumulatedPower field
/// Units: watts
/// Returns nullable uint representing the AccumulatedPower field
public uint? GetAccumulatedPower()
{
return (uint?)GetFieldValue(29, 0, Fit.SubfieldIndexMainField);
}
///
/// Set AccumulatedPower field
/// Units: watts
/// Nullable field value to be set
public void SetAccumulatedPower(uint? accumulatedPower_)
{
SetFieldValue(29, 0, accumulatedPower_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the LeftRightBalance field
/// Returns nullable byte representing the LeftRightBalance field
public byte? GetLeftRightBalance()
{
return (byte?)GetFieldValue(30, 0, Fit.SubfieldIndexMainField);
}
///
/// Set LeftRightBalance field
/// Nullable field value to be set
public void SetLeftRightBalance(byte? leftRightBalance_)
{
SetFieldValue(30, 0, leftRightBalance_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the GpsAccuracy field
/// Units: m
/// Returns nullable byte representing the GpsAccuracy field
public byte? GetGpsAccuracy()
{
return (byte?)GetFieldValue(31, 0, Fit.SubfieldIndexMainField);
}
///
/// Set GpsAccuracy field
/// Units: m
/// Nullable field value to be set
public void SetGpsAccuracy(byte? gpsAccuracy_)
{
SetFieldValue(31, 0, gpsAccuracy_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the VerticalSpeed field
/// Units: m/s
/// Returns nullable float representing the VerticalSpeed field
public float? GetVerticalSpeed()
{
return (float?)GetFieldValue(32, 0, Fit.SubfieldIndexMainField);
}
///
/// Set VerticalSpeed field
/// Units: m/s
/// Nullable field value to be set
public void SetVerticalSpeed(float? verticalSpeed_)
{
SetFieldValue(32, 0, verticalSpeed_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the Calories field
/// Units: kcal
/// Returns nullable ushort representing the Calories field
public ushort? GetCalories()
{
return (ushort?)GetFieldValue(33, 0, Fit.SubfieldIndexMainField);
}
///
/// Set Calories field
/// Units: kcal
/// Nullable field value to be set
public void SetCalories(ushort? calories_)
{
SetFieldValue(33, 0, calories_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the VerticalOscillation field
/// Units: mm
/// Returns nullable float representing the VerticalOscillation field
public float? GetVerticalOscillation()
{
return (float?)GetFieldValue(39, 0, Fit.SubfieldIndexMainField);
}
///
/// Set VerticalOscillation field
/// Units: mm
/// Nullable field value to be set
public void SetVerticalOscillation(float? verticalOscillation_)
{
SetFieldValue(39, 0, verticalOscillation_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the StanceTimePercent field
/// Units: percent
/// Returns nullable float representing the StanceTimePercent field
public float? GetStanceTimePercent()
{
return (float?)GetFieldValue(40, 0, Fit.SubfieldIndexMainField);
}
///
/// Set StanceTimePercent field
/// Units: percent
/// Nullable field value to be set
public void SetStanceTimePercent(float? stanceTimePercent_)
{
SetFieldValue(40, 0, stanceTimePercent_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the StanceTime field
/// Units: ms
/// Returns nullable float representing the StanceTime field
public float? GetStanceTime()
{
return (float?)GetFieldValue(41, 0, Fit.SubfieldIndexMainField);
}
///
/// Set StanceTime field
/// Units: ms
/// Nullable field value to be set
public void SetStanceTime(float? stanceTime_)
{
SetFieldValue(41, 0, stanceTime_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the ActivityType field
/// Returns nullable ActivityType enum representing the ActivityType field
public ActivityType? GetActivityType()
{
object obj = GetFieldValue(42, 0, Fit.SubfieldIndexMainField);
ActivityType? value = obj == null ? (ActivityType?)null : (ActivityType)obj;
return value;
}
///
/// Set ActivityType field
/// Nullable field value to be set
public void SetActivityType(ActivityType? activityType_)
{
SetFieldValue(42, 0, activityType_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the LeftTorqueEffectiveness field
/// Units: percent
/// Returns nullable float representing the LeftTorqueEffectiveness field
public float? GetLeftTorqueEffectiveness()
{
return (float?)GetFieldValue(43, 0, Fit.SubfieldIndexMainField);
}
///
/// Set LeftTorqueEffectiveness field
/// Units: percent
/// Nullable field value to be set
public void SetLeftTorqueEffectiveness(float? leftTorqueEffectiveness_)
{
SetFieldValue(43, 0, leftTorqueEffectiveness_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the RightTorqueEffectiveness field
/// Units: percent
/// Returns nullable float representing the RightTorqueEffectiveness field
public float? GetRightTorqueEffectiveness()
{
return (float?)GetFieldValue(44, 0, Fit.SubfieldIndexMainField);
}
///
/// Set RightTorqueEffectiveness field
/// Units: percent
/// Nullable field value to be set
public void SetRightTorqueEffectiveness(float? rightTorqueEffectiveness_)
{
SetFieldValue(44, 0, rightTorqueEffectiveness_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the LeftPedalSmoothness field
/// Units: percent
/// Returns nullable float representing the LeftPedalSmoothness field
public float? GetLeftPedalSmoothness()
{
return (float?)GetFieldValue(45, 0, Fit.SubfieldIndexMainField);
}
///
/// Set LeftPedalSmoothness field
/// Units: percent
/// Nullable field value to be set
public void SetLeftPedalSmoothness(float? leftPedalSmoothness_)
{
SetFieldValue(45, 0, leftPedalSmoothness_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the RightPedalSmoothness field
/// Units: percent
/// Returns nullable float representing the RightPedalSmoothness field
public float? GetRightPedalSmoothness()
{
return (float?)GetFieldValue(46, 0, Fit.SubfieldIndexMainField);
}
///
/// Set RightPedalSmoothness field
/// Units: percent
/// Nullable field value to be set
public void SetRightPedalSmoothness(float? rightPedalSmoothness_)
{
SetFieldValue(46, 0, rightPedalSmoothness_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the CombinedPedalSmoothness field
/// Units: percent
/// Returns nullable float representing the CombinedPedalSmoothness field
public float? GetCombinedPedalSmoothness()
{
return (float?)GetFieldValue(47, 0, Fit.SubfieldIndexMainField);
}
///
/// Set CombinedPedalSmoothness field
/// Units: percent
/// Nullable field value to be set
public void SetCombinedPedalSmoothness(float? combinedPedalSmoothness_)
{
SetFieldValue(47, 0, combinedPedalSmoothness_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the Time128 field
/// Units: s
/// Returns nullable float representing the Time128 field
public float? GetTime128()
{
return (float?)GetFieldValue(48, 0, Fit.SubfieldIndexMainField);
}
///
/// Set Time128 field
/// Units: s
/// Nullable field value to be set
public void SetTime128(float? time128_)
{
SetFieldValue(48, 0, time128_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the StrokeType field
/// Returns nullable StrokeType enum representing the StrokeType field
public StrokeType? GetStrokeType()
{
object obj = GetFieldValue(49, 0, Fit.SubfieldIndexMainField);
StrokeType? value = obj == null ? (StrokeType?)null : (StrokeType)obj;
return value;
}
///
/// Set StrokeType field
/// Nullable field value to be set
public void SetStrokeType(StrokeType? strokeType_)
{
SetFieldValue(49, 0, strokeType_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the Zone field
/// Returns nullable byte representing the Zone field
public byte? GetZone()
{
return (byte?)GetFieldValue(50, 0, Fit.SubfieldIndexMainField);
}
///
/// Set Zone field
/// Nullable field value to be set
public void SetZone(byte? zone_)
{
SetFieldValue(50, 0, zone_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the BallSpeed field
/// Units: m/s
/// Returns nullable float representing the BallSpeed field
public float? GetBallSpeed()
{
return (float?)GetFieldValue(51, 0, Fit.SubfieldIndexMainField);
}
///
/// Set BallSpeed field
/// Units: m/s
/// Nullable field value to be set
public void SetBallSpeed(float? ballSpeed_)
{
SetFieldValue(51, 0, ballSpeed_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the Cadence256 field
/// Units: rpm
/// Comment: Log cadence and fractional cadence for backwards compatability
/// Returns nullable float representing the Cadence256 field
public float? GetCadence256()
{
return (float?)GetFieldValue(52, 0, Fit.SubfieldIndexMainField);
}
///
/// Set Cadence256 field
/// Units: rpm
/// Comment: Log cadence and fractional cadence for backwards compatability
/// Nullable field value to be set
public void SetCadence256(float? cadence256_)
{
SetFieldValue(52, 0, cadence256_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the FractionalCadence field
/// Units: rpm
/// Returns nullable float representing the FractionalCadence field
public float? GetFractionalCadence()
{
return (float?)GetFieldValue(53, 0, Fit.SubfieldIndexMainField);
}
///
/// Set FractionalCadence field
/// Units: rpm
/// Nullable field value to be set
public void SetFractionalCadence(float? fractionalCadence_)
{
SetFieldValue(53, 0, fractionalCadence_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the TotalHemoglobinConc field
/// Units: g/dL
/// Comment: Total saturated and unsaturated hemoglobin
/// Returns nullable float representing the TotalHemoglobinConc field
public float? GetTotalHemoglobinConc()
{
return (float?)GetFieldValue(54, 0, Fit.SubfieldIndexMainField);
}
///
/// Set TotalHemoglobinConc field
/// Units: g/dL
/// Comment: Total saturated and unsaturated hemoglobin
/// Nullable field value to be set
public void SetTotalHemoglobinConc(float? totalHemoglobinConc_)
{
SetFieldValue(54, 0, totalHemoglobinConc_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the TotalHemoglobinConcMin field
/// Units: g/dL
/// Comment: Min saturated and unsaturated hemoglobin
/// Returns nullable float representing the TotalHemoglobinConcMin field
public float? GetTotalHemoglobinConcMin()
{
return (float?)GetFieldValue(55, 0, Fit.SubfieldIndexMainField);
}
///
/// Set TotalHemoglobinConcMin field
/// Units: g/dL
/// Comment: Min saturated and unsaturated hemoglobin
/// Nullable field value to be set
public void SetTotalHemoglobinConcMin(float? totalHemoglobinConcMin_)
{
SetFieldValue(55, 0, totalHemoglobinConcMin_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the TotalHemoglobinConcMax field
/// Units: g/dL
/// Comment: Max saturated and unsaturated hemoglobin
/// Returns nullable float representing the TotalHemoglobinConcMax field
public float? GetTotalHemoglobinConcMax()
{
return (float?)GetFieldValue(56, 0, Fit.SubfieldIndexMainField);
}
///
/// Set TotalHemoglobinConcMax field
/// Units: g/dL
/// Comment: Max saturated and unsaturated hemoglobin
/// Nullable field value to be set
public void SetTotalHemoglobinConcMax(float? totalHemoglobinConcMax_)
{
SetFieldValue(56, 0, totalHemoglobinConcMax_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the SaturatedHemoglobinPercent field
/// Units: %
/// Comment: Percentage of hemoglobin saturated with oxygen
/// Returns nullable float representing the SaturatedHemoglobinPercent field
public float? GetSaturatedHemoglobinPercent()
{
return (float?)GetFieldValue(57, 0, Fit.SubfieldIndexMainField);
}
///
/// Set SaturatedHemoglobinPercent field
/// Units: %
/// Comment: Percentage of hemoglobin saturated with oxygen
/// Nullable field value to be set
public void SetSaturatedHemoglobinPercent(float? saturatedHemoglobinPercent_)
{
SetFieldValue(57, 0, saturatedHemoglobinPercent_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the SaturatedHemoglobinPercentMin field
/// Units: %
/// Comment: Min percentage of hemoglobin saturated with oxygen
/// Returns nullable float representing the SaturatedHemoglobinPercentMin field
public float? GetSaturatedHemoglobinPercentMin()
{
return (float?)GetFieldValue(58, 0, Fit.SubfieldIndexMainField);
}
///
/// Set SaturatedHemoglobinPercentMin field
/// Units: %
/// Comment: Min percentage of hemoglobin saturated with oxygen
/// Nullable field value to be set
public void SetSaturatedHemoglobinPercentMin(float? saturatedHemoglobinPercentMin_)
{
SetFieldValue(58, 0, saturatedHemoglobinPercentMin_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the SaturatedHemoglobinPercentMax field
/// Units: %
/// Comment: Max percentage of hemoglobin saturated with oxygen
/// Returns nullable float representing the SaturatedHemoglobinPercentMax field
public float? GetSaturatedHemoglobinPercentMax()
{
return (float?)GetFieldValue(59, 0, Fit.SubfieldIndexMainField);
}
///
/// Set SaturatedHemoglobinPercentMax field
/// Units: %
/// Comment: Max percentage of hemoglobin saturated with oxygen
/// Nullable field value to be set
public void SetSaturatedHemoglobinPercentMax(float? saturatedHemoglobinPercentMax_)
{
SetFieldValue(59, 0, saturatedHemoglobinPercentMax_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the DeviceIndex field
/// Returns nullable byte representing the DeviceIndex field
public byte? GetDeviceIndex()
{
return (byte?)GetFieldValue(62, 0, Fit.SubfieldIndexMainField);
}
///
/// Set DeviceIndex field
/// Nullable field value to be set
public void SetDeviceIndex(byte? deviceIndex_)
{
SetFieldValue(62, 0, deviceIndex_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the LeftPco field
/// Units: mm
/// Comment: Left platform center offset
/// Returns nullable sbyte representing the LeftPco field
public sbyte? GetLeftPco()
{
return (sbyte?)GetFieldValue(67, 0, Fit.SubfieldIndexMainField);
}
///
/// Set LeftPco field
/// Units: mm
/// Comment: Left platform center offset
/// Nullable field value to be set
public void SetLeftPco(sbyte? leftPco_)
{
SetFieldValue(67, 0, leftPco_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the RightPco field
/// Units: mm
/// Comment: Right platform center offset
/// Returns nullable sbyte representing the RightPco field
public sbyte? GetRightPco()
{
return (sbyte?)GetFieldValue(68, 0, Fit.SubfieldIndexMainField);
}
///
/// Set RightPco field
/// Units: mm
/// Comment: Right platform center offset
/// Nullable field value to be set
public void SetRightPco(sbyte? rightPco_)
{
SetFieldValue(68, 0, rightPco_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field LeftPowerPhase
public int GetNumLeftPowerPhase()
{
return GetNumFieldValues(69, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the LeftPowerPhase field
/// Units: degrees
/// Comment: Left power phase angles. Data value indexes defined by power_phase_type.
/// 0 based index of LeftPowerPhase element to retrieve
/// Returns nullable byte representing the LeftPowerPhase field
public byte? GetLeftPowerPhase(int index)
{
return (byte?)GetFieldValue(69, index, Fit.SubfieldIndexMainField);
}
///
/// Set LeftPowerPhase field
/// Units: degrees
/// Comment: Left power phase angles. Data value indexes defined by power_phase_type.
/// 0 based index of left_power_phase
/// Nullable field value to be set
public void SetLeftPowerPhase(int index, byte? leftPowerPhase_)
{
SetFieldValue(69, index, leftPowerPhase_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field LeftPowerPhasePeak
public int GetNumLeftPowerPhasePeak()
{
return GetNumFieldValues(70, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the LeftPowerPhasePeak field
/// Units: degrees
/// Comment: Left power phase peak angles. Data value indexes defined by power_phase_type.
/// 0 based index of LeftPowerPhasePeak element to retrieve
/// Returns nullable byte representing the LeftPowerPhasePeak field
public byte? GetLeftPowerPhasePeak(int index)
{
return (byte?)GetFieldValue(70, index, Fit.SubfieldIndexMainField);
}
///
/// Set LeftPowerPhasePeak field
/// Units: degrees
/// Comment: Left power phase peak angles. Data value indexes defined by power_phase_type.
/// 0 based index of left_power_phase_peak
/// Nullable field value to be set
public void SetLeftPowerPhasePeak(int index, byte? leftPowerPhasePeak_)
{
SetFieldValue(70, index, leftPowerPhasePeak_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field RightPowerPhase
public int GetNumRightPowerPhase()
{
return GetNumFieldValues(71, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the RightPowerPhase field
/// Units: degrees
/// Comment: Right power phase angles. Data value indexes defined by power_phase_type.
/// 0 based index of RightPowerPhase element to retrieve
/// Returns nullable byte representing the RightPowerPhase field
public byte? GetRightPowerPhase(int index)
{
return (byte?)GetFieldValue(71, index, Fit.SubfieldIndexMainField);
}
///
/// Set RightPowerPhase field
/// Units: degrees
/// Comment: Right power phase angles. Data value indexes defined by power_phase_type.
/// 0 based index of right_power_phase
/// Nullable field value to be set
public void SetRightPowerPhase(int index, byte? rightPowerPhase_)
{
SetFieldValue(71, index, rightPowerPhase_, Fit.SubfieldIndexMainField);
}
///
///
///
/// returns number of elements in field RightPowerPhasePeak
public int GetNumRightPowerPhasePeak()
{
return GetNumFieldValues(72, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the RightPowerPhasePeak field
/// Units: degrees
/// Comment: Right power phase peak angles. Data value indexes defined by power_phase_type.
/// 0 based index of RightPowerPhasePeak element to retrieve
/// Returns nullable byte representing the RightPowerPhasePeak field
public byte? GetRightPowerPhasePeak(int index)
{
return (byte?)GetFieldValue(72, index, Fit.SubfieldIndexMainField);
}
///
/// Set RightPowerPhasePeak field
/// Units: degrees
/// Comment: Right power phase peak angles. Data value indexes defined by power_phase_type.
/// 0 based index of right_power_phase_peak
/// Nullable field value to be set
public void SetRightPowerPhasePeak(int index, byte? rightPowerPhasePeak_)
{
SetFieldValue(72, index, rightPowerPhasePeak_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the EnhancedSpeed field
/// Units: m/s
/// Returns nullable float representing the EnhancedSpeed field
public float? GetEnhancedSpeed()
{
return (float?)GetFieldValue(73, 0, Fit.SubfieldIndexMainField);
}
///
/// Set EnhancedSpeed field
/// Units: m/s
/// Nullable field value to be set
public void SetEnhancedSpeed(float? enhancedSpeed_)
{
SetFieldValue(73, 0, enhancedSpeed_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the EnhancedAltitude field
/// Units: m
/// Returns nullable float representing the EnhancedAltitude field
public float? GetEnhancedAltitude()
{
return (float?)GetFieldValue(78, 0, Fit.SubfieldIndexMainField);
}
///
/// Set EnhancedAltitude field
/// Units: m
/// Nullable field value to be set
public void SetEnhancedAltitude(float? enhancedAltitude_)
{
SetFieldValue(78, 0, enhancedAltitude_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the BatterySoc field
/// Units: percent
/// Comment: lev battery state of charge
/// Returns nullable float representing the BatterySoc field
public float? GetBatterySoc()
{
return (float?)GetFieldValue(81, 0, Fit.SubfieldIndexMainField);
}
///
/// Set BatterySoc field
/// Units: percent
/// Comment: lev battery state of charge
/// Nullable field value to be set
public void SetBatterySoc(float? batterySoc_)
{
SetFieldValue(81, 0, batterySoc_, Fit.SubfieldIndexMainField);
}
///
/// Retrieves the MotorPower field
/// Units: watts
/// Comment: lev motor power
/// Returns nullable ushort representing the MotorPower field
public ushort? GetMotorPower()
{
return (ushort?)GetFieldValue(82, 0, Fit.SubfieldIndexMainField);
}
///
/// Set MotorPower field
/// Units: watts
/// Comment: lev motor power
/// Nullable field value to be set
public void SetMotorPower(ushort? motorPower_)
{
SetFieldValue(82, 0, motorPower_, Fit.SubfieldIndexMainField);
}
#endregion // Methods
} // Class
} // namespace