LapMesg.cs 89 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660
  1. #region Copyright
  2. ////////////////////////////////////////////////////////////////////////////////
  3. // The following FIT Protocol software provided may be used with FIT protocol
  4. // devices only and remains the copyrighted property of Dynastream Innovations Inc.
  5. // The software is being provided on an "as-is" basis and as an accommodation,
  6. // and therefore all warranties, representations, or guarantees of any kind
  7. // (whether express, implied or statutory) including, without limitation,
  8. // warranties of merchantability, non-infringement, or fitness for a particular
  9. // purpose, are specifically disclaimed.
  10. //
  11. // Copyright 2016 Dynastream Innovations Inc.
  12. ////////////////////////////////////////////////////////////////////////////////
  13. // ****WARNING**** This file is auto-generated! Do NOT edit this file.
  14. // Profile Version = 16.60Release
  15. // Tag = production-akw-16.60.00-0-g5d3d436
  16. ////////////////////////////////////////////////////////////////////////////////
  17. #endregion
  18. using System;
  19. using System.Collections.Generic;
  20. using System.Diagnostics;
  21. using System.Text;
  22. using System.IO;
  23. namespace Dynastream.Fit
  24. {
  25. /// <summary>
  26. /// Implements the Lap profile message.
  27. /// </summary>
  28. public class LapMesg : Mesg
  29. {
  30. #region Fields
  31. static class TotalCyclesSubfield
  32. {
  33. public static ushort TotalStrides = 0;
  34. public static ushort Subfields = 1;
  35. public static ushort Active = Fit.SubfieldIndexActiveSubfield;
  36. public static ushort MainField = Fit.SubfieldIndexMainField;
  37. }
  38. static class AvgCadenceSubfield
  39. {
  40. public static ushort AvgRunningCadence = 0;
  41. public static ushort Subfields = 1;
  42. public static ushort Active = Fit.SubfieldIndexActiveSubfield;
  43. public static ushort MainField = Fit.SubfieldIndexMainField;
  44. }
  45. static class MaxCadenceSubfield
  46. {
  47. public static ushort MaxRunningCadence = 0;
  48. public static ushort Subfields = 1;
  49. public static ushort Active = Fit.SubfieldIndexActiveSubfield;
  50. public static ushort MainField = Fit.SubfieldIndexMainField;
  51. }
  52. #endregion
  53. #region Constructors
  54. public LapMesg() : base(Profile.GetMesg(MesgNum.Lap))
  55. {
  56. }
  57. public LapMesg(Mesg mesg) : base(mesg)
  58. {
  59. }
  60. #endregion // Constructors
  61. #region Methods
  62. ///<summary>
  63. /// Retrieves the MessageIndex field</summary>
  64. /// <returns>Returns nullable ushort representing the MessageIndex field</returns>
  65. public ushort? GetMessageIndex()
  66. {
  67. return (ushort?)GetFieldValue(254, 0, Fit.SubfieldIndexMainField);
  68. }
  69. /// <summary>
  70. /// Set MessageIndex field</summary>
  71. /// <param name="messageIndex_">Nullable field value to be set</param>
  72. public void SetMessageIndex(ushort? messageIndex_)
  73. {
  74. SetFieldValue(254, 0, messageIndex_, Fit.SubfieldIndexMainField);
  75. }
  76. ///<summary>
  77. /// Retrieves the Timestamp field
  78. /// Units: s
  79. /// Comment: Lap end time.</summary>
  80. /// <returns>Returns DateTime representing the Timestamp field</returns>
  81. public DateTime GetTimestamp()
  82. {
  83. return TimestampToDateTime((uint?)GetFieldValue(253, 0, Fit.SubfieldIndexMainField));
  84. }
  85. /// <summary>
  86. /// Set Timestamp field
  87. /// Units: s
  88. /// Comment: Lap end time.</summary>
  89. /// <param name="timestamp_">Nullable field value to be set</param>
  90. public void SetTimestamp(DateTime timestamp_)
  91. {
  92. SetFieldValue(253, 0, timestamp_.GetTimeStamp(), Fit.SubfieldIndexMainField);
  93. }
  94. ///<summary>
  95. /// Retrieves the Event field</summary>
  96. /// <returns>Returns nullable Event enum representing the Event field</returns>
  97. public Event? GetEvent()
  98. {
  99. object obj = GetFieldValue(0, 0, Fit.SubfieldIndexMainField);
  100. Event? value = obj == null ? (Event?)null : (Event)obj;
  101. return value;
  102. }
  103. /// <summary>
  104. /// Set Event field</summary>
  105. /// <param name="event_">Nullable field value to be set</param>
  106. public void SetEvent(Event? event_)
  107. {
  108. SetFieldValue(0, 0, event_, Fit.SubfieldIndexMainField);
  109. }
  110. ///<summary>
  111. /// Retrieves the EventType field</summary>
  112. /// <returns>Returns nullable EventType enum representing the EventType field</returns>
  113. public EventType? GetEventType()
  114. {
  115. object obj = GetFieldValue(1, 0, Fit.SubfieldIndexMainField);
  116. EventType? value = obj == null ? (EventType?)null : (EventType)obj;
  117. return value;
  118. }
  119. /// <summary>
  120. /// Set EventType field</summary>
  121. /// <param name="eventType_">Nullable field value to be set</param>
  122. public void SetEventType(EventType? eventType_)
  123. {
  124. SetFieldValue(1, 0, eventType_, Fit.SubfieldIndexMainField);
  125. }
  126. ///<summary>
  127. /// Retrieves the StartTime field</summary>
  128. /// <returns>Returns DateTime representing the StartTime field</returns>
  129. public DateTime GetStartTime()
  130. {
  131. return TimestampToDateTime((uint?)GetFieldValue(2, 0, Fit.SubfieldIndexMainField));
  132. }
  133. /// <summary>
  134. /// Set StartTime field</summary>
  135. /// <param name="startTime_">Nullable field value to be set</param>
  136. public void SetStartTime(DateTime startTime_)
  137. {
  138. SetFieldValue(2, 0, startTime_.GetTimeStamp(), Fit.SubfieldIndexMainField);
  139. }
  140. ///<summary>
  141. /// Retrieves the StartPositionLat field
  142. /// Units: semicircles</summary>
  143. /// <returns>Returns nullable int representing the StartPositionLat field</returns>
  144. public int? GetStartPositionLat()
  145. {
  146. return (int?)GetFieldValue(3, 0, Fit.SubfieldIndexMainField);
  147. }
  148. /// <summary>
  149. /// Set StartPositionLat field
  150. /// Units: semicircles</summary>
  151. /// <param name="startPositionLat_">Nullable field value to be set</param>
  152. public void SetStartPositionLat(int? startPositionLat_)
  153. {
  154. SetFieldValue(3, 0, startPositionLat_, Fit.SubfieldIndexMainField);
  155. }
  156. ///<summary>
  157. /// Retrieves the StartPositionLong field
  158. /// Units: semicircles</summary>
  159. /// <returns>Returns nullable int representing the StartPositionLong field</returns>
  160. public int? GetStartPositionLong()
  161. {
  162. return (int?)GetFieldValue(4, 0, Fit.SubfieldIndexMainField);
  163. }
  164. /// <summary>
  165. /// Set StartPositionLong field
  166. /// Units: semicircles</summary>
  167. /// <param name="startPositionLong_">Nullable field value to be set</param>
  168. public void SetStartPositionLong(int? startPositionLong_)
  169. {
  170. SetFieldValue(4, 0, startPositionLong_, Fit.SubfieldIndexMainField);
  171. }
  172. ///<summary>
  173. /// Retrieves the EndPositionLat field
  174. /// Units: semicircles</summary>
  175. /// <returns>Returns nullable int representing the EndPositionLat field</returns>
  176. public int? GetEndPositionLat()
  177. {
  178. return (int?)GetFieldValue(5, 0, Fit.SubfieldIndexMainField);
  179. }
  180. /// <summary>
  181. /// Set EndPositionLat field
  182. /// Units: semicircles</summary>
  183. /// <param name="endPositionLat_">Nullable field value to be set</param>
  184. public void SetEndPositionLat(int? endPositionLat_)
  185. {
  186. SetFieldValue(5, 0, endPositionLat_, Fit.SubfieldIndexMainField);
  187. }
  188. ///<summary>
  189. /// Retrieves the EndPositionLong field
  190. /// Units: semicircles</summary>
  191. /// <returns>Returns nullable int representing the EndPositionLong field</returns>
  192. public int? GetEndPositionLong()
  193. {
  194. return (int?)GetFieldValue(6, 0, Fit.SubfieldIndexMainField);
  195. }
  196. /// <summary>
  197. /// Set EndPositionLong field
  198. /// Units: semicircles</summary>
  199. /// <param name="endPositionLong_">Nullable field value to be set</param>
  200. public void SetEndPositionLong(int? endPositionLong_)
  201. {
  202. SetFieldValue(6, 0, endPositionLong_, Fit.SubfieldIndexMainField);
  203. }
  204. ///<summary>
  205. /// Retrieves the TotalElapsedTime field
  206. /// Units: s
  207. /// Comment: Time (includes pauses)</summary>
  208. /// <returns>Returns nullable float representing the TotalElapsedTime field</returns>
  209. public float? GetTotalElapsedTime()
  210. {
  211. return (float?)GetFieldValue(7, 0, Fit.SubfieldIndexMainField);
  212. }
  213. /// <summary>
  214. /// Set TotalElapsedTime field
  215. /// Units: s
  216. /// Comment: Time (includes pauses)</summary>
  217. /// <param name="totalElapsedTime_">Nullable field value to be set</param>
  218. public void SetTotalElapsedTime(float? totalElapsedTime_)
  219. {
  220. SetFieldValue(7, 0, totalElapsedTime_, Fit.SubfieldIndexMainField);
  221. }
  222. ///<summary>
  223. /// Retrieves the TotalTimerTime field
  224. /// Units: s
  225. /// Comment: Timer Time (excludes pauses)</summary>
  226. /// <returns>Returns nullable float representing the TotalTimerTime field</returns>
  227. public float? GetTotalTimerTime()
  228. {
  229. return (float?)GetFieldValue(8, 0, Fit.SubfieldIndexMainField);
  230. }
  231. /// <summary>
  232. /// Set TotalTimerTime field
  233. /// Units: s
  234. /// Comment: Timer Time (excludes pauses)</summary>
  235. /// <param name="totalTimerTime_">Nullable field value to be set</param>
  236. public void SetTotalTimerTime(float? totalTimerTime_)
  237. {
  238. SetFieldValue(8, 0, totalTimerTime_, Fit.SubfieldIndexMainField);
  239. }
  240. ///<summary>
  241. /// Retrieves the TotalDistance field
  242. /// Units: m</summary>
  243. /// <returns>Returns nullable float representing the TotalDistance field</returns>
  244. public float? GetTotalDistance()
  245. {
  246. return (float?)GetFieldValue(9, 0, Fit.SubfieldIndexMainField);
  247. }
  248. /// <summary>
  249. /// Set TotalDistance field
  250. /// Units: m</summary>
  251. /// <param name="totalDistance_">Nullable field value to be set</param>
  252. public void SetTotalDistance(float? totalDistance_)
  253. {
  254. SetFieldValue(9, 0, totalDistance_, Fit.SubfieldIndexMainField);
  255. }
  256. ///<summary>
  257. /// Retrieves the TotalCycles field
  258. /// Units: cycles</summary>
  259. /// <returns>Returns nullable uint representing the TotalCycles field</returns>
  260. public uint? GetTotalCycles()
  261. {
  262. return (uint?)GetFieldValue(10, 0, Fit.SubfieldIndexMainField);
  263. }
  264. /// <summary>
  265. /// Set TotalCycles field
  266. /// Units: cycles</summary>
  267. /// <param name="totalCycles_">Nullable field value to be set</param>
  268. public void SetTotalCycles(uint? totalCycles_)
  269. {
  270. SetFieldValue(10, 0, totalCycles_, Fit.SubfieldIndexMainField);
  271. }
  272. /// <summary>
  273. /// Retrieves the TotalStrides subfield
  274. /// Units: strides</summary>
  275. /// <returns>Nullable uint representing the TotalStrides subfield</returns>
  276. public uint? GetTotalStrides()
  277. {
  278. return (uint?)GetFieldValue(10, 0, TotalCyclesSubfield.TotalStrides);
  279. }
  280. /// <summary>
  281. ///
  282. /// Set TotalStrides subfield
  283. /// Units: strides</summary>
  284. /// <param name="totalStrides">Subfield value to be set</param>
  285. public void SetTotalStrides(uint? totalStrides)
  286. {
  287. SetFieldValue(10, 0, totalStrides, TotalCyclesSubfield.TotalStrides);
  288. }
  289. ///<summary>
  290. /// Retrieves the TotalCalories field
  291. /// Units: kcal</summary>
  292. /// <returns>Returns nullable ushort representing the TotalCalories field</returns>
  293. public ushort? GetTotalCalories()
  294. {
  295. return (ushort?)GetFieldValue(11, 0, Fit.SubfieldIndexMainField);
  296. }
  297. /// <summary>
  298. /// Set TotalCalories field
  299. /// Units: kcal</summary>
  300. /// <param name="totalCalories_">Nullable field value to be set</param>
  301. public void SetTotalCalories(ushort? totalCalories_)
  302. {
  303. SetFieldValue(11, 0, totalCalories_, Fit.SubfieldIndexMainField);
  304. }
  305. ///<summary>
  306. /// Retrieves the TotalFatCalories field
  307. /// Units: kcal
  308. /// Comment: If New Leaf</summary>
  309. /// <returns>Returns nullable ushort representing the TotalFatCalories field</returns>
  310. public ushort? GetTotalFatCalories()
  311. {
  312. return (ushort?)GetFieldValue(12, 0, Fit.SubfieldIndexMainField);
  313. }
  314. /// <summary>
  315. /// Set TotalFatCalories field
  316. /// Units: kcal
  317. /// Comment: If New Leaf</summary>
  318. /// <param name="totalFatCalories_">Nullable field value to be set</param>
  319. public void SetTotalFatCalories(ushort? totalFatCalories_)
  320. {
  321. SetFieldValue(12, 0, totalFatCalories_, Fit.SubfieldIndexMainField);
  322. }
  323. ///<summary>
  324. /// Retrieves the AvgSpeed field
  325. /// Units: m/s</summary>
  326. /// <returns>Returns nullable float representing the AvgSpeed field</returns>
  327. public float? GetAvgSpeed()
  328. {
  329. return (float?)GetFieldValue(13, 0, Fit.SubfieldIndexMainField);
  330. }
  331. /// <summary>
  332. /// Set AvgSpeed field
  333. /// Units: m/s</summary>
  334. /// <param name="avgSpeed_">Nullable field value to be set</param>
  335. public void SetAvgSpeed(float? avgSpeed_)
  336. {
  337. SetFieldValue(13, 0, avgSpeed_, Fit.SubfieldIndexMainField);
  338. }
  339. ///<summary>
  340. /// Retrieves the MaxSpeed field
  341. /// Units: m/s</summary>
  342. /// <returns>Returns nullable float representing the MaxSpeed field</returns>
  343. public float? GetMaxSpeed()
  344. {
  345. return (float?)GetFieldValue(14, 0, Fit.SubfieldIndexMainField);
  346. }
  347. /// <summary>
  348. /// Set MaxSpeed field
  349. /// Units: m/s</summary>
  350. /// <param name="maxSpeed_">Nullable field value to be set</param>
  351. public void SetMaxSpeed(float? maxSpeed_)
  352. {
  353. SetFieldValue(14, 0, maxSpeed_, Fit.SubfieldIndexMainField);
  354. }
  355. ///<summary>
  356. /// Retrieves the AvgHeartRate field
  357. /// Units: bpm</summary>
  358. /// <returns>Returns nullable byte representing the AvgHeartRate field</returns>
  359. public byte? GetAvgHeartRate()
  360. {
  361. return (byte?)GetFieldValue(15, 0, Fit.SubfieldIndexMainField);
  362. }
  363. /// <summary>
  364. /// Set AvgHeartRate field
  365. /// Units: bpm</summary>
  366. /// <param name="avgHeartRate_">Nullable field value to be set</param>
  367. public void SetAvgHeartRate(byte? avgHeartRate_)
  368. {
  369. SetFieldValue(15, 0, avgHeartRate_, Fit.SubfieldIndexMainField);
  370. }
  371. ///<summary>
  372. /// Retrieves the MaxHeartRate field
  373. /// Units: bpm</summary>
  374. /// <returns>Returns nullable byte representing the MaxHeartRate field</returns>
  375. public byte? GetMaxHeartRate()
  376. {
  377. return (byte?)GetFieldValue(16, 0, Fit.SubfieldIndexMainField);
  378. }
  379. /// <summary>
  380. /// Set MaxHeartRate field
  381. /// Units: bpm</summary>
  382. /// <param name="maxHeartRate_">Nullable field value to be set</param>
  383. public void SetMaxHeartRate(byte? maxHeartRate_)
  384. {
  385. SetFieldValue(16, 0, maxHeartRate_, Fit.SubfieldIndexMainField);
  386. }
  387. ///<summary>
  388. /// Retrieves the AvgCadence field
  389. /// Units: rpm
  390. /// Comment: total_cycles / total_timer_time if non_zero_avg_cadence otherwise total_cycles / total_elapsed_time</summary>
  391. /// <returns>Returns nullable byte representing the AvgCadence field</returns>
  392. public byte? GetAvgCadence()
  393. {
  394. return (byte?)GetFieldValue(17, 0, Fit.SubfieldIndexMainField);
  395. }
  396. /// <summary>
  397. /// Set AvgCadence field
  398. /// Units: rpm
  399. /// Comment: total_cycles / total_timer_time if non_zero_avg_cadence otherwise total_cycles / total_elapsed_time</summary>
  400. /// <param name="avgCadence_">Nullable field value to be set</param>
  401. public void SetAvgCadence(byte? avgCadence_)
  402. {
  403. SetFieldValue(17, 0, avgCadence_, Fit.SubfieldIndexMainField);
  404. }
  405. /// <summary>
  406. /// Retrieves the AvgRunningCadence subfield
  407. /// Units: strides/min</summary>
  408. /// <returns>Nullable byte representing the AvgRunningCadence subfield</returns>
  409. public byte? GetAvgRunningCadence()
  410. {
  411. return (byte?)GetFieldValue(17, 0, AvgCadenceSubfield.AvgRunningCadence);
  412. }
  413. /// <summary>
  414. ///
  415. /// Set AvgRunningCadence subfield
  416. /// Units: strides/min</summary>
  417. /// <param name="avgRunningCadence">Subfield value to be set</param>
  418. public void SetAvgRunningCadence(byte? avgRunningCadence)
  419. {
  420. SetFieldValue(17, 0, avgRunningCadence, AvgCadenceSubfield.AvgRunningCadence);
  421. }
  422. ///<summary>
  423. /// Retrieves the MaxCadence field
  424. /// Units: rpm</summary>
  425. /// <returns>Returns nullable byte representing the MaxCadence field</returns>
  426. public byte? GetMaxCadence()
  427. {
  428. return (byte?)GetFieldValue(18, 0, Fit.SubfieldIndexMainField);
  429. }
  430. /// <summary>
  431. /// Set MaxCadence field
  432. /// Units: rpm</summary>
  433. /// <param name="maxCadence_">Nullable field value to be set</param>
  434. public void SetMaxCadence(byte? maxCadence_)
  435. {
  436. SetFieldValue(18, 0, maxCadence_, Fit.SubfieldIndexMainField);
  437. }
  438. /// <summary>
  439. /// Retrieves the MaxRunningCadence subfield
  440. /// Units: strides/min</summary>
  441. /// <returns>Nullable byte representing the MaxRunningCadence subfield</returns>
  442. public byte? GetMaxRunningCadence()
  443. {
  444. return (byte?)GetFieldValue(18, 0, MaxCadenceSubfield.MaxRunningCadence);
  445. }
  446. /// <summary>
  447. ///
  448. /// Set MaxRunningCadence subfield
  449. /// Units: strides/min</summary>
  450. /// <param name="maxRunningCadence">Subfield value to be set</param>
  451. public void SetMaxRunningCadence(byte? maxRunningCadence)
  452. {
  453. SetFieldValue(18, 0, maxRunningCadence, MaxCadenceSubfield.MaxRunningCadence);
  454. }
  455. ///<summary>
  456. /// Retrieves the AvgPower field
  457. /// Units: watts
  458. /// Comment: total_power / total_timer_time if non_zero_avg_power otherwise total_power / total_elapsed_time</summary>
  459. /// <returns>Returns nullable ushort representing the AvgPower field</returns>
  460. public ushort? GetAvgPower()
  461. {
  462. return (ushort?)GetFieldValue(19, 0, Fit.SubfieldIndexMainField);
  463. }
  464. /// <summary>
  465. /// Set AvgPower field
  466. /// Units: watts
  467. /// Comment: total_power / total_timer_time if non_zero_avg_power otherwise total_power / total_elapsed_time</summary>
  468. /// <param name="avgPower_">Nullable field value to be set</param>
  469. public void SetAvgPower(ushort? avgPower_)
  470. {
  471. SetFieldValue(19, 0, avgPower_, Fit.SubfieldIndexMainField);
  472. }
  473. ///<summary>
  474. /// Retrieves the MaxPower field
  475. /// Units: watts</summary>
  476. /// <returns>Returns nullable ushort representing the MaxPower field</returns>
  477. public ushort? GetMaxPower()
  478. {
  479. return (ushort?)GetFieldValue(20, 0, Fit.SubfieldIndexMainField);
  480. }
  481. /// <summary>
  482. /// Set MaxPower field
  483. /// Units: watts</summary>
  484. /// <param name="maxPower_">Nullable field value to be set</param>
  485. public void SetMaxPower(ushort? maxPower_)
  486. {
  487. SetFieldValue(20, 0, maxPower_, Fit.SubfieldIndexMainField);
  488. }
  489. ///<summary>
  490. /// Retrieves the TotalAscent field
  491. /// Units: m</summary>
  492. /// <returns>Returns nullable ushort representing the TotalAscent field</returns>
  493. public ushort? GetTotalAscent()
  494. {
  495. return (ushort?)GetFieldValue(21, 0, Fit.SubfieldIndexMainField);
  496. }
  497. /// <summary>
  498. /// Set TotalAscent field
  499. /// Units: m</summary>
  500. /// <param name="totalAscent_">Nullable field value to be set</param>
  501. public void SetTotalAscent(ushort? totalAscent_)
  502. {
  503. SetFieldValue(21, 0, totalAscent_, Fit.SubfieldIndexMainField);
  504. }
  505. ///<summary>
  506. /// Retrieves the TotalDescent field
  507. /// Units: m</summary>
  508. /// <returns>Returns nullable ushort representing the TotalDescent field</returns>
  509. public ushort? GetTotalDescent()
  510. {
  511. return (ushort?)GetFieldValue(22, 0, Fit.SubfieldIndexMainField);
  512. }
  513. /// <summary>
  514. /// Set TotalDescent field
  515. /// Units: m</summary>
  516. /// <param name="totalDescent_">Nullable field value to be set</param>
  517. public void SetTotalDescent(ushort? totalDescent_)
  518. {
  519. SetFieldValue(22, 0, totalDescent_, Fit.SubfieldIndexMainField);
  520. }
  521. ///<summary>
  522. /// Retrieves the Intensity field</summary>
  523. /// <returns>Returns nullable Intensity enum representing the Intensity field</returns>
  524. public Intensity? GetIntensity()
  525. {
  526. object obj = GetFieldValue(23, 0, Fit.SubfieldIndexMainField);
  527. Intensity? value = obj == null ? (Intensity?)null : (Intensity)obj;
  528. return value;
  529. }
  530. /// <summary>
  531. /// Set Intensity field</summary>
  532. /// <param name="intensity_">Nullable field value to be set</param>
  533. public void SetIntensity(Intensity? intensity_)
  534. {
  535. SetFieldValue(23, 0, intensity_, Fit.SubfieldIndexMainField);
  536. }
  537. ///<summary>
  538. /// Retrieves the LapTrigger field</summary>
  539. /// <returns>Returns nullable LapTrigger enum representing the LapTrigger field</returns>
  540. public LapTrigger? GetLapTrigger()
  541. {
  542. object obj = GetFieldValue(24, 0, Fit.SubfieldIndexMainField);
  543. LapTrigger? value = obj == null ? (LapTrigger?)null : (LapTrigger)obj;
  544. return value;
  545. }
  546. /// <summary>
  547. /// Set LapTrigger field</summary>
  548. /// <param name="lapTrigger_">Nullable field value to be set</param>
  549. public void SetLapTrigger(LapTrigger? lapTrigger_)
  550. {
  551. SetFieldValue(24, 0, lapTrigger_, Fit.SubfieldIndexMainField);
  552. }
  553. ///<summary>
  554. /// Retrieves the Sport field</summary>
  555. /// <returns>Returns nullable Sport enum representing the Sport field</returns>
  556. public Sport? GetSport()
  557. {
  558. object obj = GetFieldValue(25, 0, Fit.SubfieldIndexMainField);
  559. Sport? value = obj == null ? (Sport?)null : (Sport)obj;
  560. return value;
  561. }
  562. /// <summary>
  563. /// Set Sport field</summary>
  564. /// <param name="sport_">Nullable field value to be set</param>
  565. public void SetSport(Sport? sport_)
  566. {
  567. SetFieldValue(25, 0, sport_, Fit.SubfieldIndexMainField);
  568. }
  569. ///<summary>
  570. /// Retrieves the EventGroup field</summary>
  571. /// <returns>Returns nullable byte representing the EventGroup field</returns>
  572. public byte? GetEventGroup()
  573. {
  574. return (byte?)GetFieldValue(26, 0, Fit.SubfieldIndexMainField);
  575. }
  576. /// <summary>
  577. /// Set EventGroup field</summary>
  578. /// <param name="eventGroup_">Nullable field value to be set</param>
  579. public void SetEventGroup(byte? eventGroup_)
  580. {
  581. SetFieldValue(26, 0, eventGroup_, Fit.SubfieldIndexMainField);
  582. }
  583. ///<summary>
  584. /// Retrieves the NumLengths field
  585. /// Units: lengths
  586. /// Comment: # of lengths of swim pool</summary>
  587. /// <returns>Returns nullable ushort representing the NumLengths field</returns>
  588. public ushort? GetNumLengths()
  589. {
  590. return (ushort?)GetFieldValue(32, 0, Fit.SubfieldIndexMainField);
  591. }
  592. /// <summary>
  593. /// Set NumLengths field
  594. /// Units: lengths
  595. /// Comment: # of lengths of swim pool</summary>
  596. /// <param name="numLengths_">Nullable field value to be set</param>
  597. public void SetNumLengths(ushort? numLengths_)
  598. {
  599. SetFieldValue(32, 0, numLengths_, Fit.SubfieldIndexMainField);
  600. }
  601. ///<summary>
  602. /// Retrieves the NormalizedPower field
  603. /// Units: watts</summary>
  604. /// <returns>Returns nullable ushort representing the NormalizedPower field</returns>
  605. public ushort? GetNormalizedPower()
  606. {
  607. return (ushort?)GetFieldValue(33, 0, Fit.SubfieldIndexMainField);
  608. }
  609. /// <summary>
  610. /// Set NormalizedPower field
  611. /// Units: watts</summary>
  612. /// <param name="normalizedPower_">Nullable field value to be set</param>
  613. public void SetNormalizedPower(ushort? normalizedPower_)
  614. {
  615. SetFieldValue(33, 0, normalizedPower_, Fit.SubfieldIndexMainField);
  616. }
  617. ///<summary>
  618. /// Retrieves the LeftRightBalance field</summary>
  619. /// <returns>Returns nullable ushort representing the LeftRightBalance field</returns>
  620. public ushort? GetLeftRightBalance()
  621. {
  622. return (ushort?)GetFieldValue(34, 0, Fit.SubfieldIndexMainField);
  623. }
  624. /// <summary>
  625. /// Set LeftRightBalance field</summary>
  626. /// <param name="leftRightBalance_">Nullable field value to be set</param>
  627. public void SetLeftRightBalance(ushort? leftRightBalance_)
  628. {
  629. SetFieldValue(34, 0, leftRightBalance_, Fit.SubfieldIndexMainField);
  630. }
  631. ///<summary>
  632. /// Retrieves the FirstLengthIndex field</summary>
  633. /// <returns>Returns nullable ushort representing the FirstLengthIndex field</returns>
  634. public ushort? GetFirstLengthIndex()
  635. {
  636. return (ushort?)GetFieldValue(35, 0, Fit.SubfieldIndexMainField);
  637. }
  638. /// <summary>
  639. /// Set FirstLengthIndex field</summary>
  640. /// <param name="firstLengthIndex_">Nullable field value to be set</param>
  641. public void SetFirstLengthIndex(ushort? firstLengthIndex_)
  642. {
  643. SetFieldValue(35, 0, firstLengthIndex_, Fit.SubfieldIndexMainField);
  644. }
  645. ///<summary>
  646. /// Retrieves the AvgStrokeDistance field
  647. /// Units: m</summary>
  648. /// <returns>Returns nullable float representing the AvgStrokeDistance field</returns>
  649. public float? GetAvgStrokeDistance()
  650. {
  651. return (float?)GetFieldValue(37, 0, Fit.SubfieldIndexMainField);
  652. }
  653. /// <summary>
  654. /// Set AvgStrokeDistance field
  655. /// Units: m</summary>
  656. /// <param name="avgStrokeDistance_">Nullable field value to be set</param>
  657. public void SetAvgStrokeDistance(float? avgStrokeDistance_)
  658. {
  659. SetFieldValue(37, 0, avgStrokeDistance_, Fit.SubfieldIndexMainField);
  660. }
  661. ///<summary>
  662. /// Retrieves the SwimStroke field</summary>
  663. /// <returns>Returns nullable SwimStroke enum representing the SwimStroke field</returns>
  664. public SwimStroke? GetSwimStroke()
  665. {
  666. object obj = GetFieldValue(38, 0, Fit.SubfieldIndexMainField);
  667. SwimStroke? value = obj == null ? (SwimStroke?)null : (SwimStroke)obj;
  668. return value;
  669. }
  670. /// <summary>
  671. /// Set SwimStroke field</summary>
  672. /// <param name="swimStroke_">Nullable field value to be set</param>
  673. public void SetSwimStroke(SwimStroke? swimStroke_)
  674. {
  675. SetFieldValue(38, 0, swimStroke_, Fit.SubfieldIndexMainField);
  676. }
  677. ///<summary>
  678. /// Retrieves the SubSport field</summary>
  679. /// <returns>Returns nullable SubSport enum representing the SubSport field</returns>
  680. public SubSport? GetSubSport()
  681. {
  682. object obj = GetFieldValue(39, 0, Fit.SubfieldIndexMainField);
  683. SubSport? value = obj == null ? (SubSport?)null : (SubSport)obj;
  684. return value;
  685. }
  686. /// <summary>
  687. /// Set SubSport field</summary>
  688. /// <param name="subSport_">Nullable field value to be set</param>
  689. public void SetSubSport(SubSport? subSport_)
  690. {
  691. SetFieldValue(39, 0, subSport_, Fit.SubfieldIndexMainField);
  692. }
  693. ///<summary>
  694. /// Retrieves the NumActiveLengths field
  695. /// Units: lengths
  696. /// Comment: # of active lengths of swim pool</summary>
  697. /// <returns>Returns nullable ushort representing the NumActiveLengths field</returns>
  698. public ushort? GetNumActiveLengths()
  699. {
  700. return (ushort?)GetFieldValue(40, 0, Fit.SubfieldIndexMainField);
  701. }
  702. /// <summary>
  703. /// Set NumActiveLengths field
  704. /// Units: lengths
  705. /// Comment: # of active lengths of swim pool</summary>
  706. /// <param name="numActiveLengths_">Nullable field value to be set</param>
  707. public void SetNumActiveLengths(ushort? numActiveLengths_)
  708. {
  709. SetFieldValue(40, 0, numActiveLengths_, Fit.SubfieldIndexMainField);
  710. }
  711. ///<summary>
  712. /// Retrieves the TotalWork field
  713. /// Units: J</summary>
  714. /// <returns>Returns nullable uint representing the TotalWork field</returns>
  715. public uint? GetTotalWork()
  716. {
  717. return (uint?)GetFieldValue(41, 0, Fit.SubfieldIndexMainField);
  718. }
  719. /// <summary>
  720. /// Set TotalWork field
  721. /// Units: J</summary>
  722. /// <param name="totalWork_">Nullable field value to be set</param>
  723. public void SetTotalWork(uint? totalWork_)
  724. {
  725. SetFieldValue(41, 0, totalWork_, Fit.SubfieldIndexMainField);
  726. }
  727. ///<summary>
  728. /// Retrieves the AvgAltitude field
  729. /// Units: m</summary>
  730. /// <returns>Returns nullable float representing the AvgAltitude field</returns>
  731. public float? GetAvgAltitude()
  732. {
  733. return (float?)GetFieldValue(42, 0, Fit.SubfieldIndexMainField);
  734. }
  735. /// <summary>
  736. /// Set AvgAltitude field
  737. /// Units: m</summary>
  738. /// <param name="avgAltitude_">Nullable field value to be set</param>
  739. public void SetAvgAltitude(float? avgAltitude_)
  740. {
  741. SetFieldValue(42, 0, avgAltitude_, Fit.SubfieldIndexMainField);
  742. }
  743. ///<summary>
  744. /// Retrieves the MaxAltitude field
  745. /// Units: m</summary>
  746. /// <returns>Returns nullable float representing the MaxAltitude field</returns>
  747. public float? GetMaxAltitude()
  748. {
  749. return (float?)GetFieldValue(43, 0, Fit.SubfieldIndexMainField);
  750. }
  751. /// <summary>
  752. /// Set MaxAltitude field
  753. /// Units: m</summary>
  754. /// <param name="maxAltitude_">Nullable field value to be set</param>
  755. public void SetMaxAltitude(float? maxAltitude_)
  756. {
  757. SetFieldValue(43, 0, maxAltitude_, Fit.SubfieldIndexMainField);
  758. }
  759. ///<summary>
  760. /// Retrieves the GpsAccuracy field
  761. /// Units: m</summary>
  762. /// <returns>Returns nullable byte representing the GpsAccuracy field</returns>
  763. public byte? GetGpsAccuracy()
  764. {
  765. return (byte?)GetFieldValue(44, 0, Fit.SubfieldIndexMainField);
  766. }
  767. /// <summary>
  768. /// Set GpsAccuracy field
  769. /// Units: m</summary>
  770. /// <param name="gpsAccuracy_">Nullable field value to be set</param>
  771. public void SetGpsAccuracy(byte? gpsAccuracy_)
  772. {
  773. SetFieldValue(44, 0, gpsAccuracy_, Fit.SubfieldIndexMainField);
  774. }
  775. ///<summary>
  776. /// Retrieves the AvgGrade field
  777. /// Units: %</summary>
  778. /// <returns>Returns nullable float representing the AvgGrade field</returns>
  779. public float? GetAvgGrade()
  780. {
  781. return (float?)GetFieldValue(45, 0, Fit.SubfieldIndexMainField);
  782. }
  783. /// <summary>
  784. /// Set AvgGrade field
  785. /// Units: %</summary>
  786. /// <param name="avgGrade_">Nullable field value to be set</param>
  787. public void SetAvgGrade(float? avgGrade_)
  788. {
  789. SetFieldValue(45, 0, avgGrade_, Fit.SubfieldIndexMainField);
  790. }
  791. ///<summary>
  792. /// Retrieves the AvgPosGrade field
  793. /// Units: %</summary>
  794. /// <returns>Returns nullable float representing the AvgPosGrade field</returns>
  795. public float? GetAvgPosGrade()
  796. {
  797. return (float?)GetFieldValue(46, 0, Fit.SubfieldIndexMainField);
  798. }
  799. /// <summary>
  800. /// Set AvgPosGrade field
  801. /// Units: %</summary>
  802. /// <param name="avgPosGrade_">Nullable field value to be set</param>
  803. public void SetAvgPosGrade(float? avgPosGrade_)
  804. {
  805. SetFieldValue(46, 0, avgPosGrade_, Fit.SubfieldIndexMainField);
  806. }
  807. ///<summary>
  808. /// Retrieves the AvgNegGrade field
  809. /// Units: %</summary>
  810. /// <returns>Returns nullable float representing the AvgNegGrade field</returns>
  811. public float? GetAvgNegGrade()
  812. {
  813. return (float?)GetFieldValue(47, 0, Fit.SubfieldIndexMainField);
  814. }
  815. /// <summary>
  816. /// Set AvgNegGrade field
  817. /// Units: %</summary>
  818. /// <param name="avgNegGrade_">Nullable field value to be set</param>
  819. public void SetAvgNegGrade(float? avgNegGrade_)
  820. {
  821. SetFieldValue(47, 0, avgNegGrade_, Fit.SubfieldIndexMainField);
  822. }
  823. ///<summary>
  824. /// Retrieves the MaxPosGrade field
  825. /// Units: %</summary>
  826. /// <returns>Returns nullable float representing the MaxPosGrade field</returns>
  827. public float? GetMaxPosGrade()
  828. {
  829. return (float?)GetFieldValue(48, 0, Fit.SubfieldIndexMainField);
  830. }
  831. /// <summary>
  832. /// Set MaxPosGrade field
  833. /// Units: %</summary>
  834. /// <param name="maxPosGrade_">Nullable field value to be set</param>
  835. public void SetMaxPosGrade(float? maxPosGrade_)
  836. {
  837. SetFieldValue(48, 0, maxPosGrade_, Fit.SubfieldIndexMainField);
  838. }
  839. ///<summary>
  840. /// Retrieves the MaxNegGrade field
  841. /// Units: %</summary>
  842. /// <returns>Returns nullable float representing the MaxNegGrade field</returns>
  843. public float? GetMaxNegGrade()
  844. {
  845. return (float?)GetFieldValue(49, 0, Fit.SubfieldIndexMainField);
  846. }
  847. /// <summary>
  848. /// Set MaxNegGrade field
  849. /// Units: %</summary>
  850. /// <param name="maxNegGrade_">Nullable field value to be set</param>
  851. public void SetMaxNegGrade(float? maxNegGrade_)
  852. {
  853. SetFieldValue(49, 0, maxNegGrade_, Fit.SubfieldIndexMainField);
  854. }
  855. ///<summary>
  856. /// Retrieves the AvgTemperature field
  857. /// Units: C</summary>
  858. /// <returns>Returns nullable sbyte representing the AvgTemperature field</returns>
  859. public sbyte? GetAvgTemperature()
  860. {
  861. return (sbyte?)GetFieldValue(50, 0, Fit.SubfieldIndexMainField);
  862. }
  863. /// <summary>
  864. /// Set AvgTemperature field
  865. /// Units: C</summary>
  866. /// <param name="avgTemperature_">Nullable field value to be set</param>
  867. public void SetAvgTemperature(sbyte? avgTemperature_)
  868. {
  869. SetFieldValue(50, 0, avgTemperature_, Fit.SubfieldIndexMainField);
  870. }
  871. ///<summary>
  872. /// Retrieves the MaxTemperature field
  873. /// Units: C</summary>
  874. /// <returns>Returns nullable sbyte representing the MaxTemperature field</returns>
  875. public sbyte? GetMaxTemperature()
  876. {
  877. return (sbyte?)GetFieldValue(51, 0, Fit.SubfieldIndexMainField);
  878. }
  879. /// <summary>
  880. /// Set MaxTemperature field
  881. /// Units: C</summary>
  882. /// <param name="maxTemperature_">Nullable field value to be set</param>
  883. public void SetMaxTemperature(sbyte? maxTemperature_)
  884. {
  885. SetFieldValue(51, 0, maxTemperature_, Fit.SubfieldIndexMainField);
  886. }
  887. ///<summary>
  888. /// Retrieves the TotalMovingTime field
  889. /// Units: s</summary>
  890. /// <returns>Returns nullable float representing the TotalMovingTime field</returns>
  891. public float? GetTotalMovingTime()
  892. {
  893. return (float?)GetFieldValue(52, 0, Fit.SubfieldIndexMainField);
  894. }
  895. /// <summary>
  896. /// Set TotalMovingTime field
  897. /// Units: s</summary>
  898. /// <param name="totalMovingTime_">Nullable field value to be set</param>
  899. public void SetTotalMovingTime(float? totalMovingTime_)
  900. {
  901. SetFieldValue(52, 0, totalMovingTime_, Fit.SubfieldIndexMainField);
  902. }
  903. ///<summary>
  904. /// Retrieves the AvgPosVerticalSpeed field
  905. /// Units: m/s</summary>
  906. /// <returns>Returns nullable float representing the AvgPosVerticalSpeed field</returns>
  907. public float? GetAvgPosVerticalSpeed()
  908. {
  909. return (float?)GetFieldValue(53, 0, Fit.SubfieldIndexMainField);
  910. }
  911. /// <summary>
  912. /// Set AvgPosVerticalSpeed field
  913. /// Units: m/s</summary>
  914. /// <param name="avgPosVerticalSpeed_">Nullable field value to be set</param>
  915. public void SetAvgPosVerticalSpeed(float? avgPosVerticalSpeed_)
  916. {
  917. SetFieldValue(53, 0, avgPosVerticalSpeed_, Fit.SubfieldIndexMainField);
  918. }
  919. ///<summary>
  920. /// Retrieves the AvgNegVerticalSpeed field
  921. /// Units: m/s</summary>
  922. /// <returns>Returns nullable float representing the AvgNegVerticalSpeed field</returns>
  923. public float? GetAvgNegVerticalSpeed()
  924. {
  925. return (float?)GetFieldValue(54, 0, Fit.SubfieldIndexMainField);
  926. }
  927. /// <summary>
  928. /// Set AvgNegVerticalSpeed field
  929. /// Units: m/s</summary>
  930. /// <param name="avgNegVerticalSpeed_">Nullable field value to be set</param>
  931. public void SetAvgNegVerticalSpeed(float? avgNegVerticalSpeed_)
  932. {
  933. SetFieldValue(54, 0, avgNegVerticalSpeed_, Fit.SubfieldIndexMainField);
  934. }
  935. ///<summary>
  936. /// Retrieves the MaxPosVerticalSpeed field
  937. /// Units: m/s</summary>
  938. /// <returns>Returns nullable float representing the MaxPosVerticalSpeed field</returns>
  939. public float? GetMaxPosVerticalSpeed()
  940. {
  941. return (float?)GetFieldValue(55, 0, Fit.SubfieldIndexMainField);
  942. }
  943. /// <summary>
  944. /// Set MaxPosVerticalSpeed field
  945. /// Units: m/s</summary>
  946. /// <param name="maxPosVerticalSpeed_">Nullable field value to be set</param>
  947. public void SetMaxPosVerticalSpeed(float? maxPosVerticalSpeed_)
  948. {
  949. SetFieldValue(55, 0, maxPosVerticalSpeed_, Fit.SubfieldIndexMainField);
  950. }
  951. ///<summary>
  952. /// Retrieves the MaxNegVerticalSpeed field
  953. /// Units: m/s</summary>
  954. /// <returns>Returns nullable float representing the MaxNegVerticalSpeed field</returns>
  955. public float? GetMaxNegVerticalSpeed()
  956. {
  957. return (float?)GetFieldValue(56, 0, Fit.SubfieldIndexMainField);
  958. }
  959. /// <summary>
  960. /// Set MaxNegVerticalSpeed field
  961. /// Units: m/s</summary>
  962. /// <param name="maxNegVerticalSpeed_">Nullable field value to be set</param>
  963. public void SetMaxNegVerticalSpeed(float? maxNegVerticalSpeed_)
  964. {
  965. SetFieldValue(56, 0, maxNegVerticalSpeed_, Fit.SubfieldIndexMainField);
  966. }
  967. /// <summary>
  968. ///
  969. /// </summary>
  970. /// <returns>returns number of elements in field TimeInHrZone</returns>
  971. public int GetNumTimeInHrZone()
  972. {
  973. return GetNumFieldValues(57, Fit.SubfieldIndexMainField);
  974. }
  975. ///<summary>
  976. /// Retrieves the TimeInHrZone field
  977. /// Units: s</summary>
  978. /// <param name="index">0 based index of TimeInHrZone element to retrieve</param>
  979. /// <returns>Returns nullable float representing the TimeInHrZone field</returns>
  980. public float? GetTimeInHrZone(int index)
  981. {
  982. return (float?)GetFieldValue(57, index, Fit.SubfieldIndexMainField);
  983. }
  984. /// <summary>
  985. /// Set TimeInHrZone field
  986. /// Units: s</summary>
  987. /// <param name="index">0 based index of time_in_hr_zone</param>
  988. /// <param name="timeInHrZone_">Nullable field value to be set</param>
  989. public void SetTimeInHrZone(int index, float? timeInHrZone_)
  990. {
  991. SetFieldValue(57, index, timeInHrZone_, Fit.SubfieldIndexMainField);
  992. }
  993. /// <summary>
  994. ///
  995. /// </summary>
  996. /// <returns>returns number of elements in field TimeInSpeedZone</returns>
  997. public int GetNumTimeInSpeedZone()
  998. {
  999. return GetNumFieldValues(58, Fit.SubfieldIndexMainField);
  1000. }
  1001. ///<summary>
  1002. /// Retrieves the TimeInSpeedZone field
  1003. /// Units: s</summary>
  1004. /// <param name="index">0 based index of TimeInSpeedZone element to retrieve</param>
  1005. /// <returns>Returns nullable float representing the TimeInSpeedZone field</returns>
  1006. public float? GetTimeInSpeedZone(int index)
  1007. {
  1008. return (float?)GetFieldValue(58, index, Fit.SubfieldIndexMainField);
  1009. }
  1010. /// <summary>
  1011. /// Set TimeInSpeedZone field
  1012. /// Units: s</summary>
  1013. /// <param name="index">0 based index of time_in_speed_zone</param>
  1014. /// <param name="timeInSpeedZone_">Nullable field value to be set</param>
  1015. public void SetTimeInSpeedZone(int index, float? timeInSpeedZone_)
  1016. {
  1017. SetFieldValue(58, index, timeInSpeedZone_, Fit.SubfieldIndexMainField);
  1018. }
  1019. /// <summary>
  1020. ///
  1021. /// </summary>
  1022. /// <returns>returns number of elements in field TimeInCadenceZone</returns>
  1023. public int GetNumTimeInCadenceZone()
  1024. {
  1025. return GetNumFieldValues(59, Fit.SubfieldIndexMainField);
  1026. }
  1027. ///<summary>
  1028. /// Retrieves the TimeInCadenceZone field
  1029. /// Units: s</summary>
  1030. /// <param name="index">0 based index of TimeInCadenceZone element to retrieve</param>
  1031. /// <returns>Returns nullable float representing the TimeInCadenceZone field</returns>
  1032. public float? GetTimeInCadenceZone(int index)
  1033. {
  1034. return (float?)GetFieldValue(59, index, Fit.SubfieldIndexMainField);
  1035. }
  1036. /// <summary>
  1037. /// Set TimeInCadenceZone field
  1038. /// Units: s</summary>
  1039. /// <param name="index">0 based index of time_in_cadence_zone</param>
  1040. /// <param name="timeInCadenceZone_">Nullable field value to be set</param>
  1041. public void SetTimeInCadenceZone(int index, float? timeInCadenceZone_)
  1042. {
  1043. SetFieldValue(59, index, timeInCadenceZone_, Fit.SubfieldIndexMainField);
  1044. }
  1045. /// <summary>
  1046. ///
  1047. /// </summary>
  1048. /// <returns>returns number of elements in field TimeInPowerZone</returns>
  1049. public int GetNumTimeInPowerZone()
  1050. {
  1051. return GetNumFieldValues(60, Fit.SubfieldIndexMainField);
  1052. }
  1053. ///<summary>
  1054. /// Retrieves the TimeInPowerZone field
  1055. /// Units: s</summary>
  1056. /// <param name="index">0 based index of TimeInPowerZone element to retrieve</param>
  1057. /// <returns>Returns nullable float representing the TimeInPowerZone field</returns>
  1058. public float? GetTimeInPowerZone(int index)
  1059. {
  1060. return (float?)GetFieldValue(60, index, Fit.SubfieldIndexMainField);
  1061. }
  1062. /// <summary>
  1063. /// Set TimeInPowerZone field
  1064. /// Units: s</summary>
  1065. /// <param name="index">0 based index of time_in_power_zone</param>
  1066. /// <param name="timeInPowerZone_">Nullable field value to be set</param>
  1067. public void SetTimeInPowerZone(int index, float? timeInPowerZone_)
  1068. {
  1069. SetFieldValue(60, index, timeInPowerZone_, Fit.SubfieldIndexMainField);
  1070. }
  1071. ///<summary>
  1072. /// Retrieves the RepetitionNum field</summary>
  1073. /// <returns>Returns nullable ushort representing the RepetitionNum field</returns>
  1074. public ushort? GetRepetitionNum()
  1075. {
  1076. return (ushort?)GetFieldValue(61, 0, Fit.SubfieldIndexMainField);
  1077. }
  1078. /// <summary>
  1079. /// Set RepetitionNum field</summary>
  1080. /// <param name="repetitionNum_">Nullable field value to be set</param>
  1081. public void SetRepetitionNum(ushort? repetitionNum_)
  1082. {
  1083. SetFieldValue(61, 0, repetitionNum_, Fit.SubfieldIndexMainField);
  1084. }
  1085. ///<summary>
  1086. /// Retrieves the MinAltitude field
  1087. /// Units: m</summary>
  1088. /// <returns>Returns nullable float representing the MinAltitude field</returns>
  1089. public float? GetMinAltitude()
  1090. {
  1091. return (float?)GetFieldValue(62, 0, Fit.SubfieldIndexMainField);
  1092. }
  1093. /// <summary>
  1094. /// Set MinAltitude field
  1095. /// Units: m</summary>
  1096. /// <param name="minAltitude_">Nullable field value to be set</param>
  1097. public void SetMinAltitude(float? minAltitude_)
  1098. {
  1099. SetFieldValue(62, 0, minAltitude_, Fit.SubfieldIndexMainField);
  1100. }
  1101. ///<summary>
  1102. /// Retrieves the MinHeartRate field
  1103. /// Units: bpm</summary>
  1104. /// <returns>Returns nullable byte representing the MinHeartRate field</returns>
  1105. public byte? GetMinHeartRate()
  1106. {
  1107. return (byte?)GetFieldValue(63, 0, Fit.SubfieldIndexMainField);
  1108. }
  1109. /// <summary>
  1110. /// Set MinHeartRate field
  1111. /// Units: bpm</summary>
  1112. /// <param name="minHeartRate_">Nullable field value to be set</param>
  1113. public void SetMinHeartRate(byte? minHeartRate_)
  1114. {
  1115. SetFieldValue(63, 0, minHeartRate_, Fit.SubfieldIndexMainField);
  1116. }
  1117. ///<summary>
  1118. /// Retrieves the WktStepIndex field</summary>
  1119. /// <returns>Returns nullable ushort representing the WktStepIndex field</returns>
  1120. public ushort? GetWktStepIndex()
  1121. {
  1122. return (ushort?)GetFieldValue(71, 0, Fit.SubfieldIndexMainField);
  1123. }
  1124. /// <summary>
  1125. /// Set WktStepIndex field</summary>
  1126. /// <param name="wktStepIndex_">Nullable field value to be set</param>
  1127. public void SetWktStepIndex(ushort? wktStepIndex_)
  1128. {
  1129. SetFieldValue(71, 0, wktStepIndex_, Fit.SubfieldIndexMainField);
  1130. }
  1131. ///<summary>
  1132. /// Retrieves the OpponentScore field</summary>
  1133. /// <returns>Returns nullable ushort representing the OpponentScore field</returns>
  1134. public ushort? GetOpponentScore()
  1135. {
  1136. return (ushort?)GetFieldValue(74, 0, Fit.SubfieldIndexMainField);
  1137. }
  1138. /// <summary>
  1139. /// Set OpponentScore field</summary>
  1140. /// <param name="opponentScore_">Nullable field value to be set</param>
  1141. public void SetOpponentScore(ushort? opponentScore_)
  1142. {
  1143. SetFieldValue(74, 0, opponentScore_, Fit.SubfieldIndexMainField);
  1144. }
  1145. /// <summary>
  1146. ///
  1147. /// </summary>
  1148. /// <returns>returns number of elements in field StrokeCount</returns>
  1149. public int GetNumStrokeCount()
  1150. {
  1151. return GetNumFieldValues(75, Fit.SubfieldIndexMainField);
  1152. }
  1153. ///<summary>
  1154. /// Retrieves the StrokeCount field
  1155. /// Units: counts
  1156. /// Comment: stroke_type enum used as the index</summary>
  1157. /// <param name="index">0 based index of StrokeCount element to retrieve</param>
  1158. /// <returns>Returns nullable ushort representing the StrokeCount field</returns>
  1159. public ushort? GetStrokeCount(int index)
  1160. {
  1161. return (ushort?)GetFieldValue(75, index, Fit.SubfieldIndexMainField);
  1162. }
  1163. /// <summary>
  1164. /// Set StrokeCount field
  1165. /// Units: counts
  1166. /// Comment: stroke_type enum used as the index</summary>
  1167. /// <param name="index">0 based index of stroke_count</param>
  1168. /// <param name="strokeCount_">Nullable field value to be set</param>
  1169. public void SetStrokeCount(int index, ushort? strokeCount_)
  1170. {
  1171. SetFieldValue(75, index, strokeCount_, Fit.SubfieldIndexMainField);
  1172. }
  1173. /// <summary>
  1174. ///
  1175. /// </summary>
  1176. /// <returns>returns number of elements in field ZoneCount</returns>
  1177. public int GetNumZoneCount()
  1178. {
  1179. return GetNumFieldValues(76, Fit.SubfieldIndexMainField);
  1180. }
  1181. ///<summary>
  1182. /// Retrieves the ZoneCount field
  1183. /// Units: counts
  1184. /// Comment: zone number used as the index</summary>
  1185. /// <param name="index">0 based index of ZoneCount element to retrieve</param>
  1186. /// <returns>Returns nullable ushort representing the ZoneCount field</returns>
  1187. public ushort? GetZoneCount(int index)
  1188. {
  1189. return (ushort?)GetFieldValue(76, index, Fit.SubfieldIndexMainField);
  1190. }
  1191. /// <summary>
  1192. /// Set ZoneCount field
  1193. /// Units: counts
  1194. /// Comment: zone number used as the index</summary>
  1195. /// <param name="index">0 based index of zone_count</param>
  1196. /// <param name="zoneCount_">Nullable field value to be set</param>
  1197. public void SetZoneCount(int index, ushort? zoneCount_)
  1198. {
  1199. SetFieldValue(76, index, zoneCount_, Fit.SubfieldIndexMainField);
  1200. }
  1201. ///<summary>
  1202. /// Retrieves the AvgVerticalOscillation field
  1203. /// Units: mm</summary>
  1204. /// <returns>Returns nullable float representing the AvgVerticalOscillation field</returns>
  1205. public float? GetAvgVerticalOscillation()
  1206. {
  1207. return (float?)GetFieldValue(77, 0, Fit.SubfieldIndexMainField);
  1208. }
  1209. /// <summary>
  1210. /// Set AvgVerticalOscillation field
  1211. /// Units: mm</summary>
  1212. /// <param name="avgVerticalOscillation_">Nullable field value to be set</param>
  1213. public void SetAvgVerticalOscillation(float? avgVerticalOscillation_)
  1214. {
  1215. SetFieldValue(77, 0, avgVerticalOscillation_, Fit.SubfieldIndexMainField);
  1216. }
  1217. ///<summary>
  1218. /// Retrieves the AvgStanceTimePercent field
  1219. /// Units: percent</summary>
  1220. /// <returns>Returns nullable float representing the AvgStanceTimePercent field</returns>
  1221. public float? GetAvgStanceTimePercent()
  1222. {
  1223. return (float?)GetFieldValue(78, 0, Fit.SubfieldIndexMainField);
  1224. }
  1225. /// <summary>
  1226. /// Set AvgStanceTimePercent field
  1227. /// Units: percent</summary>
  1228. /// <param name="avgStanceTimePercent_">Nullable field value to be set</param>
  1229. public void SetAvgStanceTimePercent(float? avgStanceTimePercent_)
  1230. {
  1231. SetFieldValue(78, 0, avgStanceTimePercent_, Fit.SubfieldIndexMainField);
  1232. }
  1233. ///<summary>
  1234. /// Retrieves the AvgStanceTime field
  1235. /// Units: ms</summary>
  1236. /// <returns>Returns nullable float representing the AvgStanceTime field</returns>
  1237. public float? GetAvgStanceTime()
  1238. {
  1239. return (float?)GetFieldValue(79, 0, Fit.SubfieldIndexMainField);
  1240. }
  1241. /// <summary>
  1242. /// Set AvgStanceTime field
  1243. /// Units: ms</summary>
  1244. /// <param name="avgStanceTime_">Nullable field value to be set</param>
  1245. public void SetAvgStanceTime(float? avgStanceTime_)
  1246. {
  1247. SetFieldValue(79, 0, avgStanceTime_, Fit.SubfieldIndexMainField);
  1248. }
  1249. ///<summary>
  1250. /// Retrieves the AvgFractionalCadence field
  1251. /// Units: rpm
  1252. /// Comment: fractional part of the avg_cadence</summary>
  1253. /// <returns>Returns nullable float representing the AvgFractionalCadence field</returns>
  1254. public float? GetAvgFractionalCadence()
  1255. {
  1256. return (float?)GetFieldValue(80, 0, Fit.SubfieldIndexMainField);
  1257. }
  1258. /// <summary>
  1259. /// Set AvgFractionalCadence field
  1260. /// Units: rpm
  1261. /// Comment: fractional part of the avg_cadence</summary>
  1262. /// <param name="avgFractionalCadence_">Nullable field value to be set</param>
  1263. public void SetAvgFractionalCadence(float? avgFractionalCadence_)
  1264. {
  1265. SetFieldValue(80, 0, avgFractionalCadence_, Fit.SubfieldIndexMainField);
  1266. }
  1267. ///<summary>
  1268. /// Retrieves the MaxFractionalCadence field
  1269. /// Units: rpm
  1270. /// Comment: fractional part of the max_cadence</summary>
  1271. /// <returns>Returns nullable float representing the MaxFractionalCadence field</returns>
  1272. public float? GetMaxFractionalCadence()
  1273. {
  1274. return (float?)GetFieldValue(81, 0, Fit.SubfieldIndexMainField);
  1275. }
  1276. /// <summary>
  1277. /// Set MaxFractionalCadence field
  1278. /// Units: rpm
  1279. /// Comment: fractional part of the max_cadence</summary>
  1280. /// <param name="maxFractionalCadence_">Nullable field value to be set</param>
  1281. public void SetMaxFractionalCadence(float? maxFractionalCadence_)
  1282. {
  1283. SetFieldValue(81, 0, maxFractionalCadence_, Fit.SubfieldIndexMainField);
  1284. }
  1285. ///<summary>
  1286. /// Retrieves the TotalFractionalCycles field
  1287. /// Units: cycles
  1288. /// Comment: fractional part of the total_cycles</summary>
  1289. /// <returns>Returns nullable float representing the TotalFractionalCycles field</returns>
  1290. public float? GetTotalFractionalCycles()
  1291. {
  1292. return (float?)GetFieldValue(82, 0, Fit.SubfieldIndexMainField);
  1293. }
  1294. /// <summary>
  1295. /// Set TotalFractionalCycles field
  1296. /// Units: cycles
  1297. /// Comment: fractional part of the total_cycles</summary>
  1298. /// <param name="totalFractionalCycles_">Nullable field value to be set</param>
  1299. public void SetTotalFractionalCycles(float? totalFractionalCycles_)
  1300. {
  1301. SetFieldValue(82, 0, totalFractionalCycles_, Fit.SubfieldIndexMainField);
  1302. }
  1303. ///<summary>
  1304. /// Retrieves the PlayerScore field</summary>
  1305. /// <returns>Returns nullable ushort representing the PlayerScore field</returns>
  1306. public ushort? GetPlayerScore()
  1307. {
  1308. return (ushort?)GetFieldValue(83, 0, Fit.SubfieldIndexMainField);
  1309. }
  1310. /// <summary>
  1311. /// Set PlayerScore field</summary>
  1312. /// <param name="playerScore_">Nullable field value to be set</param>
  1313. public void SetPlayerScore(ushort? playerScore_)
  1314. {
  1315. SetFieldValue(83, 0, playerScore_, Fit.SubfieldIndexMainField);
  1316. }
  1317. /// <summary>
  1318. ///
  1319. /// </summary>
  1320. /// <returns>returns number of elements in field AvgTotalHemoglobinConc</returns>
  1321. public int GetNumAvgTotalHemoglobinConc()
  1322. {
  1323. return GetNumFieldValues(84, Fit.SubfieldIndexMainField);
  1324. }
  1325. ///<summary>
  1326. /// Retrieves the AvgTotalHemoglobinConc field
  1327. /// Units: g/dL
  1328. /// Comment: Avg saturated and unsaturated hemoglobin</summary>
  1329. /// <param name="index">0 based index of AvgTotalHemoglobinConc element to retrieve</param>
  1330. /// <returns>Returns nullable float representing the AvgTotalHemoglobinConc field</returns>
  1331. public float? GetAvgTotalHemoglobinConc(int index)
  1332. {
  1333. return (float?)GetFieldValue(84, index, Fit.SubfieldIndexMainField);
  1334. }
  1335. /// <summary>
  1336. /// Set AvgTotalHemoglobinConc field
  1337. /// Units: g/dL
  1338. /// Comment: Avg saturated and unsaturated hemoglobin</summary>
  1339. /// <param name="index">0 based index of avg_total_hemoglobin_conc</param>
  1340. /// <param name="avgTotalHemoglobinConc_">Nullable field value to be set</param>
  1341. public void SetAvgTotalHemoglobinConc(int index, float? avgTotalHemoglobinConc_)
  1342. {
  1343. SetFieldValue(84, index, avgTotalHemoglobinConc_, Fit.SubfieldIndexMainField);
  1344. }
  1345. /// <summary>
  1346. ///
  1347. /// </summary>
  1348. /// <returns>returns number of elements in field MinTotalHemoglobinConc</returns>
  1349. public int GetNumMinTotalHemoglobinConc()
  1350. {
  1351. return GetNumFieldValues(85, Fit.SubfieldIndexMainField);
  1352. }
  1353. ///<summary>
  1354. /// Retrieves the MinTotalHemoglobinConc field
  1355. /// Units: g/dL
  1356. /// Comment: Min saturated and unsaturated hemoglobin</summary>
  1357. /// <param name="index">0 based index of MinTotalHemoglobinConc element to retrieve</param>
  1358. /// <returns>Returns nullable float representing the MinTotalHemoglobinConc field</returns>
  1359. public float? GetMinTotalHemoglobinConc(int index)
  1360. {
  1361. return (float?)GetFieldValue(85, index, Fit.SubfieldIndexMainField);
  1362. }
  1363. /// <summary>
  1364. /// Set MinTotalHemoglobinConc field
  1365. /// Units: g/dL
  1366. /// Comment: Min saturated and unsaturated hemoglobin</summary>
  1367. /// <param name="index">0 based index of min_total_hemoglobin_conc</param>
  1368. /// <param name="minTotalHemoglobinConc_">Nullable field value to be set</param>
  1369. public void SetMinTotalHemoglobinConc(int index, float? minTotalHemoglobinConc_)
  1370. {
  1371. SetFieldValue(85, index, minTotalHemoglobinConc_, Fit.SubfieldIndexMainField);
  1372. }
  1373. /// <summary>
  1374. ///
  1375. /// </summary>
  1376. /// <returns>returns number of elements in field MaxTotalHemoglobinConc</returns>
  1377. public int GetNumMaxTotalHemoglobinConc()
  1378. {
  1379. return GetNumFieldValues(86, Fit.SubfieldIndexMainField);
  1380. }
  1381. ///<summary>
  1382. /// Retrieves the MaxTotalHemoglobinConc field
  1383. /// Units: g/dL
  1384. /// Comment: Max saturated and unsaturated hemoglobin</summary>
  1385. /// <param name="index">0 based index of MaxTotalHemoglobinConc element to retrieve</param>
  1386. /// <returns>Returns nullable float representing the MaxTotalHemoglobinConc field</returns>
  1387. public float? GetMaxTotalHemoglobinConc(int index)
  1388. {
  1389. return (float?)GetFieldValue(86, index, Fit.SubfieldIndexMainField);
  1390. }
  1391. /// <summary>
  1392. /// Set MaxTotalHemoglobinConc field
  1393. /// Units: g/dL
  1394. /// Comment: Max saturated and unsaturated hemoglobin</summary>
  1395. /// <param name="index">0 based index of max_total_hemoglobin_conc</param>
  1396. /// <param name="maxTotalHemoglobinConc_">Nullable field value to be set</param>
  1397. public void SetMaxTotalHemoglobinConc(int index, float? maxTotalHemoglobinConc_)
  1398. {
  1399. SetFieldValue(86, index, maxTotalHemoglobinConc_, Fit.SubfieldIndexMainField);
  1400. }
  1401. /// <summary>
  1402. ///
  1403. /// </summary>
  1404. /// <returns>returns number of elements in field AvgSaturatedHemoglobinPercent</returns>
  1405. public int GetNumAvgSaturatedHemoglobinPercent()
  1406. {
  1407. return GetNumFieldValues(87, Fit.SubfieldIndexMainField);
  1408. }
  1409. ///<summary>
  1410. /// Retrieves the AvgSaturatedHemoglobinPercent field
  1411. /// Units: %
  1412. /// Comment: Avg percentage of hemoglobin saturated with oxygen</summary>
  1413. /// <param name="index">0 based index of AvgSaturatedHemoglobinPercent element to retrieve</param>
  1414. /// <returns>Returns nullable float representing the AvgSaturatedHemoglobinPercent field</returns>
  1415. public float? GetAvgSaturatedHemoglobinPercent(int index)
  1416. {
  1417. return (float?)GetFieldValue(87, index, Fit.SubfieldIndexMainField);
  1418. }
  1419. /// <summary>
  1420. /// Set AvgSaturatedHemoglobinPercent field
  1421. /// Units: %
  1422. /// Comment: Avg percentage of hemoglobin saturated with oxygen</summary>
  1423. /// <param name="index">0 based index of avg_saturated_hemoglobin_percent</param>
  1424. /// <param name="avgSaturatedHemoglobinPercent_">Nullable field value to be set</param>
  1425. public void SetAvgSaturatedHemoglobinPercent(int index, float? avgSaturatedHemoglobinPercent_)
  1426. {
  1427. SetFieldValue(87, index, avgSaturatedHemoglobinPercent_, Fit.SubfieldIndexMainField);
  1428. }
  1429. /// <summary>
  1430. ///
  1431. /// </summary>
  1432. /// <returns>returns number of elements in field MinSaturatedHemoglobinPercent</returns>
  1433. public int GetNumMinSaturatedHemoglobinPercent()
  1434. {
  1435. return GetNumFieldValues(88, Fit.SubfieldIndexMainField);
  1436. }
  1437. ///<summary>
  1438. /// Retrieves the MinSaturatedHemoglobinPercent field
  1439. /// Units: %
  1440. /// Comment: Min percentage of hemoglobin saturated with oxygen</summary>
  1441. /// <param name="index">0 based index of MinSaturatedHemoglobinPercent element to retrieve</param>
  1442. /// <returns>Returns nullable float representing the MinSaturatedHemoglobinPercent field</returns>
  1443. public float? GetMinSaturatedHemoglobinPercent(int index)
  1444. {
  1445. return (float?)GetFieldValue(88, index, Fit.SubfieldIndexMainField);
  1446. }
  1447. /// <summary>
  1448. /// Set MinSaturatedHemoglobinPercent field
  1449. /// Units: %
  1450. /// Comment: Min percentage of hemoglobin saturated with oxygen</summary>
  1451. /// <param name="index">0 based index of min_saturated_hemoglobin_percent</param>
  1452. /// <param name="minSaturatedHemoglobinPercent_">Nullable field value to be set</param>
  1453. public void SetMinSaturatedHemoglobinPercent(int index, float? minSaturatedHemoglobinPercent_)
  1454. {
  1455. SetFieldValue(88, index, minSaturatedHemoglobinPercent_, Fit.SubfieldIndexMainField);
  1456. }
  1457. /// <summary>
  1458. ///
  1459. /// </summary>
  1460. /// <returns>returns number of elements in field MaxSaturatedHemoglobinPercent</returns>
  1461. public int GetNumMaxSaturatedHemoglobinPercent()
  1462. {
  1463. return GetNumFieldValues(89, Fit.SubfieldIndexMainField);
  1464. }
  1465. ///<summary>
  1466. /// Retrieves the MaxSaturatedHemoglobinPercent field
  1467. /// Units: %
  1468. /// Comment: Max percentage of hemoglobin saturated with oxygen</summary>
  1469. /// <param name="index">0 based index of MaxSaturatedHemoglobinPercent element to retrieve</param>
  1470. /// <returns>Returns nullable float representing the MaxSaturatedHemoglobinPercent field</returns>
  1471. public float? GetMaxSaturatedHemoglobinPercent(int index)
  1472. {
  1473. return (float?)GetFieldValue(89, index, Fit.SubfieldIndexMainField);
  1474. }
  1475. /// <summary>
  1476. /// Set MaxSaturatedHemoglobinPercent field
  1477. /// Units: %
  1478. /// Comment: Max percentage of hemoglobin saturated with oxygen</summary>
  1479. /// <param name="index">0 based index of max_saturated_hemoglobin_percent</param>
  1480. /// <param name="maxSaturatedHemoglobinPercent_">Nullable field value to be set</param>
  1481. public void SetMaxSaturatedHemoglobinPercent(int index, float? maxSaturatedHemoglobinPercent_)
  1482. {
  1483. SetFieldValue(89, index, maxSaturatedHemoglobinPercent_, Fit.SubfieldIndexMainField);
  1484. }
  1485. ///<summary>
  1486. /// Retrieves the AvgLeftTorqueEffectiveness field
  1487. /// Units: percent</summary>
  1488. /// <returns>Returns nullable float representing the AvgLeftTorqueEffectiveness field</returns>
  1489. public float? GetAvgLeftTorqueEffectiveness()
  1490. {
  1491. return (float?)GetFieldValue(91, 0, Fit.SubfieldIndexMainField);
  1492. }
  1493. /// <summary>
  1494. /// Set AvgLeftTorqueEffectiveness field
  1495. /// Units: percent</summary>
  1496. /// <param name="avgLeftTorqueEffectiveness_">Nullable field value to be set</param>
  1497. public void SetAvgLeftTorqueEffectiveness(float? avgLeftTorqueEffectiveness_)
  1498. {
  1499. SetFieldValue(91, 0, avgLeftTorqueEffectiveness_, Fit.SubfieldIndexMainField);
  1500. }
  1501. ///<summary>
  1502. /// Retrieves the AvgRightTorqueEffectiveness field
  1503. /// Units: percent</summary>
  1504. /// <returns>Returns nullable float representing the AvgRightTorqueEffectiveness field</returns>
  1505. public float? GetAvgRightTorqueEffectiveness()
  1506. {
  1507. return (float?)GetFieldValue(92, 0, Fit.SubfieldIndexMainField);
  1508. }
  1509. /// <summary>
  1510. /// Set AvgRightTorqueEffectiveness field
  1511. /// Units: percent</summary>
  1512. /// <param name="avgRightTorqueEffectiveness_">Nullable field value to be set</param>
  1513. public void SetAvgRightTorqueEffectiveness(float? avgRightTorqueEffectiveness_)
  1514. {
  1515. SetFieldValue(92, 0, avgRightTorqueEffectiveness_, Fit.SubfieldIndexMainField);
  1516. }
  1517. ///<summary>
  1518. /// Retrieves the AvgLeftPedalSmoothness field
  1519. /// Units: percent</summary>
  1520. /// <returns>Returns nullable float representing the AvgLeftPedalSmoothness field</returns>
  1521. public float? GetAvgLeftPedalSmoothness()
  1522. {
  1523. return (float?)GetFieldValue(93, 0, Fit.SubfieldIndexMainField);
  1524. }
  1525. /// <summary>
  1526. /// Set AvgLeftPedalSmoothness field
  1527. /// Units: percent</summary>
  1528. /// <param name="avgLeftPedalSmoothness_">Nullable field value to be set</param>
  1529. public void SetAvgLeftPedalSmoothness(float? avgLeftPedalSmoothness_)
  1530. {
  1531. SetFieldValue(93, 0, avgLeftPedalSmoothness_, Fit.SubfieldIndexMainField);
  1532. }
  1533. ///<summary>
  1534. /// Retrieves the AvgRightPedalSmoothness field
  1535. /// Units: percent</summary>
  1536. /// <returns>Returns nullable float representing the AvgRightPedalSmoothness field</returns>
  1537. public float? GetAvgRightPedalSmoothness()
  1538. {
  1539. return (float?)GetFieldValue(94, 0, Fit.SubfieldIndexMainField);
  1540. }
  1541. /// <summary>
  1542. /// Set AvgRightPedalSmoothness field
  1543. /// Units: percent</summary>
  1544. /// <param name="avgRightPedalSmoothness_">Nullable field value to be set</param>
  1545. public void SetAvgRightPedalSmoothness(float? avgRightPedalSmoothness_)
  1546. {
  1547. SetFieldValue(94, 0, avgRightPedalSmoothness_, Fit.SubfieldIndexMainField);
  1548. }
  1549. ///<summary>
  1550. /// Retrieves the AvgCombinedPedalSmoothness field
  1551. /// Units: percent</summary>
  1552. /// <returns>Returns nullable float representing the AvgCombinedPedalSmoothness field</returns>
  1553. public float? GetAvgCombinedPedalSmoothness()
  1554. {
  1555. return (float?)GetFieldValue(95, 0, Fit.SubfieldIndexMainField);
  1556. }
  1557. /// <summary>
  1558. /// Set AvgCombinedPedalSmoothness field
  1559. /// Units: percent</summary>
  1560. /// <param name="avgCombinedPedalSmoothness_">Nullable field value to be set</param>
  1561. public void SetAvgCombinedPedalSmoothness(float? avgCombinedPedalSmoothness_)
  1562. {
  1563. SetFieldValue(95, 0, avgCombinedPedalSmoothness_, Fit.SubfieldIndexMainField);
  1564. }
  1565. ///<summary>
  1566. /// Retrieves the TimeStanding field
  1567. /// Units: s
  1568. /// Comment: Total time spent in the standing position</summary>
  1569. /// <returns>Returns nullable float representing the TimeStanding field</returns>
  1570. public float? GetTimeStanding()
  1571. {
  1572. return (float?)GetFieldValue(98, 0, Fit.SubfieldIndexMainField);
  1573. }
  1574. /// <summary>
  1575. /// Set TimeStanding field
  1576. /// Units: s
  1577. /// Comment: Total time spent in the standing position</summary>
  1578. /// <param name="timeStanding_">Nullable field value to be set</param>
  1579. public void SetTimeStanding(float? timeStanding_)
  1580. {
  1581. SetFieldValue(98, 0, timeStanding_, Fit.SubfieldIndexMainField);
  1582. }
  1583. ///<summary>
  1584. /// Retrieves the StandCount field
  1585. /// Comment: Number of transitions to the standing state</summary>
  1586. /// <returns>Returns nullable ushort representing the StandCount field</returns>
  1587. public ushort? GetStandCount()
  1588. {
  1589. return (ushort?)GetFieldValue(99, 0, Fit.SubfieldIndexMainField);
  1590. }
  1591. /// <summary>
  1592. /// Set StandCount field
  1593. /// Comment: Number of transitions to the standing state</summary>
  1594. /// <param name="standCount_">Nullable field value to be set</param>
  1595. public void SetStandCount(ushort? standCount_)
  1596. {
  1597. SetFieldValue(99, 0, standCount_, Fit.SubfieldIndexMainField);
  1598. }
  1599. ///<summary>
  1600. /// Retrieves the AvgLeftPco field
  1601. /// Units: mm
  1602. /// Comment: Average left platform center offset</summary>
  1603. /// <returns>Returns nullable sbyte representing the AvgLeftPco field</returns>
  1604. public sbyte? GetAvgLeftPco()
  1605. {
  1606. return (sbyte?)GetFieldValue(100, 0, Fit.SubfieldIndexMainField);
  1607. }
  1608. /// <summary>
  1609. /// Set AvgLeftPco field
  1610. /// Units: mm
  1611. /// Comment: Average left platform center offset</summary>
  1612. /// <param name="avgLeftPco_">Nullable field value to be set</param>
  1613. public void SetAvgLeftPco(sbyte? avgLeftPco_)
  1614. {
  1615. SetFieldValue(100, 0, avgLeftPco_, Fit.SubfieldIndexMainField);
  1616. }
  1617. ///<summary>
  1618. /// Retrieves the AvgRightPco field
  1619. /// Units: mm
  1620. /// Comment: Average right platform center offset</summary>
  1621. /// <returns>Returns nullable sbyte representing the AvgRightPco field</returns>
  1622. public sbyte? GetAvgRightPco()
  1623. {
  1624. return (sbyte?)GetFieldValue(101, 0, Fit.SubfieldIndexMainField);
  1625. }
  1626. /// <summary>
  1627. /// Set AvgRightPco field
  1628. /// Units: mm
  1629. /// Comment: Average right platform center offset</summary>
  1630. /// <param name="avgRightPco_">Nullable field value to be set</param>
  1631. public void SetAvgRightPco(sbyte? avgRightPco_)
  1632. {
  1633. SetFieldValue(101, 0, avgRightPco_, Fit.SubfieldIndexMainField);
  1634. }
  1635. /// <summary>
  1636. ///
  1637. /// </summary>
  1638. /// <returns>returns number of elements in field AvgLeftPowerPhase</returns>
  1639. public int GetNumAvgLeftPowerPhase()
  1640. {
  1641. return GetNumFieldValues(102, Fit.SubfieldIndexMainField);
  1642. }
  1643. ///<summary>
  1644. /// Retrieves the AvgLeftPowerPhase field
  1645. /// Units: degrees
  1646. /// Comment: Average left power phase angles. Data value indexes defined by power_phase_type.</summary>
  1647. /// <param name="index">0 based index of AvgLeftPowerPhase element to retrieve</param>
  1648. /// <returns>Returns nullable byte representing the AvgLeftPowerPhase field</returns>
  1649. public byte? GetAvgLeftPowerPhase(int index)
  1650. {
  1651. return (byte?)GetFieldValue(102, index, Fit.SubfieldIndexMainField);
  1652. }
  1653. /// <summary>
  1654. /// Set AvgLeftPowerPhase field
  1655. /// Units: degrees
  1656. /// Comment: Average left power phase angles. Data value indexes defined by power_phase_type.</summary>
  1657. /// <param name="index">0 based index of avg_left_power_phase</param>
  1658. /// <param name="avgLeftPowerPhase_">Nullable field value to be set</param>
  1659. public void SetAvgLeftPowerPhase(int index, byte? avgLeftPowerPhase_)
  1660. {
  1661. SetFieldValue(102, index, avgLeftPowerPhase_, Fit.SubfieldIndexMainField);
  1662. }
  1663. /// <summary>
  1664. ///
  1665. /// </summary>
  1666. /// <returns>returns number of elements in field AvgLeftPowerPhasePeak</returns>
  1667. public int GetNumAvgLeftPowerPhasePeak()
  1668. {
  1669. return GetNumFieldValues(103, Fit.SubfieldIndexMainField);
  1670. }
  1671. ///<summary>
  1672. /// Retrieves the AvgLeftPowerPhasePeak field
  1673. /// Units: degrees
  1674. /// Comment: Average left power phase peak angles. Data value indexes defined by power_phase_type.</summary>
  1675. /// <param name="index">0 based index of AvgLeftPowerPhasePeak element to retrieve</param>
  1676. /// <returns>Returns nullable byte representing the AvgLeftPowerPhasePeak field</returns>
  1677. public byte? GetAvgLeftPowerPhasePeak(int index)
  1678. {
  1679. return (byte?)GetFieldValue(103, index, Fit.SubfieldIndexMainField);
  1680. }
  1681. /// <summary>
  1682. /// Set AvgLeftPowerPhasePeak field
  1683. /// Units: degrees
  1684. /// Comment: Average left power phase peak angles. Data value indexes defined by power_phase_type.</summary>
  1685. /// <param name="index">0 based index of avg_left_power_phase_peak</param>
  1686. /// <param name="avgLeftPowerPhasePeak_">Nullable field value to be set</param>
  1687. public void SetAvgLeftPowerPhasePeak(int index, byte? avgLeftPowerPhasePeak_)
  1688. {
  1689. SetFieldValue(103, index, avgLeftPowerPhasePeak_, Fit.SubfieldIndexMainField);
  1690. }
  1691. /// <summary>
  1692. ///
  1693. /// </summary>
  1694. /// <returns>returns number of elements in field AvgRightPowerPhase</returns>
  1695. public int GetNumAvgRightPowerPhase()
  1696. {
  1697. return GetNumFieldValues(104, Fit.SubfieldIndexMainField);
  1698. }
  1699. ///<summary>
  1700. /// Retrieves the AvgRightPowerPhase field
  1701. /// Units: degrees
  1702. /// Comment: Average right power phase angles. Data value indexes defined by power_phase_type.</summary>
  1703. /// <param name="index">0 based index of AvgRightPowerPhase element to retrieve</param>
  1704. /// <returns>Returns nullable byte representing the AvgRightPowerPhase field</returns>
  1705. public byte? GetAvgRightPowerPhase(int index)
  1706. {
  1707. return (byte?)GetFieldValue(104, index, Fit.SubfieldIndexMainField);
  1708. }
  1709. /// <summary>
  1710. /// Set AvgRightPowerPhase field
  1711. /// Units: degrees
  1712. /// Comment: Average right power phase angles. Data value indexes defined by power_phase_type.</summary>
  1713. /// <param name="index">0 based index of avg_right_power_phase</param>
  1714. /// <param name="avgRightPowerPhase_">Nullable field value to be set</param>
  1715. public void SetAvgRightPowerPhase(int index, byte? avgRightPowerPhase_)
  1716. {
  1717. SetFieldValue(104, index, avgRightPowerPhase_, Fit.SubfieldIndexMainField);
  1718. }
  1719. /// <summary>
  1720. ///
  1721. /// </summary>
  1722. /// <returns>returns number of elements in field AvgRightPowerPhasePeak</returns>
  1723. public int GetNumAvgRightPowerPhasePeak()
  1724. {
  1725. return GetNumFieldValues(105, Fit.SubfieldIndexMainField);
  1726. }
  1727. ///<summary>
  1728. /// Retrieves the AvgRightPowerPhasePeak field
  1729. /// Units: degrees
  1730. /// Comment: Average right power phase peak angles. Data value indexes defined by power_phase_type.</summary>
  1731. /// <param name="index">0 based index of AvgRightPowerPhasePeak element to retrieve</param>
  1732. /// <returns>Returns nullable byte representing the AvgRightPowerPhasePeak field</returns>
  1733. public byte? GetAvgRightPowerPhasePeak(int index)
  1734. {
  1735. return (byte?)GetFieldValue(105, index, Fit.SubfieldIndexMainField);
  1736. }
  1737. /// <summary>
  1738. /// Set AvgRightPowerPhasePeak field
  1739. /// Units: degrees
  1740. /// Comment: Average right power phase peak angles. Data value indexes defined by power_phase_type.</summary>
  1741. /// <param name="index">0 based index of avg_right_power_phase_peak</param>
  1742. /// <param name="avgRightPowerPhasePeak_">Nullable field value to be set</param>
  1743. public void SetAvgRightPowerPhasePeak(int index, byte? avgRightPowerPhasePeak_)
  1744. {
  1745. SetFieldValue(105, index, avgRightPowerPhasePeak_, Fit.SubfieldIndexMainField);
  1746. }
  1747. /// <summary>
  1748. ///
  1749. /// </summary>
  1750. /// <returns>returns number of elements in field AvgPowerPosition</returns>
  1751. public int GetNumAvgPowerPosition()
  1752. {
  1753. return GetNumFieldValues(106, Fit.SubfieldIndexMainField);
  1754. }
  1755. ///<summary>
  1756. /// Retrieves the AvgPowerPosition field
  1757. /// Units: watts
  1758. /// Comment: Average power by position. Data value indexes defined by rider_position_type.</summary>
  1759. /// <param name="index">0 based index of AvgPowerPosition element to retrieve</param>
  1760. /// <returns>Returns nullable ushort representing the AvgPowerPosition field</returns>
  1761. public ushort? GetAvgPowerPosition(int index)
  1762. {
  1763. return (ushort?)GetFieldValue(106, index, Fit.SubfieldIndexMainField);
  1764. }
  1765. /// <summary>
  1766. /// Set AvgPowerPosition field
  1767. /// Units: watts
  1768. /// Comment: Average power by position. Data value indexes defined by rider_position_type.</summary>
  1769. /// <param name="index">0 based index of avg_power_position</param>
  1770. /// <param name="avgPowerPosition_">Nullable field value to be set</param>
  1771. public void SetAvgPowerPosition(int index, ushort? avgPowerPosition_)
  1772. {
  1773. SetFieldValue(106, index, avgPowerPosition_, Fit.SubfieldIndexMainField);
  1774. }
  1775. /// <summary>
  1776. ///
  1777. /// </summary>
  1778. /// <returns>returns number of elements in field MaxPowerPosition</returns>
  1779. public int GetNumMaxPowerPosition()
  1780. {
  1781. return GetNumFieldValues(107, Fit.SubfieldIndexMainField);
  1782. }
  1783. ///<summary>
  1784. /// Retrieves the MaxPowerPosition field
  1785. /// Units: watts
  1786. /// Comment: Maximum power by position. Data value indexes defined by rider_position_type.</summary>
  1787. /// <param name="index">0 based index of MaxPowerPosition element to retrieve</param>
  1788. /// <returns>Returns nullable ushort representing the MaxPowerPosition field</returns>
  1789. public ushort? GetMaxPowerPosition(int index)
  1790. {
  1791. return (ushort?)GetFieldValue(107, index, Fit.SubfieldIndexMainField);
  1792. }
  1793. /// <summary>
  1794. /// Set MaxPowerPosition field
  1795. /// Units: watts
  1796. /// Comment: Maximum power by position. Data value indexes defined by rider_position_type.</summary>
  1797. /// <param name="index">0 based index of max_power_position</param>
  1798. /// <param name="maxPowerPosition_">Nullable field value to be set</param>
  1799. public void SetMaxPowerPosition(int index, ushort? maxPowerPosition_)
  1800. {
  1801. SetFieldValue(107, index, maxPowerPosition_, Fit.SubfieldIndexMainField);
  1802. }
  1803. /// <summary>
  1804. ///
  1805. /// </summary>
  1806. /// <returns>returns number of elements in field AvgCadencePosition</returns>
  1807. public int GetNumAvgCadencePosition()
  1808. {
  1809. return GetNumFieldValues(108, Fit.SubfieldIndexMainField);
  1810. }
  1811. ///<summary>
  1812. /// Retrieves the AvgCadencePosition field
  1813. /// Units: rpm
  1814. /// Comment: Average cadence by position. Data value indexes defined by rider_position_type.</summary>
  1815. /// <param name="index">0 based index of AvgCadencePosition element to retrieve</param>
  1816. /// <returns>Returns nullable byte representing the AvgCadencePosition field</returns>
  1817. public byte? GetAvgCadencePosition(int index)
  1818. {
  1819. return (byte?)GetFieldValue(108, index, Fit.SubfieldIndexMainField);
  1820. }
  1821. /// <summary>
  1822. /// Set AvgCadencePosition field
  1823. /// Units: rpm
  1824. /// Comment: Average cadence by position. Data value indexes defined by rider_position_type.</summary>
  1825. /// <param name="index">0 based index of avg_cadence_position</param>
  1826. /// <param name="avgCadencePosition_">Nullable field value to be set</param>
  1827. public void SetAvgCadencePosition(int index, byte? avgCadencePosition_)
  1828. {
  1829. SetFieldValue(108, index, avgCadencePosition_, Fit.SubfieldIndexMainField);
  1830. }
  1831. /// <summary>
  1832. ///
  1833. /// </summary>
  1834. /// <returns>returns number of elements in field MaxCadencePosition</returns>
  1835. public int GetNumMaxCadencePosition()
  1836. {
  1837. return GetNumFieldValues(109, Fit.SubfieldIndexMainField);
  1838. }
  1839. ///<summary>
  1840. /// Retrieves the MaxCadencePosition field
  1841. /// Units: rpm
  1842. /// Comment: Maximum cadence by position. Data value indexes defined by rider_position_type.</summary>
  1843. /// <param name="index">0 based index of MaxCadencePosition element to retrieve</param>
  1844. /// <returns>Returns nullable byte representing the MaxCadencePosition field</returns>
  1845. public byte? GetMaxCadencePosition(int index)
  1846. {
  1847. return (byte?)GetFieldValue(109, index, Fit.SubfieldIndexMainField);
  1848. }
  1849. /// <summary>
  1850. /// Set MaxCadencePosition field
  1851. /// Units: rpm
  1852. /// Comment: Maximum cadence by position. Data value indexes defined by rider_position_type.</summary>
  1853. /// <param name="index">0 based index of max_cadence_position</param>
  1854. /// <param name="maxCadencePosition_">Nullable field value to be set</param>
  1855. public void SetMaxCadencePosition(int index, byte? maxCadencePosition_)
  1856. {
  1857. SetFieldValue(109, index, maxCadencePosition_, Fit.SubfieldIndexMainField);
  1858. }
  1859. ///<summary>
  1860. /// Retrieves the EnhancedAvgSpeed field
  1861. /// Units: m/s</summary>
  1862. /// <returns>Returns nullable float representing the EnhancedAvgSpeed field</returns>
  1863. public float? GetEnhancedAvgSpeed()
  1864. {
  1865. return (float?)GetFieldValue(110, 0, Fit.SubfieldIndexMainField);
  1866. }
  1867. /// <summary>
  1868. /// Set EnhancedAvgSpeed field
  1869. /// Units: m/s</summary>
  1870. /// <param name="enhancedAvgSpeed_">Nullable field value to be set</param>
  1871. public void SetEnhancedAvgSpeed(float? enhancedAvgSpeed_)
  1872. {
  1873. SetFieldValue(110, 0, enhancedAvgSpeed_, Fit.SubfieldIndexMainField);
  1874. }
  1875. ///<summary>
  1876. /// Retrieves the EnhancedMaxSpeed field
  1877. /// Units: m/s</summary>
  1878. /// <returns>Returns nullable float representing the EnhancedMaxSpeed field</returns>
  1879. public float? GetEnhancedMaxSpeed()
  1880. {
  1881. return (float?)GetFieldValue(111, 0, Fit.SubfieldIndexMainField);
  1882. }
  1883. /// <summary>
  1884. /// Set EnhancedMaxSpeed field
  1885. /// Units: m/s</summary>
  1886. /// <param name="enhancedMaxSpeed_">Nullable field value to be set</param>
  1887. public void SetEnhancedMaxSpeed(float? enhancedMaxSpeed_)
  1888. {
  1889. SetFieldValue(111, 0, enhancedMaxSpeed_, Fit.SubfieldIndexMainField);
  1890. }
  1891. ///<summary>
  1892. /// Retrieves the EnhancedAvgAltitude field
  1893. /// Units: m</summary>
  1894. /// <returns>Returns nullable float representing the EnhancedAvgAltitude field</returns>
  1895. public float? GetEnhancedAvgAltitude()
  1896. {
  1897. return (float?)GetFieldValue(112, 0, Fit.SubfieldIndexMainField);
  1898. }
  1899. /// <summary>
  1900. /// Set EnhancedAvgAltitude field
  1901. /// Units: m</summary>
  1902. /// <param name="enhancedAvgAltitude_">Nullable field value to be set</param>
  1903. public void SetEnhancedAvgAltitude(float? enhancedAvgAltitude_)
  1904. {
  1905. SetFieldValue(112, 0, enhancedAvgAltitude_, Fit.SubfieldIndexMainField);
  1906. }
  1907. ///<summary>
  1908. /// Retrieves the EnhancedMinAltitude field
  1909. /// Units: m</summary>
  1910. /// <returns>Returns nullable float representing the EnhancedMinAltitude field</returns>
  1911. public float? GetEnhancedMinAltitude()
  1912. {
  1913. return (float?)GetFieldValue(113, 0, Fit.SubfieldIndexMainField);
  1914. }
  1915. /// <summary>
  1916. /// Set EnhancedMinAltitude field
  1917. /// Units: m</summary>
  1918. /// <param name="enhancedMinAltitude_">Nullable field value to be set</param>
  1919. public void SetEnhancedMinAltitude(float? enhancedMinAltitude_)
  1920. {
  1921. SetFieldValue(113, 0, enhancedMinAltitude_, Fit.SubfieldIndexMainField);
  1922. }
  1923. ///<summary>
  1924. /// Retrieves the EnhancedMaxAltitude field
  1925. /// Units: m</summary>
  1926. /// <returns>Returns nullable float representing the EnhancedMaxAltitude field</returns>
  1927. public float? GetEnhancedMaxAltitude()
  1928. {
  1929. return (float?)GetFieldValue(114, 0, Fit.SubfieldIndexMainField);
  1930. }
  1931. /// <summary>
  1932. /// Set EnhancedMaxAltitude field
  1933. /// Units: m</summary>
  1934. /// <param name="enhancedMaxAltitude_">Nullable field value to be set</param>
  1935. public void SetEnhancedMaxAltitude(float? enhancedMaxAltitude_)
  1936. {
  1937. SetFieldValue(114, 0, enhancedMaxAltitude_, Fit.SubfieldIndexMainField);
  1938. }
  1939. ///<summary>
  1940. /// Retrieves the AvgLevMotorPower field
  1941. /// Units: watts
  1942. /// Comment: lev average motor power during lap</summary>
  1943. /// <returns>Returns nullable ushort representing the AvgLevMotorPower field</returns>
  1944. public ushort? GetAvgLevMotorPower()
  1945. {
  1946. return (ushort?)GetFieldValue(115, 0, Fit.SubfieldIndexMainField);
  1947. }
  1948. /// <summary>
  1949. /// Set AvgLevMotorPower field
  1950. /// Units: watts
  1951. /// Comment: lev average motor power during lap</summary>
  1952. /// <param name="avgLevMotorPower_">Nullable field value to be set</param>
  1953. public void SetAvgLevMotorPower(ushort? avgLevMotorPower_)
  1954. {
  1955. SetFieldValue(115, 0, avgLevMotorPower_, Fit.SubfieldIndexMainField);
  1956. }
  1957. ///<summary>
  1958. /// Retrieves the MaxLevMotorPower field
  1959. /// Units: watts
  1960. /// Comment: lev maximum motor power during lap</summary>
  1961. /// <returns>Returns nullable ushort representing the MaxLevMotorPower field</returns>
  1962. public ushort? GetMaxLevMotorPower()
  1963. {
  1964. return (ushort?)GetFieldValue(116, 0, Fit.SubfieldIndexMainField);
  1965. }
  1966. /// <summary>
  1967. /// Set MaxLevMotorPower field
  1968. /// Units: watts
  1969. /// Comment: lev maximum motor power during lap</summary>
  1970. /// <param name="maxLevMotorPower_">Nullable field value to be set</param>
  1971. public void SetMaxLevMotorPower(ushort? maxLevMotorPower_)
  1972. {
  1973. SetFieldValue(116, 0, maxLevMotorPower_, Fit.SubfieldIndexMainField);
  1974. }
  1975. ///<summary>
  1976. /// Retrieves the LevBatteryConsumption field
  1977. /// Units: percent
  1978. /// Comment: lev battery consumption during lap</summary>
  1979. /// <returns>Returns nullable float representing the LevBatteryConsumption field</returns>
  1980. public float? GetLevBatteryConsumption()
  1981. {
  1982. return (float?)GetFieldValue(117, 0, Fit.SubfieldIndexMainField);
  1983. }
  1984. /// <summary>
  1985. /// Set LevBatteryConsumption field
  1986. /// Units: percent
  1987. /// Comment: lev battery consumption during lap</summary>
  1988. /// <param name="levBatteryConsumption_">Nullable field value to be set</param>
  1989. public void SetLevBatteryConsumption(float? levBatteryConsumption_)
  1990. {
  1991. SetFieldValue(117, 0, levBatteryConsumption_, Fit.SubfieldIndexMainField);
  1992. }
  1993. #endregion // Methods
  1994. } // Class
  1995. } // namespace