RecordMesg.cs 45 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378
  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 Record profile message.
  27. /// </summary>
  28. public class RecordMesg : Mesg
  29. {
  30. #region Fields
  31. #endregion
  32. #region Constructors
  33. public RecordMesg() : base(Profile.GetMesg(MesgNum.Record))
  34. {
  35. }
  36. public RecordMesg(Mesg mesg) : base(mesg)
  37. {
  38. }
  39. #endregion // Constructors
  40. #region Methods
  41. ///<summary>
  42. /// Retrieves the Timestamp field
  43. /// Units: s</summary>
  44. /// <returns>Returns DateTime representing the Timestamp field</returns>
  45. public DateTime GetTimestamp()
  46. {
  47. return TimestampToDateTime((uint?)GetFieldValue(253, 0, Fit.SubfieldIndexMainField));
  48. }
  49. /// <summary>
  50. /// Set Timestamp field
  51. /// Units: s</summary>
  52. /// <param name="timestamp_">Nullable field value to be set</param>
  53. public void SetTimestamp(DateTime timestamp_)
  54. {
  55. SetFieldValue(253, 0, timestamp_.GetTimeStamp(), Fit.SubfieldIndexMainField);
  56. }
  57. ///<summary>
  58. /// Retrieves the PositionLat field
  59. /// Units: semicircles</summary>
  60. /// <returns>Returns nullable int representing the PositionLat field</returns>
  61. public int? GetPositionLat()
  62. {
  63. return (int?)GetFieldValue(0, 0, Fit.SubfieldIndexMainField);
  64. }
  65. /// <summary>
  66. /// Set PositionLat field
  67. /// Units: semicircles</summary>
  68. /// <param name="positionLat_">Nullable field value to be set</param>
  69. public void SetPositionLat(int? positionLat_)
  70. {
  71. SetFieldValue(0, 0, positionLat_, Fit.SubfieldIndexMainField);
  72. }
  73. ///<summary>
  74. /// Retrieves the PositionLong field
  75. /// Units: semicircles</summary>
  76. /// <returns>Returns nullable int representing the PositionLong field</returns>
  77. public int? GetPositionLong()
  78. {
  79. return (int?)GetFieldValue(1, 0, Fit.SubfieldIndexMainField);
  80. }
  81. /// <summary>
  82. /// Set PositionLong field
  83. /// Units: semicircles</summary>
  84. /// <param name="positionLong_">Nullable field value to be set</param>
  85. public void SetPositionLong(int? positionLong_)
  86. {
  87. SetFieldValue(1, 0, positionLong_, Fit.SubfieldIndexMainField);
  88. }
  89. ///<summary>
  90. /// Retrieves the Altitude field
  91. /// Units: m</summary>
  92. /// <returns>Returns nullable float representing the Altitude field</returns>
  93. public float? GetAltitude()
  94. {
  95. return (float?)GetFieldValue(2, 0, Fit.SubfieldIndexMainField);
  96. }
  97. /// <summary>
  98. /// Set Altitude field
  99. /// Units: m</summary>
  100. /// <param name="altitude_">Nullable field value to be set</param>
  101. public void SetAltitude(float? altitude_)
  102. {
  103. SetFieldValue(2, 0, altitude_, Fit.SubfieldIndexMainField);
  104. }
  105. ///<summary>
  106. /// Retrieves the HeartRate field
  107. /// Units: bpm</summary>
  108. /// <returns>Returns nullable byte representing the HeartRate field</returns>
  109. public byte? GetHeartRate()
  110. {
  111. return (byte?)GetFieldValue(3, 0, Fit.SubfieldIndexMainField);
  112. }
  113. /// <summary>
  114. /// Set HeartRate field
  115. /// Units: bpm</summary>
  116. /// <param name="heartRate_">Nullable field value to be set</param>
  117. public void SetHeartRate(byte? heartRate_)
  118. {
  119. SetFieldValue(3, 0, heartRate_, Fit.SubfieldIndexMainField);
  120. }
  121. ///<summary>
  122. /// Retrieves the Cadence field
  123. /// Units: rpm</summary>
  124. /// <returns>Returns nullable byte representing the Cadence field</returns>
  125. public byte? GetCadence()
  126. {
  127. return (byte?)GetFieldValue(4, 0, Fit.SubfieldIndexMainField);
  128. }
  129. /// <summary>
  130. /// Set Cadence field
  131. /// Units: rpm</summary>
  132. /// <param name="cadence_">Nullable field value to be set</param>
  133. public void SetCadence(byte? cadence_)
  134. {
  135. SetFieldValue(4, 0, cadence_, Fit.SubfieldIndexMainField);
  136. }
  137. ///<summary>
  138. /// Retrieves the Distance field
  139. /// Units: m</summary>
  140. /// <returns>Returns nullable float representing the Distance field</returns>
  141. public float? GetDistance()
  142. {
  143. return (float?)GetFieldValue(5, 0, Fit.SubfieldIndexMainField);
  144. }
  145. /// <summary>
  146. /// Set Distance field
  147. /// Units: m</summary>
  148. /// <param name="distance_">Nullable field value to be set</param>
  149. public void SetDistance(float? distance_)
  150. {
  151. SetFieldValue(5, 0, distance_, Fit.SubfieldIndexMainField);
  152. }
  153. ///<summary>
  154. /// Retrieves the Speed field
  155. /// Units: m/s</summary>
  156. /// <returns>Returns nullable float representing the Speed field</returns>
  157. public float? GetSpeed()
  158. {
  159. return (float?)GetFieldValue(6, 0, Fit.SubfieldIndexMainField);
  160. }
  161. /// <summary>
  162. /// Set Speed field
  163. /// Units: m/s</summary>
  164. /// <param name="speed_">Nullable field value to be set</param>
  165. public void SetSpeed(float? speed_)
  166. {
  167. SetFieldValue(6, 0, speed_, Fit.SubfieldIndexMainField);
  168. }
  169. ///<summary>
  170. /// Retrieves the Power field
  171. /// Units: watts</summary>
  172. /// <returns>Returns nullable ushort representing the Power field</returns>
  173. public ushort? GetPower()
  174. {
  175. return (ushort?)GetFieldValue(7, 0, Fit.SubfieldIndexMainField);
  176. }
  177. /// <summary>
  178. /// Set Power field
  179. /// Units: watts</summary>
  180. /// <param name="power_">Nullable field value to be set</param>
  181. public void SetPower(ushort? power_)
  182. {
  183. SetFieldValue(7, 0, power_, Fit.SubfieldIndexMainField);
  184. }
  185. /// <summary>
  186. ///
  187. /// </summary>
  188. /// <returns>returns number of elements in field CompressedSpeedDistance</returns>
  189. public int GetNumCompressedSpeedDistance()
  190. {
  191. return GetNumFieldValues(8, Fit.SubfieldIndexMainField);
  192. }
  193. ///<summary>
  194. /// Retrieves the CompressedSpeedDistance field</summary>
  195. /// <param name="index">0 based index of CompressedSpeedDistance element to retrieve</param>
  196. /// <returns>Returns nullable byte representing the CompressedSpeedDistance field</returns>
  197. public byte? GetCompressedSpeedDistance(int index)
  198. {
  199. return (byte?)GetFieldValue(8, index, Fit.SubfieldIndexMainField);
  200. }
  201. /// <summary>
  202. /// Set CompressedSpeedDistance field</summary>
  203. /// <param name="index">0 based index of compressed_speed_distance</param>
  204. /// <param name="compressedSpeedDistance_">Nullable field value to be set</param>
  205. public void SetCompressedSpeedDistance(int index, byte? compressedSpeedDistance_)
  206. {
  207. SetFieldValue(8, index, compressedSpeedDistance_, Fit.SubfieldIndexMainField);
  208. }
  209. ///<summary>
  210. /// Retrieves the Grade field
  211. /// Units: %</summary>
  212. /// <returns>Returns nullable float representing the Grade field</returns>
  213. public float? GetGrade()
  214. {
  215. return (float?)GetFieldValue(9, 0, Fit.SubfieldIndexMainField);
  216. }
  217. /// <summary>
  218. /// Set Grade field
  219. /// Units: %</summary>
  220. /// <param name="grade_">Nullable field value to be set</param>
  221. public void SetGrade(float? grade_)
  222. {
  223. SetFieldValue(9, 0, grade_, Fit.SubfieldIndexMainField);
  224. }
  225. ///<summary>
  226. /// Retrieves the Resistance field
  227. /// Comment: Relative. 0 is none 254 is Max.</summary>
  228. /// <returns>Returns nullable byte representing the Resistance field</returns>
  229. public byte? GetResistance()
  230. {
  231. return (byte?)GetFieldValue(10, 0, Fit.SubfieldIndexMainField);
  232. }
  233. /// <summary>
  234. /// Set Resistance field
  235. /// Comment: Relative. 0 is none 254 is Max.</summary>
  236. /// <param name="resistance_">Nullable field value to be set</param>
  237. public void SetResistance(byte? resistance_)
  238. {
  239. SetFieldValue(10, 0, resistance_, Fit.SubfieldIndexMainField);
  240. }
  241. ///<summary>
  242. /// Retrieves the TimeFromCourse field
  243. /// Units: s</summary>
  244. /// <returns>Returns nullable float representing the TimeFromCourse field</returns>
  245. public float? GetTimeFromCourse()
  246. {
  247. return (float?)GetFieldValue(11, 0, Fit.SubfieldIndexMainField);
  248. }
  249. /// <summary>
  250. /// Set TimeFromCourse field
  251. /// Units: s</summary>
  252. /// <param name="timeFromCourse_">Nullable field value to be set</param>
  253. public void SetTimeFromCourse(float? timeFromCourse_)
  254. {
  255. SetFieldValue(11, 0, timeFromCourse_, Fit.SubfieldIndexMainField);
  256. }
  257. ///<summary>
  258. /// Retrieves the CycleLength field
  259. /// Units: m</summary>
  260. /// <returns>Returns nullable float representing the CycleLength field</returns>
  261. public float? GetCycleLength()
  262. {
  263. return (float?)GetFieldValue(12, 0, Fit.SubfieldIndexMainField);
  264. }
  265. /// <summary>
  266. /// Set CycleLength field
  267. /// Units: m</summary>
  268. /// <param name="cycleLength_">Nullable field value to be set</param>
  269. public void SetCycleLength(float? cycleLength_)
  270. {
  271. SetFieldValue(12, 0, cycleLength_, Fit.SubfieldIndexMainField);
  272. }
  273. ///<summary>
  274. /// Retrieves the Temperature field
  275. /// Units: C</summary>
  276. /// <returns>Returns nullable sbyte representing the Temperature field</returns>
  277. public sbyte? GetTemperature()
  278. {
  279. return (sbyte?)GetFieldValue(13, 0, Fit.SubfieldIndexMainField);
  280. }
  281. /// <summary>
  282. /// Set Temperature field
  283. /// Units: C</summary>
  284. /// <param name="temperature_">Nullable field value to be set</param>
  285. public void SetTemperature(sbyte? temperature_)
  286. {
  287. SetFieldValue(13, 0, temperature_, Fit.SubfieldIndexMainField);
  288. }
  289. /// <summary>
  290. ///
  291. /// </summary>
  292. /// <returns>returns number of elements in field Speed1s</returns>
  293. public int GetNumSpeed1s()
  294. {
  295. return GetNumFieldValues(17, Fit.SubfieldIndexMainField);
  296. }
  297. ///<summary>
  298. /// Retrieves the Speed1s field
  299. /// Units: m/s
  300. /// Comment: Speed at 1s intervals. Timestamp field indicates time of last array element.</summary>
  301. /// <param name="index">0 based index of Speed1s element to retrieve</param>
  302. /// <returns>Returns nullable float representing the Speed1s field</returns>
  303. public float? GetSpeed1s(int index)
  304. {
  305. return (float?)GetFieldValue(17, index, Fit.SubfieldIndexMainField);
  306. }
  307. /// <summary>
  308. /// Set Speed1s field
  309. /// Units: m/s
  310. /// Comment: Speed at 1s intervals. Timestamp field indicates time of last array element.</summary>
  311. /// <param name="index">0 based index of speed_1s</param>
  312. /// <param name="speed1s_">Nullable field value to be set</param>
  313. public void SetSpeed1s(int index, float? speed1s_)
  314. {
  315. SetFieldValue(17, index, speed1s_, Fit.SubfieldIndexMainField);
  316. }
  317. ///<summary>
  318. /// Retrieves the Cycles field
  319. /// Units: cycles</summary>
  320. /// <returns>Returns nullable byte representing the Cycles field</returns>
  321. public byte? GetCycles()
  322. {
  323. return (byte?)GetFieldValue(18, 0, Fit.SubfieldIndexMainField);
  324. }
  325. /// <summary>
  326. /// Set Cycles field
  327. /// Units: cycles</summary>
  328. /// <param name="cycles_">Nullable field value to be set</param>
  329. public void SetCycles(byte? cycles_)
  330. {
  331. SetFieldValue(18, 0, cycles_, Fit.SubfieldIndexMainField);
  332. }
  333. ///<summary>
  334. /// Retrieves the TotalCycles field
  335. /// Units: cycles</summary>
  336. /// <returns>Returns nullable uint representing the TotalCycles field</returns>
  337. public uint? GetTotalCycles()
  338. {
  339. return (uint?)GetFieldValue(19, 0, Fit.SubfieldIndexMainField);
  340. }
  341. /// <summary>
  342. /// Set TotalCycles field
  343. /// Units: cycles</summary>
  344. /// <param name="totalCycles_">Nullable field value to be set</param>
  345. public void SetTotalCycles(uint? totalCycles_)
  346. {
  347. SetFieldValue(19, 0, totalCycles_, Fit.SubfieldIndexMainField);
  348. }
  349. ///<summary>
  350. /// Retrieves the CompressedAccumulatedPower field
  351. /// Units: watts</summary>
  352. /// <returns>Returns nullable ushort representing the CompressedAccumulatedPower field</returns>
  353. public ushort? GetCompressedAccumulatedPower()
  354. {
  355. return (ushort?)GetFieldValue(28, 0, Fit.SubfieldIndexMainField);
  356. }
  357. /// <summary>
  358. /// Set CompressedAccumulatedPower field
  359. /// Units: watts</summary>
  360. /// <param name="compressedAccumulatedPower_">Nullable field value to be set</param>
  361. public void SetCompressedAccumulatedPower(ushort? compressedAccumulatedPower_)
  362. {
  363. SetFieldValue(28, 0, compressedAccumulatedPower_, Fit.SubfieldIndexMainField);
  364. }
  365. ///<summary>
  366. /// Retrieves the AccumulatedPower field
  367. /// Units: watts</summary>
  368. /// <returns>Returns nullable uint representing the AccumulatedPower field</returns>
  369. public uint? GetAccumulatedPower()
  370. {
  371. return (uint?)GetFieldValue(29, 0, Fit.SubfieldIndexMainField);
  372. }
  373. /// <summary>
  374. /// Set AccumulatedPower field
  375. /// Units: watts</summary>
  376. /// <param name="accumulatedPower_">Nullable field value to be set</param>
  377. public void SetAccumulatedPower(uint? accumulatedPower_)
  378. {
  379. SetFieldValue(29, 0, accumulatedPower_, Fit.SubfieldIndexMainField);
  380. }
  381. ///<summary>
  382. /// Retrieves the LeftRightBalance field</summary>
  383. /// <returns>Returns nullable byte representing the LeftRightBalance field</returns>
  384. public byte? GetLeftRightBalance()
  385. {
  386. return (byte?)GetFieldValue(30, 0, Fit.SubfieldIndexMainField);
  387. }
  388. /// <summary>
  389. /// Set LeftRightBalance field</summary>
  390. /// <param name="leftRightBalance_">Nullable field value to be set</param>
  391. public void SetLeftRightBalance(byte? leftRightBalance_)
  392. {
  393. SetFieldValue(30, 0, leftRightBalance_, Fit.SubfieldIndexMainField);
  394. }
  395. ///<summary>
  396. /// Retrieves the GpsAccuracy field
  397. /// Units: m</summary>
  398. /// <returns>Returns nullable byte representing the GpsAccuracy field</returns>
  399. public byte? GetGpsAccuracy()
  400. {
  401. return (byte?)GetFieldValue(31, 0, Fit.SubfieldIndexMainField);
  402. }
  403. /// <summary>
  404. /// Set GpsAccuracy field
  405. /// Units: m</summary>
  406. /// <param name="gpsAccuracy_">Nullable field value to be set</param>
  407. public void SetGpsAccuracy(byte? gpsAccuracy_)
  408. {
  409. SetFieldValue(31, 0, gpsAccuracy_, Fit.SubfieldIndexMainField);
  410. }
  411. ///<summary>
  412. /// Retrieves the VerticalSpeed field
  413. /// Units: m/s</summary>
  414. /// <returns>Returns nullable float representing the VerticalSpeed field</returns>
  415. public float? GetVerticalSpeed()
  416. {
  417. return (float?)GetFieldValue(32, 0, Fit.SubfieldIndexMainField);
  418. }
  419. /// <summary>
  420. /// Set VerticalSpeed field
  421. /// Units: m/s</summary>
  422. /// <param name="verticalSpeed_">Nullable field value to be set</param>
  423. public void SetVerticalSpeed(float? verticalSpeed_)
  424. {
  425. SetFieldValue(32, 0, verticalSpeed_, Fit.SubfieldIndexMainField);
  426. }
  427. ///<summary>
  428. /// Retrieves the Calories field
  429. /// Units: kcal</summary>
  430. /// <returns>Returns nullable ushort representing the Calories field</returns>
  431. public ushort? GetCalories()
  432. {
  433. return (ushort?)GetFieldValue(33, 0, Fit.SubfieldIndexMainField);
  434. }
  435. /// <summary>
  436. /// Set Calories field
  437. /// Units: kcal</summary>
  438. /// <param name="calories_">Nullable field value to be set</param>
  439. public void SetCalories(ushort? calories_)
  440. {
  441. SetFieldValue(33, 0, calories_, Fit.SubfieldIndexMainField);
  442. }
  443. ///<summary>
  444. /// Retrieves the VerticalOscillation field
  445. /// Units: mm</summary>
  446. /// <returns>Returns nullable float representing the VerticalOscillation field</returns>
  447. public float? GetVerticalOscillation()
  448. {
  449. return (float?)GetFieldValue(39, 0, Fit.SubfieldIndexMainField);
  450. }
  451. /// <summary>
  452. /// Set VerticalOscillation field
  453. /// Units: mm</summary>
  454. /// <param name="verticalOscillation_">Nullable field value to be set</param>
  455. public void SetVerticalOscillation(float? verticalOscillation_)
  456. {
  457. SetFieldValue(39, 0, verticalOscillation_, Fit.SubfieldIndexMainField);
  458. }
  459. ///<summary>
  460. /// Retrieves the StanceTimePercent field
  461. /// Units: percent</summary>
  462. /// <returns>Returns nullable float representing the StanceTimePercent field</returns>
  463. public float? GetStanceTimePercent()
  464. {
  465. return (float?)GetFieldValue(40, 0, Fit.SubfieldIndexMainField);
  466. }
  467. /// <summary>
  468. /// Set StanceTimePercent field
  469. /// Units: percent</summary>
  470. /// <param name="stanceTimePercent_">Nullable field value to be set</param>
  471. public void SetStanceTimePercent(float? stanceTimePercent_)
  472. {
  473. SetFieldValue(40, 0, stanceTimePercent_, Fit.SubfieldIndexMainField);
  474. }
  475. ///<summary>
  476. /// Retrieves the StanceTime field
  477. /// Units: ms</summary>
  478. /// <returns>Returns nullable float representing the StanceTime field</returns>
  479. public float? GetStanceTime()
  480. {
  481. return (float?)GetFieldValue(41, 0, Fit.SubfieldIndexMainField);
  482. }
  483. /// <summary>
  484. /// Set StanceTime field
  485. /// Units: ms</summary>
  486. /// <param name="stanceTime_">Nullable field value to be set</param>
  487. public void SetStanceTime(float? stanceTime_)
  488. {
  489. SetFieldValue(41, 0, stanceTime_, Fit.SubfieldIndexMainField);
  490. }
  491. ///<summary>
  492. /// Retrieves the ActivityType field</summary>
  493. /// <returns>Returns nullable ActivityType enum representing the ActivityType field</returns>
  494. public ActivityType? GetActivityType()
  495. {
  496. object obj = GetFieldValue(42, 0, Fit.SubfieldIndexMainField);
  497. ActivityType? value = obj == null ? (ActivityType?)null : (ActivityType)obj;
  498. return value;
  499. }
  500. /// <summary>
  501. /// Set ActivityType field</summary>
  502. /// <param name="activityType_">Nullable field value to be set</param>
  503. public void SetActivityType(ActivityType? activityType_)
  504. {
  505. SetFieldValue(42, 0, activityType_, Fit.SubfieldIndexMainField);
  506. }
  507. ///<summary>
  508. /// Retrieves the LeftTorqueEffectiveness field
  509. /// Units: percent</summary>
  510. /// <returns>Returns nullable float representing the LeftTorqueEffectiveness field</returns>
  511. public float? GetLeftTorqueEffectiveness()
  512. {
  513. return (float?)GetFieldValue(43, 0, Fit.SubfieldIndexMainField);
  514. }
  515. /// <summary>
  516. /// Set LeftTorqueEffectiveness field
  517. /// Units: percent</summary>
  518. /// <param name="leftTorqueEffectiveness_">Nullable field value to be set</param>
  519. public void SetLeftTorqueEffectiveness(float? leftTorqueEffectiveness_)
  520. {
  521. SetFieldValue(43, 0, leftTorqueEffectiveness_, Fit.SubfieldIndexMainField);
  522. }
  523. ///<summary>
  524. /// Retrieves the RightTorqueEffectiveness field
  525. /// Units: percent</summary>
  526. /// <returns>Returns nullable float representing the RightTorqueEffectiveness field</returns>
  527. public float? GetRightTorqueEffectiveness()
  528. {
  529. return (float?)GetFieldValue(44, 0, Fit.SubfieldIndexMainField);
  530. }
  531. /// <summary>
  532. /// Set RightTorqueEffectiveness field
  533. /// Units: percent</summary>
  534. /// <param name="rightTorqueEffectiveness_">Nullable field value to be set</param>
  535. public void SetRightTorqueEffectiveness(float? rightTorqueEffectiveness_)
  536. {
  537. SetFieldValue(44, 0, rightTorqueEffectiveness_, Fit.SubfieldIndexMainField);
  538. }
  539. ///<summary>
  540. /// Retrieves the LeftPedalSmoothness field
  541. /// Units: percent</summary>
  542. /// <returns>Returns nullable float representing the LeftPedalSmoothness field</returns>
  543. public float? GetLeftPedalSmoothness()
  544. {
  545. return (float?)GetFieldValue(45, 0, Fit.SubfieldIndexMainField);
  546. }
  547. /// <summary>
  548. /// Set LeftPedalSmoothness field
  549. /// Units: percent</summary>
  550. /// <param name="leftPedalSmoothness_">Nullable field value to be set</param>
  551. public void SetLeftPedalSmoothness(float? leftPedalSmoothness_)
  552. {
  553. SetFieldValue(45, 0, leftPedalSmoothness_, Fit.SubfieldIndexMainField);
  554. }
  555. ///<summary>
  556. /// Retrieves the RightPedalSmoothness field
  557. /// Units: percent</summary>
  558. /// <returns>Returns nullable float representing the RightPedalSmoothness field</returns>
  559. public float? GetRightPedalSmoothness()
  560. {
  561. return (float?)GetFieldValue(46, 0, Fit.SubfieldIndexMainField);
  562. }
  563. /// <summary>
  564. /// Set RightPedalSmoothness field
  565. /// Units: percent</summary>
  566. /// <param name="rightPedalSmoothness_">Nullable field value to be set</param>
  567. public void SetRightPedalSmoothness(float? rightPedalSmoothness_)
  568. {
  569. SetFieldValue(46, 0, rightPedalSmoothness_, Fit.SubfieldIndexMainField);
  570. }
  571. ///<summary>
  572. /// Retrieves the CombinedPedalSmoothness field
  573. /// Units: percent</summary>
  574. /// <returns>Returns nullable float representing the CombinedPedalSmoothness field</returns>
  575. public float? GetCombinedPedalSmoothness()
  576. {
  577. return (float?)GetFieldValue(47, 0, Fit.SubfieldIndexMainField);
  578. }
  579. /// <summary>
  580. /// Set CombinedPedalSmoothness field
  581. /// Units: percent</summary>
  582. /// <param name="combinedPedalSmoothness_">Nullable field value to be set</param>
  583. public void SetCombinedPedalSmoothness(float? combinedPedalSmoothness_)
  584. {
  585. SetFieldValue(47, 0, combinedPedalSmoothness_, Fit.SubfieldIndexMainField);
  586. }
  587. ///<summary>
  588. /// Retrieves the Time128 field
  589. /// Units: s</summary>
  590. /// <returns>Returns nullable float representing the Time128 field</returns>
  591. public float? GetTime128()
  592. {
  593. return (float?)GetFieldValue(48, 0, Fit.SubfieldIndexMainField);
  594. }
  595. /// <summary>
  596. /// Set Time128 field
  597. /// Units: s</summary>
  598. /// <param name="time128_">Nullable field value to be set</param>
  599. public void SetTime128(float? time128_)
  600. {
  601. SetFieldValue(48, 0, time128_, Fit.SubfieldIndexMainField);
  602. }
  603. ///<summary>
  604. /// Retrieves the StrokeType field</summary>
  605. /// <returns>Returns nullable StrokeType enum representing the StrokeType field</returns>
  606. public StrokeType? GetStrokeType()
  607. {
  608. object obj = GetFieldValue(49, 0, Fit.SubfieldIndexMainField);
  609. StrokeType? value = obj == null ? (StrokeType?)null : (StrokeType)obj;
  610. return value;
  611. }
  612. /// <summary>
  613. /// Set StrokeType field</summary>
  614. /// <param name="strokeType_">Nullable field value to be set</param>
  615. public void SetStrokeType(StrokeType? strokeType_)
  616. {
  617. SetFieldValue(49, 0, strokeType_, Fit.SubfieldIndexMainField);
  618. }
  619. ///<summary>
  620. /// Retrieves the Zone field</summary>
  621. /// <returns>Returns nullable byte representing the Zone field</returns>
  622. public byte? GetZone()
  623. {
  624. return (byte?)GetFieldValue(50, 0, Fit.SubfieldIndexMainField);
  625. }
  626. /// <summary>
  627. /// Set Zone field</summary>
  628. /// <param name="zone_">Nullable field value to be set</param>
  629. public void SetZone(byte? zone_)
  630. {
  631. SetFieldValue(50, 0, zone_, Fit.SubfieldIndexMainField);
  632. }
  633. ///<summary>
  634. /// Retrieves the BallSpeed field
  635. /// Units: m/s</summary>
  636. /// <returns>Returns nullable float representing the BallSpeed field</returns>
  637. public float? GetBallSpeed()
  638. {
  639. return (float?)GetFieldValue(51, 0, Fit.SubfieldIndexMainField);
  640. }
  641. /// <summary>
  642. /// Set BallSpeed field
  643. /// Units: m/s</summary>
  644. /// <param name="ballSpeed_">Nullable field value to be set</param>
  645. public void SetBallSpeed(float? ballSpeed_)
  646. {
  647. SetFieldValue(51, 0, ballSpeed_, Fit.SubfieldIndexMainField);
  648. }
  649. ///<summary>
  650. /// Retrieves the Cadence256 field
  651. /// Units: rpm
  652. /// Comment: Log cadence and fractional cadence for backwards compatability</summary>
  653. /// <returns>Returns nullable float representing the Cadence256 field</returns>
  654. public float? GetCadence256()
  655. {
  656. return (float?)GetFieldValue(52, 0, Fit.SubfieldIndexMainField);
  657. }
  658. /// <summary>
  659. /// Set Cadence256 field
  660. /// Units: rpm
  661. /// Comment: Log cadence and fractional cadence for backwards compatability</summary>
  662. /// <param name="cadence256_">Nullable field value to be set</param>
  663. public void SetCadence256(float? cadence256_)
  664. {
  665. SetFieldValue(52, 0, cadence256_, Fit.SubfieldIndexMainField);
  666. }
  667. ///<summary>
  668. /// Retrieves the FractionalCadence field
  669. /// Units: rpm</summary>
  670. /// <returns>Returns nullable float representing the FractionalCadence field</returns>
  671. public float? GetFractionalCadence()
  672. {
  673. return (float?)GetFieldValue(53, 0, Fit.SubfieldIndexMainField);
  674. }
  675. /// <summary>
  676. /// Set FractionalCadence field
  677. /// Units: rpm</summary>
  678. /// <param name="fractionalCadence_">Nullable field value to be set</param>
  679. public void SetFractionalCadence(float? fractionalCadence_)
  680. {
  681. SetFieldValue(53, 0, fractionalCadence_, Fit.SubfieldIndexMainField);
  682. }
  683. ///<summary>
  684. /// Retrieves the TotalHemoglobinConc field
  685. /// Units: g/dL
  686. /// Comment: Total saturated and unsaturated hemoglobin</summary>
  687. /// <returns>Returns nullable float representing the TotalHemoglobinConc field</returns>
  688. public float? GetTotalHemoglobinConc()
  689. {
  690. return (float?)GetFieldValue(54, 0, Fit.SubfieldIndexMainField);
  691. }
  692. /// <summary>
  693. /// Set TotalHemoglobinConc field
  694. /// Units: g/dL
  695. /// Comment: Total saturated and unsaturated hemoglobin</summary>
  696. /// <param name="totalHemoglobinConc_">Nullable field value to be set</param>
  697. public void SetTotalHemoglobinConc(float? totalHemoglobinConc_)
  698. {
  699. SetFieldValue(54, 0, totalHemoglobinConc_, Fit.SubfieldIndexMainField);
  700. }
  701. ///<summary>
  702. /// Retrieves the TotalHemoglobinConcMin field
  703. /// Units: g/dL
  704. /// Comment: Min saturated and unsaturated hemoglobin</summary>
  705. /// <returns>Returns nullable float representing the TotalHemoglobinConcMin field</returns>
  706. public float? GetTotalHemoglobinConcMin()
  707. {
  708. return (float?)GetFieldValue(55, 0, Fit.SubfieldIndexMainField);
  709. }
  710. /// <summary>
  711. /// Set TotalHemoglobinConcMin field
  712. /// Units: g/dL
  713. /// Comment: Min saturated and unsaturated hemoglobin</summary>
  714. /// <param name="totalHemoglobinConcMin_">Nullable field value to be set</param>
  715. public void SetTotalHemoglobinConcMin(float? totalHemoglobinConcMin_)
  716. {
  717. SetFieldValue(55, 0, totalHemoglobinConcMin_, Fit.SubfieldIndexMainField);
  718. }
  719. ///<summary>
  720. /// Retrieves the TotalHemoglobinConcMax field
  721. /// Units: g/dL
  722. /// Comment: Max saturated and unsaturated hemoglobin</summary>
  723. /// <returns>Returns nullable float representing the TotalHemoglobinConcMax field</returns>
  724. public float? GetTotalHemoglobinConcMax()
  725. {
  726. return (float?)GetFieldValue(56, 0, Fit.SubfieldIndexMainField);
  727. }
  728. /// <summary>
  729. /// Set TotalHemoglobinConcMax field
  730. /// Units: g/dL
  731. /// Comment: Max saturated and unsaturated hemoglobin</summary>
  732. /// <param name="totalHemoglobinConcMax_">Nullable field value to be set</param>
  733. public void SetTotalHemoglobinConcMax(float? totalHemoglobinConcMax_)
  734. {
  735. SetFieldValue(56, 0, totalHemoglobinConcMax_, Fit.SubfieldIndexMainField);
  736. }
  737. ///<summary>
  738. /// Retrieves the SaturatedHemoglobinPercent field
  739. /// Units: %
  740. /// Comment: Percentage of hemoglobin saturated with oxygen</summary>
  741. /// <returns>Returns nullable float representing the SaturatedHemoglobinPercent field</returns>
  742. public float? GetSaturatedHemoglobinPercent()
  743. {
  744. return (float?)GetFieldValue(57, 0, Fit.SubfieldIndexMainField);
  745. }
  746. /// <summary>
  747. /// Set SaturatedHemoglobinPercent field
  748. /// Units: %
  749. /// Comment: Percentage of hemoglobin saturated with oxygen</summary>
  750. /// <param name="saturatedHemoglobinPercent_">Nullable field value to be set</param>
  751. public void SetSaturatedHemoglobinPercent(float? saturatedHemoglobinPercent_)
  752. {
  753. SetFieldValue(57, 0, saturatedHemoglobinPercent_, Fit.SubfieldIndexMainField);
  754. }
  755. ///<summary>
  756. /// Retrieves the SaturatedHemoglobinPercentMin field
  757. /// Units: %
  758. /// Comment: Min percentage of hemoglobin saturated with oxygen</summary>
  759. /// <returns>Returns nullable float representing the SaturatedHemoglobinPercentMin field</returns>
  760. public float? GetSaturatedHemoglobinPercentMin()
  761. {
  762. return (float?)GetFieldValue(58, 0, Fit.SubfieldIndexMainField);
  763. }
  764. /// <summary>
  765. /// Set SaturatedHemoglobinPercentMin field
  766. /// Units: %
  767. /// Comment: Min percentage of hemoglobin saturated with oxygen</summary>
  768. /// <param name="saturatedHemoglobinPercentMin_">Nullable field value to be set</param>
  769. public void SetSaturatedHemoglobinPercentMin(float? saturatedHemoglobinPercentMin_)
  770. {
  771. SetFieldValue(58, 0, saturatedHemoglobinPercentMin_, Fit.SubfieldIndexMainField);
  772. }
  773. ///<summary>
  774. /// Retrieves the SaturatedHemoglobinPercentMax field
  775. /// Units: %
  776. /// Comment: Max percentage of hemoglobin saturated with oxygen</summary>
  777. /// <returns>Returns nullable float representing the SaturatedHemoglobinPercentMax field</returns>
  778. public float? GetSaturatedHemoglobinPercentMax()
  779. {
  780. return (float?)GetFieldValue(59, 0, Fit.SubfieldIndexMainField);
  781. }
  782. /// <summary>
  783. /// Set SaturatedHemoglobinPercentMax field
  784. /// Units: %
  785. /// Comment: Max percentage of hemoglobin saturated with oxygen</summary>
  786. /// <param name="saturatedHemoglobinPercentMax_">Nullable field value to be set</param>
  787. public void SetSaturatedHemoglobinPercentMax(float? saturatedHemoglobinPercentMax_)
  788. {
  789. SetFieldValue(59, 0, saturatedHemoglobinPercentMax_, Fit.SubfieldIndexMainField);
  790. }
  791. ///<summary>
  792. /// Retrieves the DeviceIndex field</summary>
  793. /// <returns>Returns nullable byte representing the DeviceIndex field</returns>
  794. public byte? GetDeviceIndex()
  795. {
  796. return (byte?)GetFieldValue(62, 0, Fit.SubfieldIndexMainField);
  797. }
  798. /// <summary>
  799. /// Set DeviceIndex field</summary>
  800. /// <param name="deviceIndex_">Nullable field value to be set</param>
  801. public void SetDeviceIndex(byte? deviceIndex_)
  802. {
  803. SetFieldValue(62, 0, deviceIndex_, Fit.SubfieldIndexMainField);
  804. }
  805. ///<summary>
  806. /// Retrieves the LeftPco field
  807. /// Units: mm
  808. /// Comment: Left platform center offset</summary>
  809. /// <returns>Returns nullable sbyte representing the LeftPco field</returns>
  810. public sbyte? GetLeftPco()
  811. {
  812. return (sbyte?)GetFieldValue(67, 0, Fit.SubfieldIndexMainField);
  813. }
  814. /// <summary>
  815. /// Set LeftPco field
  816. /// Units: mm
  817. /// Comment: Left platform center offset</summary>
  818. /// <param name="leftPco_">Nullable field value to be set</param>
  819. public void SetLeftPco(sbyte? leftPco_)
  820. {
  821. SetFieldValue(67, 0, leftPco_, Fit.SubfieldIndexMainField);
  822. }
  823. ///<summary>
  824. /// Retrieves the RightPco field
  825. /// Units: mm
  826. /// Comment: Right platform center offset</summary>
  827. /// <returns>Returns nullable sbyte representing the RightPco field</returns>
  828. public sbyte? GetRightPco()
  829. {
  830. return (sbyte?)GetFieldValue(68, 0, Fit.SubfieldIndexMainField);
  831. }
  832. /// <summary>
  833. /// Set RightPco field
  834. /// Units: mm
  835. /// Comment: Right platform center offset</summary>
  836. /// <param name="rightPco_">Nullable field value to be set</param>
  837. public void SetRightPco(sbyte? rightPco_)
  838. {
  839. SetFieldValue(68, 0, rightPco_, Fit.SubfieldIndexMainField);
  840. }
  841. /// <summary>
  842. ///
  843. /// </summary>
  844. /// <returns>returns number of elements in field LeftPowerPhase</returns>
  845. public int GetNumLeftPowerPhase()
  846. {
  847. return GetNumFieldValues(69, Fit.SubfieldIndexMainField);
  848. }
  849. ///<summary>
  850. /// Retrieves the LeftPowerPhase field
  851. /// Units: degrees
  852. /// Comment: Left power phase angles. Data value indexes defined by power_phase_type.</summary>
  853. /// <param name="index">0 based index of LeftPowerPhase element to retrieve</param>
  854. /// <returns>Returns nullable byte representing the LeftPowerPhase field</returns>
  855. public byte? GetLeftPowerPhase(int index)
  856. {
  857. return (byte?)GetFieldValue(69, index, Fit.SubfieldIndexMainField);
  858. }
  859. /// <summary>
  860. /// Set LeftPowerPhase field
  861. /// Units: degrees
  862. /// Comment: Left power phase angles. Data value indexes defined by power_phase_type.</summary>
  863. /// <param name="index">0 based index of left_power_phase</param>
  864. /// <param name="leftPowerPhase_">Nullable field value to be set</param>
  865. public void SetLeftPowerPhase(int index, byte? leftPowerPhase_)
  866. {
  867. SetFieldValue(69, index, leftPowerPhase_, Fit.SubfieldIndexMainField);
  868. }
  869. /// <summary>
  870. ///
  871. /// </summary>
  872. /// <returns>returns number of elements in field LeftPowerPhasePeak</returns>
  873. public int GetNumLeftPowerPhasePeak()
  874. {
  875. return GetNumFieldValues(70, Fit.SubfieldIndexMainField);
  876. }
  877. ///<summary>
  878. /// Retrieves the LeftPowerPhasePeak field
  879. /// Units: degrees
  880. /// Comment: Left power phase peak angles. Data value indexes defined by power_phase_type.</summary>
  881. /// <param name="index">0 based index of LeftPowerPhasePeak element to retrieve</param>
  882. /// <returns>Returns nullable byte representing the LeftPowerPhasePeak field</returns>
  883. public byte? GetLeftPowerPhasePeak(int index)
  884. {
  885. return (byte?)GetFieldValue(70, index, Fit.SubfieldIndexMainField);
  886. }
  887. /// <summary>
  888. /// Set LeftPowerPhasePeak field
  889. /// Units: degrees
  890. /// Comment: Left power phase peak angles. Data value indexes defined by power_phase_type.</summary>
  891. /// <param name="index">0 based index of left_power_phase_peak</param>
  892. /// <param name="leftPowerPhasePeak_">Nullable field value to be set</param>
  893. public void SetLeftPowerPhasePeak(int index, byte? leftPowerPhasePeak_)
  894. {
  895. SetFieldValue(70, index, leftPowerPhasePeak_, Fit.SubfieldIndexMainField);
  896. }
  897. /// <summary>
  898. ///
  899. /// </summary>
  900. /// <returns>returns number of elements in field RightPowerPhase</returns>
  901. public int GetNumRightPowerPhase()
  902. {
  903. return GetNumFieldValues(71, Fit.SubfieldIndexMainField);
  904. }
  905. ///<summary>
  906. /// Retrieves the RightPowerPhase field
  907. /// Units: degrees
  908. /// Comment: Right power phase angles. Data value indexes defined by power_phase_type.</summary>
  909. /// <param name="index">0 based index of RightPowerPhase element to retrieve</param>
  910. /// <returns>Returns nullable byte representing the RightPowerPhase field</returns>
  911. public byte? GetRightPowerPhase(int index)
  912. {
  913. return (byte?)GetFieldValue(71, index, Fit.SubfieldIndexMainField);
  914. }
  915. /// <summary>
  916. /// Set RightPowerPhase field
  917. /// Units: degrees
  918. /// Comment: Right power phase angles. Data value indexes defined by power_phase_type.</summary>
  919. /// <param name="index">0 based index of right_power_phase</param>
  920. /// <param name="rightPowerPhase_">Nullable field value to be set</param>
  921. public void SetRightPowerPhase(int index, byte? rightPowerPhase_)
  922. {
  923. SetFieldValue(71, index, rightPowerPhase_, Fit.SubfieldIndexMainField);
  924. }
  925. /// <summary>
  926. ///
  927. /// </summary>
  928. /// <returns>returns number of elements in field RightPowerPhasePeak</returns>
  929. public int GetNumRightPowerPhasePeak()
  930. {
  931. return GetNumFieldValues(72, Fit.SubfieldIndexMainField);
  932. }
  933. ///<summary>
  934. /// Retrieves the RightPowerPhasePeak field
  935. /// Units: degrees
  936. /// Comment: Right power phase peak angles. Data value indexes defined by power_phase_type.</summary>
  937. /// <param name="index">0 based index of RightPowerPhasePeak element to retrieve</param>
  938. /// <returns>Returns nullable byte representing the RightPowerPhasePeak field</returns>
  939. public byte? GetRightPowerPhasePeak(int index)
  940. {
  941. return (byte?)GetFieldValue(72, index, Fit.SubfieldIndexMainField);
  942. }
  943. /// <summary>
  944. /// Set RightPowerPhasePeak field
  945. /// Units: degrees
  946. /// Comment: Right power phase peak angles. Data value indexes defined by power_phase_type.</summary>
  947. /// <param name="index">0 based index of right_power_phase_peak</param>
  948. /// <param name="rightPowerPhasePeak_">Nullable field value to be set</param>
  949. public void SetRightPowerPhasePeak(int index, byte? rightPowerPhasePeak_)
  950. {
  951. SetFieldValue(72, index, rightPowerPhasePeak_, Fit.SubfieldIndexMainField);
  952. }
  953. ///<summary>
  954. /// Retrieves the EnhancedSpeed field
  955. /// Units: m/s</summary>
  956. /// <returns>Returns nullable float representing the EnhancedSpeed field</returns>
  957. public float? GetEnhancedSpeed()
  958. {
  959. return (float?)GetFieldValue(73, 0, Fit.SubfieldIndexMainField);
  960. }
  961. /// <summary>
  962. /// Set EnhancedSpeed field
  963. /// Units: m/s</summary>
  964. /// <param name="enhancedSpeed_">Nullable field value to be set</param>
  965. public void SetEnhancedSpeed(float? enhancedSpeed_)
  966. {
  967. SetFieldValue(73, 0, enhancedSpeed_, Fit.SubfieldIndexMainField);
  968. }
  969. ///<summary>
  970. /// Retrieves the EnhancedAltitude field
  971. /// Units: m</summary>
  972. /// <returns>Returns nullable float representing the EnhancedAltitude field</returns>
  973. public float? GetEnhancedAltitude()
  974. {
  975. return (float?)GetFieldValue(78, 0, Fit.SubfieldIndexMainField);
  976. }
  977. /// <summary>
  978. /// Set EnhancedAltitude field
  979. /// Units: m</summary>
  980. /// <param name="enhancedAltitude_">Nullable field value to be set</param>
  981. public void SetEnhancedAltitude(float? enhancedAltitude_)
  982. {
  983. SetFieldValue(78, 0, enhancedAltitude_, Fit.SubfieldIndexMainField);
  984. }
  985. ///<summary>
  986. /// Retrieves the BatterySoc field
  987. /// Units: percent
  988. /// Comment: lev battery state of charge</summary>
  989. /// <returns>Returns nullable float representing the BatterySoc field</returns>
  990. public float? GetBatterySoc()
  991. {
  992. return (float?)GetFieldValue(81, 0, Fit.SubfieldIndexMainField);
  993. }
  994. /// <summary>
  995. /// Set BatterySoc field
  996. /// Units: percent
  997. /// Comment: lev battery state of charge</summary>
  998. /// <param name="batterySoc_">Nullable field value to be set</param>
  999. public void SetBatterySoc(float? batterySoc_)
  1000. {
  1001. SetFieldValue(81, 0, batterySoc_, Fit.SubfieldIndexMainField);
  1002. }
  1003. ///<summary>
  1004. /// Retrieves the MotorPower field
  1005. /// Units: watts
  1006. /// Comment: lev motor power</summary>
  1007. /// <returns>Returns nullable ushort representing the MotorPower field</returns>
  1008. public ushort? GetMotorPower()
  1009. {
  1010. return (ushort?)GetFieldValue(82, 0, Fit.SubfieldIndexMainField);
  1011. }
  1012. /// <summary>
  1013. /// Set MotorPower field
  1014. /// Units: watts
  1015. /// Comment: lev motor power</summary>
  1016. /// <param name="motorPower_">Nullable field value to be set</param>
  1017. public void SetMotorPower(ushort? motorPower_)
  1018. {
  1019. SetFieldValue(82, 0, motorPower_, Fit.SubfieldIndexMainField);
  1020. }
  1021. #endregion // Methods
  1022. } // Class
  1023. } // namespace