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