BikePowerSensor.h 136 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278
  1. /*
  2. This software is subject to the license described in the License.txt file
  3. included with this software distribution. You may not use this file except in compliance
  4. with this license.
  5. Copyright (c) Dynastream Innovations Inc. 2012
  6. All rights reserved.
  7. */
  8. #pragma once
  9. #include "StdAfx.h"
  10. #include "ISimBase.h"
  11. #include "antplus_bikepower.h"
  12. #include "antplus_common.h"
  13. #include "types.h"
  14. #include "antdefines.h"
  15. using namespace System;
  16. using namespace System::ComponentModel;
  17. using namespace System::Collections;
  18. using namespace System::Windows::Forms;
  19. using namespace System::Data;
  20. using namespace System::Drawing;
  21. public ref class BikePowerSensor : public System::Windows::Forms::Form, public ISimBase{
  22. public:
  23. BikePowerSensor(System::Timers::Timer^ channelTimer, dRequestAckMsg^ channelAckMsg){
  24. requestAckMsg = channelAckMsg;
  25. timerHandle = channelTimer;
  26. commonPages = gcnew CommonData();
  27. bpPages = gcnew BikePower();
  28. InitializeComponent();
  29. InitializeSim();
  30. }
  31. ~BikePowerSensor(){
  32. delete this->panel_Display;
  33. delete this->panel_Settings;
  34. //clean up floating resources with the garbage collector
  35. GC::Collect(2);
  36. //Deletion of designer component
  37. if (components)
  38. {
  39. delete components;
  40. }
  41. }
  42. public:
  43. virtual void onTimerTock(USHORT eventTime);
  44. virtual void ANT_eventNotification(UCHAR ucEventCode_, UCHAR* pucEventBuffer_);
  45. virtual UCHAR getDeviceType(){return BikePower::DEVICE_TYPE;}
  46. virtual UCHAR getTransmissionType(){return BikePower::TX_TYPE;}
  47. virtual USHORT getTransmitPeriod(){return BikePower::MSG_PERIOD;}
  48. virtual DOUBLE getTimerInterval(){return (double) ulTimerInterval;}
  49. virtual System::Windows::Forms::Panel^ getSimSettingsPanel(){return this->panel_Settings;}
  50. virtual System::Windows::Forms::Panel^ getSimTranslatedDisplay(){return this->panel_Display;}
  51. private:
  52. void InitializeSim();
  53. void HandleTransmit(UCHAR* pucTxBuffer_);
  54. void HandleRequest(UCHAR* pucRxBuffer_);
  55. void HandleReceive(UCHAR* pucRxBuffer_);
  56. void HandleCalibration(UCHAR* pucRxBuffer_);
  57. void SendCalibrationResponse(UCHAR ucMsgCode_);
  58. void UpdateDisplay();
  59. void UpdateCalDisplay();
  60. void ForceUpdate();
  61. System::Void radioButton_SensorType_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  62. System::Void numericUpDown_Ppg_BasicPowerInterlvTime_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  63. System::Void radioButton_Ppg_UpdateType_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  64. System::Void numericUpDown_Ppg_TimerEventFreq_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  65. System::Void button_GlobalDataUpdate_Click(System::Object^ sender, System::EventArgs^ e);
  66. System::Void checkBox_Bat_Status_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  67. System::Void radioButton_Bat_ElpUnits_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  68. System::Void button_ElpTimeUpdate_Click(System::Object^ sender, System::EventArgs^ e);
  69. System::Void numericUpDown_Bat_VoltInt_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  70. System::Void numericUpDown_Bat_VoltFrac_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  71. System::Void checkBox_Bat_Voltage_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  72. System::Void checkBox_Bat_FracVolt_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  73. System::Void listBox_Bat_Status_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e);
  74. System::Void checkBox_Sim_Sweeping_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  75. System::Void numericUpDown_Sim_CrankTorque_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  76. System::Void numericUpDown_Sim_WheelTorque_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  77. System::Void numericUpDown_Sim_CrankGearTeeth_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  78. System::Void numericUpDown_Sim_WheelGearTeeth_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  79. System::Void numericUpDown_Ppg_SlopeConstant_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  80. System::Void numericUpDown_Sim_WheelCircumference_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  81. System::Void numericUpDown_Sim_MinMaxOutput_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  82. System::Void numericUpDown_Sim_CurOutput_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  83. System::Void checkBox_Sim_Coast_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  84. System::Void checkBox_Sim_Stop_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  85. System::Void radioButton_SimByChanged(System::Object^ sender, System::EventArgs^ e);
  86. System::Void checkBox_Cal_TorqAZMesg_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  87. System::Void listBox_Cal_AZStatus_SelectedIndexChanged(System::Object^ sender, System::EventArgs^ e);
  88. System::Void numericUpDown_Cal_RawTorque_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  89. System::Void numericUpDown_Cal_OffsetTorque_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  90. System::Void numericUpDown_Cal_CalNumber_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  91. System::Void radioButton_Cal_Success_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  92. System::Void checkBox_Ppg_TxCadence_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  93. System::Void checkBox_Ppg_TxPedalPwr_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  94. System::Void numericUpDown_PedalPwr_CurrOutput_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  95. System::Void checkBox_RightPedal_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  96. System::Void checkBox_InvalidSerial_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  97. System::Void button_UpdateGetSet_Click(System::Object^ sender, System::EventArgs^ e);
  98. System::Void checkBox_InvalidCrankLength_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  99. System::Void checkBox_LeftTorqueEffectivenessInvalid_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  100. System::Void checkBox_RightTorqueEffectivenessInvalid_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  101. System::Void checkBox_LeftPedalSmoothnessInvalid_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  102. System::Void checkBox_RightPedalSmoothnessInvalid_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  103. System::Void checkBox_Combined_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  104. System::Void checkBox_EnableTEPS_CheckedChanged(System::Object^ sender, System::EventArgs^ e);
  105. System::Void numericUpDown_LeftTorqueEffectiveness_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  106. System::Void numericUpDown_RightTorqueEffectiveness_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  107. System::Void numericUpDown_LeftPedalSmoothness_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  108. System::Void numericUpDown_RightPedalSmoothness_ValueChanged(System::Object^ sender, System::EventArgs^ e);
  109. void CalculateWheelTorque();
  110. void CalculateCrankTorque();
  111. ULONG SpeedToCadence(ULONG ulSpeed_);
  112. ULONG CadenceToSpeed(ULONG ulCadence_);
  113. private:
  114. static const USHORT PI256 = 804; // Pi * 256
  115. static const UCHAR MAX_RETRY = 40; // Maximum retransmissions for ack'ed messages
  116. dRequestAckMsg^ requestAckMsg; // Delegate for handling Ack data
  117. CommonData^ commonPages; // Common data pages handle
  118. BikePower^ bpPages; // Bike power data pages handle
  119. System::Timers::Timer^ timerHandle; // Timer handle
  120. ULONG ulTimerInterval; // Timer interval
  121. // Simulation settings
  122. UCHAR ucSimDataType; // Type of simulation (fixed/sweeping)
  123. BOOL bSweepAscending; // Sweep ascending (if enabled)
  124. BOOL bStop; // Bike stopped
  125. BOOL bCoast; // Bike is coasting
  126. BOOL bByCadence; // Base simulation on cadence, in rpm
  127. UCHAR ucCurPedalPwrValue; // Currnet pedal power depending on settings
  128. UCHAR ucNumCrankGearTeeth; // Crank gear-teeth
  129. UCHAR ucNumWheelGearTeeth; // Wheel gear-teeth
  130. UCHAR ucWheelCircumference100; // Wheel circumference (cm)
  131. USHORT usCrankTorque32; // Crank torque (1/32 Nm)
  132. USHORT usWheelTorque32; // Wheel torque (1/32 Nm)
  133. ULONG ulCurValue1000; // Current speed (1/1000 km/h, that is, m/h), or current cadence (1/1000 rpm), depending on settings
  134. ULONG ulMinValue1000; // Min speed or cadence (m/h or rpm)
  135. ULONG ulMaxValue1000; // Max speed or cadence (m/h or rpm)
  136. ULONG ulSpeed1000; // Speed (m/h)
  137. ULONG ulEventTime1000; // Event time (in ms)
  138. USHORT usCalOffset; // Calibration offset to send (CTF sensors)
  139. SHORT sCalData; // Calibration data to send (other sensors)
  140. BOOL bCalSuccess; // Report next calibration as success or failure
  141. BOOL bUpdateTicks;
  142. BOOL bUpdate;
  143. // Paging
  144. BOOL bTxPage82; // Transmit battery global page
  145. BOOL bTxAZ; // Transmit auto zero support message
  146. BOOL bTxCadence; // Include instantaneous crank cadence in transmission
  147. BOOL bTxPedalPower; // Include pedal power in transmission
  148. BOOL bRightPedal; // Include pedal side contribution to pedal power
  149. BOOL bTxPage19; // Transmit torque effectiveness & pedal smoothness page
  150. UCHAR ucPowerInterleave; // Interleaving interval for basic power page
  151. UCHAR ucEventFreq10; // Event frequency (time synchronous) in 1/10Hz
  152. BikePower::UpdateType eUpdateType; // Type of updates (event/time synch)
  153. UCHAR ucAckRetryCount; // Number of retries for an acknowledged message
  154. UCHAR ucMsgExpectingAck; // Message pending for retransmission
  155. UCHAR ucBcastMessage;
  156. UCHAR ucTransmissionCount;
  157. UCHAR ucBcastCount;
  158. // Common Pages
  159. ULONG ulRunTime1000; // Run time (in ms)
  160. private: System::Windows::Forms::Panel^ panel_Settings;
  161. private: System::Windows::Forms::TabControl^ tabControl_Settings;
  162. private: System::Windows::Forms::TabPage^ tabPage_Simulation;
  163. private: System::Windows::Forms::TabPage^ tabPage_GlobalData;
  164. private: System::Windows::Forms::Panel^ panel_Display;
  165. private: System::Windows::Forms::Label^ label_Sim_Max;
  166. private: System::Windows::Forms::Label^ label_Sim_Current;
  167. private: System::Windows::Forms::Label^ label_Sim_Min;
  168. private: System::Windows::Forms::Label^ label_Trn_EventCount;
  169. private: System::Windows::Forms::Label^ label_Trn_InstSpeed;
  170. private: System::Windows::Forms::Label^ label_Trn_InstSpeedDisplay;
  171. private: System::Windows::Forms::Label^ label_Trn_EventCountDisplay;
  172. private: System::Windows::Forms::Label^ label_Glb_HardwareVer;
  173. private: System::Windows::Forms::Label^ label_Glb_SerialNum;
  174. private: System::Windows::Forms::Label^ label_Glb_ManfID;
  175. private: System::Windows::Forms::Label^ label_Glb_SoftwareVer;
  176. private: System::Windows::Forms::Label^ label_Glb_ModelNum;
  177. private: System::Windows::Forms::Button^ button_Glb_GlobalDataUpdate;
  178. private: System::Windows::Forms::TextBox^ textBox_Glb_ModelNumChange;
  179. private: System::Windows::Forms::TextBox^ textBox_Glb_SerialNumChange;
  180. private: System::Windows::Forms::TextBox^ textBox_Glb_ManfIDChange;
  181. private: System::Windows::Forms::TextBox^ textBox_Glb_SoftwareVerChange;
  182. private: System::Windows::Forms::TextBox^ textBox_Glb_HardwareVerChange;
  183. private: System::Windows::Forms::Label^ label_Trn_DisplayTitle;
  184. private: System::Windows::Forms::Label^ label_Glb_GlobalDataError;
  185. private: System::Windows::Forms::RadioButton^ radioButton_Sim_SimByCadence;
  186. private: System::Windows::Forms::CheckBox^ checkBox_Sim_Sweeping;
  187. private: System::Windows::Forms::NumericUpDown^ numericUpDown_Sim_WheelCircumference;
  188. private: System::Windows::Forms::Label^ label_Sim_WheelCircumferenceConst;
  189. private: System::Windows::Forms::Label^ label_Trn_AccumOneDisplay;
  190. private: System::Windows::Forms::Label^ label_Trn_AccumOne;
  191. private: System::Windows::Forms::Label^ label_Trn_CadenceDisplay;
  192. private: System::Windows::Forms::Label^ label_Trn_Cadence;
  193. private: System::Windows::Forms::NumericUpDown^ numericUpDown_Sim_CrankGearTeeth;
  194. private: System::Windows::Forms::Label^ label_Sim_Wheel;
  195. private: System::Windows::Forms::Label^ label_Sim_Crank;
  196. private: System::Windows::Forms::Label^ label_Sim_GearTeeth;
  197. private: System::Windows::Forms::NumericUpDown^ numericUpDown_Sim_WheelGearTeeth;
  198. private: System::Windows::Forms::NumericUpDown^ numericUpDown_Sim_CrankTorque;
  199. private: System::Windows::Forms::NumericUpDown^ numericUpDown_Sim_WheelTorque;
  200. private: System::Windows::Forms::Label^ label_Sim_Torque;
  201. private: System::Windows::Forms::RadioButton^ radioButton_Sim_SimBySpeed;
  202. private: System::Windows::Forms::TabPage^ tabPage_PowerPaging;
  203. private: System::Windows::Forms::TabPage^ tabPage_Calibration;
  204. private: System::Windows::Forms::TabPage^ tabPage_GlobalBattery;
  205. private: System::Windows::Forms::GroupBox^ groupBox_Ppg_RaiseEventsSelect;
  206. private: System::Windows::Forms::RadioButton^ radioButton_Ppg_EventOnTime;
  207. private: System::Windows::Forms::RadioButton^ radioButton_Ppg_EventOnRotation;
  208. private: System::Windows::Forms::NumericUpDown^ numericUpDown_Ppg_BasicPowerInterlvTime;
  209. private: System::Windows::Forms::NumericUpDown^ numericUpDown_Ppg_TimerEventFreq;
  210. private: System::Windows::Forms::CheckBox^ checkBox_Bat_Status;
  211. private: System::Windows::Forms::TextBox^ textBox_Bat_ElpTimeChange;
  212. private: System::Windows::Forms::Button^ button_Bat_ElpTimeUpdate;
  213. private: System::Windows::Forms::Label^ label_Bat_ElpTimeDisplay;
  214. private: System::Windows::Forms::Label^ label_Bat_ElpTime;
  215. private: System::Windows::Forms::RadioButton^ radioButton_Bat_Elp16Units;
  216. private: System::Windows::Forms::RadioButton^ radioButton_Bat_Elp2Units;
  217. private: System::Windows::Forms::Label^ label_Bat_Status;
  218. private: System::Windows::Forms::ListBox^ listBox_Bat_Status;
  219. private: System::Windows::Forms::NumericUpDown^ numericUpDown_Bat_VoltFrac;
  220. private: System::Windows::Forms::NumericUpDown^ numericUpDown_Bat_VoltInt;
  221. private: System::Windows::Forms::Label^ label_Bat_Volts;
  222. private: System::Windows::Forms::CheckBox^ checkBox_Bat_FracVolt;
  223. private: System::Windows::Forms::CheckBox^ checkBox_Bat_Voltage;
  224. private: System::Windows::Forms::Label^ label_Cal_CalSuccess;
  225. private: System::Windows::Forms::RadioButton^ radioButton_Cal_Failure;
  226. private: System::Windows::Forms::RadioButton^ radioButton_Cal_Success;
  227. private: System::Windows::Forms::Label^ label_Cal_CalNum;
  228. private: System::Windows::Forms::NumericUpDown^ numericUpDown_Cal_CalNumber;
  229. private: System::Windows::Forms::Label^ label_Cal_AZStatus;
  230. private: System::Windows::Forms::ListBox^ listBox_Cal_AZStatus;
  231. private: System::Windows::Forms::CheckBox^ checkBox_Cal_TorqAZMesg;
  232. private: System::Windows::Forms::Label^ label_Cal_TorqOffset;
  233. private: System::Windows::Forms::Label^ label_Cal_RawTorq;
  234. private: System::Windows::Forms::NumericUpDown^ numericUpDown_Cal_OffsetTorque;
  235. private: System::Windows::Forms::NumericUpDown^ numericUpDown_Cal_RawTorque;
  236. private: System::Windows::Forms::Label^ label_Trn_PowerDisplay;
  237. private: System::Windows::Forms::Label^ label_Trn_Power;
  238. private: System::Windows::Forms::Label^ label_Trn_UpdateCountDisplay;
  239. private: System::Windows::Forms::Label^ label_Trn_UpdateCount;
  240. private: System::Windows::Forms::Label^ label_Ppg_SlopeConstant;
  241. private: System::Windows::Forms::NumericUpDown^ numericUpDown_Ppg_SlopeConstant;
  242. private: System::Windows::Forms::Label^ label_Trn_AccumTitle;
  243. private: System::Windows::Forms::Label^ label_Trn_AccumTwo;
  244. private: System::Windows::Forms::Label^ label_Trn_AccumTwoDisplay;
  245. private: System::Windows::Forms::NumericUpDown^ numericUpDown_Sim_MinOutput;
  246. private: System::Windows::Forms::NumericUpDown^ numericUpDown_Sim_MaxOutput;
  247. private: System::Windows::Forms::NumericUpDown^ numericUpDown_Sim_CurOutput;
  248. private: System::Windows::Forms::CheckBox^ checkBox_Sim_Stop;
  249. private: System::Windows::Forms::CheckBox^ checkBox_Sim_Coast;
  250. private: System::Windows::Forms::GroupBox^ groupBox_Ppg_SendPageSelect;
  251. private: System::Windows::Forms::RadioButton^ radioButton_WheelTorque;
  252. private: System::Windows::Forms::RadioButton^ radioButton_CTF;
  253. private: System::Windows::Forms::RadioButton^ radioButton_Power;
  254. private: System::Windows::Forms::RadioButton^ radioButton_CrankTorque;
  255. private: System::Windows::Forms::Label^ label1;
  256. private: System::Windows::Forms::Label^ label_Volt_Coarse;
  257. private: System::Windows::Forms::Label^ label_Voltage_Display;
  258. private: System::Windows::Forms::Label^ label_Volts;
  259. private: System::Windows::Forms::GroupBox^ groupBox_Resol;
  260. private: System::Windows::Forms::CheckBox^ checkBox_Ppg_TxCadence;
  261. private: System::Windows::Forms::CheckBox^ checkBox_Ppg_TxPedalPwr;
  262. private: System::Windows::Forms::Label^ label_Trn_PedalPwr;
  263. private: System::Windows::Forms::Label^ label_Trn_PedalPwrDisplay;
  264. private: System::Windows::Forms::Label^ label_PedalPwr;
  265. private: System::Windows::Forms::NumericUpDown^ numericUpDown_PedalPwr_CurrOutput;
  266. private: System::Windows::Forms::CheckBox^ checkBox_RightPedal;
  267. private: System::Windows::Forms::Label^ label_Trn_PedalDisplay;
  268. private: System::Windows::Forms::CheckBox^ checkBox_InvalidSerial;
  269. private: System::Windows::Forms::TabPage^ tabPage_GetSet;
  270. private: System::Windows::Forms::GroupBox^ groupBox3;
  271. private: System::Windows::Forms::RadioButton^ radioButton_CrankAuto;
  272. private: System::Windows::Forms::RadioButton^ radioButton_CrankManual;
  273. private: System::Windows::Forms::RadioButton^ radioButton_CrankDefault;
  274. private: System::Windows::Forms::RadioButton^ radioButton_CrankInvalid;
  275. private: System::Windows::Forms::GroupBox^ groupBox2;
  276. private: System::Windows::Forms::RadioButton^ radioButton_MismatchNone;
  277. private: System::Windows::Forms::RadioButton^ radioButton_MismatchLeft;
  278. private: System::Windows::Forms::RadioButton^ radioButton_MismatchRight;
  279. private: System::Windows::Forms::RadioButton^ radioButton_MismatchUndefined;
  280. private: System::Windows::Forms::GroupBox^ groupBox1;
  281. private: System::Windows::Forms::RadioButton^ radioButton_SensorBoth;
  282. private: System::Windows::Forms::RadioButton^ radioButton_SensorRight;
  283. private: System::Windows::Forms::RadioButton^ radioButton_SensorLeft;
  284. private: System::Windows::Forms::RadioButton^ radioButton_SensorUndefined;
  285. private: System::Windows::Forms::CheckBox^ checkBox_AutoCrank;
  286. private: System::Windows::Forms::NumericUpDown^ numericUpDown_CrankLength;
  287. private: System::Windows::Forms::CheckBox^ checkBox_InvalidCrankLength;
  288. private: System::Windows::Forms::Label^ label2;
  289. private: System::Windows::Forms::Button^ button_UpdateGetSet;
  290. private: System::Windows::Forms::TabPage^ tabControl_TEPS;
  291. private: System::Windows::Forms::CheckBox^ checkBox_EnableTEPS;
  292. private: System::Windows::Forms::CheckBox^ checkBox_Combined;
  293. private: System::Windows::Forms::GroupBox^ groupBox4;
  294. private: System::Windows::Forms::CheckBox^ checkBox_LeftTorqueEffectivenessInvalid;
  295. private: System::Windows::Forms::NumericUpDown^ numericUpDown_LeftTorqueEffectiveness;
  296. private: System::Windows::Forms::Label^ label3;
  297. private: System::Windows::Forms::CheckBox^ checkBox_RightTorqueEffectivenessInvalid;
  298. private: System::Windows::Forms::NumericUpDown^ numericUpDown_RightTorqueEffectiveness;
  299. private: System::Windows::Forms::Label^ label4;
  300. private: System::Windows::Forms::GroupBox^ groupBox5;
  301. private: System::Windows::Forms::CheckBox^ checkBox_RightPedalSmoothnessInvalid;
  302. private: System::Windows::Forms::NumericUpDown^ numericUpDown_RightPedalSmoothness;
  303. private: System::Windows::Forms::Label^ label5;
  304. private: System::Windows::Forms::CheckBox^ checkBox_LeftPedalSmoothnessInvalid;
  305. private: System::Windows::Forms::NumericUpDown^ numericUpDown_LeftPedalSmoothness;
  306. private: System::Windows::Forms::Label^ label6;
  307. private:
  308. /// <summary>
  309. /// Required designer variable.
  310. /// </summary>
  311. System::ComponentModel::Container ^components;
  312. #pragma region Windows Form Designer generated code
  313. /// <summary>
  314. /// Required method for Designer support - do not modify
  315. /// the contents of this method with the code editor.
  316. /// </summary>
  317. void InitializeComponent(void)
  318. {
  319. this->panel_Settings = (gcnew System::Windows::Forms::Panel());
  320. this->tabControl_Settings = (gcnew System::Windows::Forms::TabControl());
  321. this->tabPage_Simulation = (gcnew System::Windows::Forms::TabPage());
  322. this->checkBox_RightPedal = (gcnew System::Windows::Forms::CheckBox());
  323. this->numericUpDown_PedalPwr_CurrOutput = (gcnew System::Windows::Forms::NumericUpDown());
  324. this->label_PedalPwr = (gcnew System::Windows::Forms::Label());
  325. this->checkBox_Sim_Coast = (gcnew System::Windows::Forms::CheckBox());
  326. this->label_Sim_GearTeeth = (gcnew System::Windows::Forms::Label());
  327. this->label_Sim_Torque = (gcnew System::Windows::Forms::Label());
  328. this->checkBox_Sim_Stop = (gcnew System::Windows::Forms::CheckBox());
  329. this->label_Sim_WheelCircumferenceConst = (gcnew System::Windows::Forms::Label());
  330. this->checkBox_Sim_Sweeping = (gcnew System::Windows::Forms::CheckBox());
  331. this->numericUpDown_Sim_WheelCircumference = (gcnew System::Windows::Forms::NumericUpDown());
  332. this->numericUpDown_Sim_MaxOutput = (gcnew System::Windows::Forms::NumericUpDown());
  333. this->radioButton_Sim_SimBySpeed = (gcnew System::Windows::Forms::RadioButton());
  334. this->radioButton_Sim_SimByCadence = (gcnew System::Windows::Forms::RadioButton());
  335. this->numericUpDown_Sim_CurOutput = (gcnew System::Windows::Forms::NumericUpDown());
  336. this->label_Sim_Crank = (gcnew System::Windows::Forms::Label());
  337. this->numericUpDown_Sim_MinOutput = (gcnew System::Windows::Forms::NumericUpDown());
  338. this->label_Sim_Max = (gcnew System::Windows::Forms::Label());
  339. this->numericUpDown_Sim_WheelGearTeeth = (gcnew System::Windows::Forms::NumericUpDown());
  340. this->label_Sim_Current = (gcnew System::Windows::Forms::Label());
  341. this->label_Sim_Min = (gcnew System::Windows::Forms::Label());
  342. this->numericUpDown_Sim_CrankTorque = (gcnew System::Windows::Forms::NumericUpDown());
  343. this->label_Sim_Wheel = (gcnew System::Windows::Forms::Label());
  344. this->numericUpDown_Sim_CrankGearTeeth = (gcnew System::Windows::Forms::NumericUpDown());
  345. this->numericUpDown_Sim_WheelTorque = (gcnew System::Windows::Forms::NumericUpDown());
  346. this->tabPage_PowerPaging = (gcnew System::Windows::Forms::TabPage());
  347. this->checkBox_Ppg_TxPedalPwr = (gcnew System::Windows::Forms::CheckBox());
  348. this->checkBox_Ppg_TxCadence = (gcnew System::Windows::Forms::CheckBox());
  349. this->numericUpDown_Ppg_SlopeConstant = (gcnew System::Windows::Forms::NumericUpDown());
  350. this->groupBox_Ppg_SendPageSelect = (gcnew System::Windows::Forms::GroupBox());
  351. this->radioButton_WheelTorque = (gcnew System::Windows::Forms::RadioButton());
  352. this->radioButton_CTF = (gcnew System::Windows::Forms::RadioButton());
  353. this->radioButton_Power = (gcnew System::Windows::Forms::RadioButton());
  354. this->radioButton_CrankTorque = (gcnew System::Windows::Forms::RadioButton());
  355. this->label1 = (gcnew System::Windows::Forms::Label());
  356. this->numericUpDown_Ppg_BasicPowerInterlvTime = (gcnew System::Windows::Forms::NumericUpDown());
  357. this->label_Ppg_SlopeConstant = (gcnew System::Windows::Forms::Label());
  358. this->groupBox_Ppg_RaiseEventsSelect = (gcnew System::Windows::Forms::GroupBox());
  359. this->numericUpDown_Ppg_TimerEventFreq = (gcnew System::Windows::Forms::NumericUpDown());
  360. this->radioButton_Ppg_EventOnTime = (gcnew System::Windows::Forms::RadioButton());
  361. this->radioButton_Ppg_EventOnRotation = (gcnew System::Windows::Forms::RadioButton());
  362. this->tabPage_Calibration = (gcnew System::Windows::Forms::TabPage());
  363. this->checkBox_Cal_TorqAZMesg = (gcnew System::Windows::Forms::CheckBox());
  364. this->label_Cal_TorqOffset = (gcnew System::Windows::Forms::Label());
  365. this->label_Cal_RawTorq = (gcnew System::Windows::Forms::Label());
  366. this->label_Cal_AZStatus = (gcnew System::Windows::Forms::Label());
  367. this->numericUpDown_Cal_RawTorque = (gcnew System::Windows::Forms::NumericUpDown());
  368. this->listBox_Cal_AZStatus = (gcnew System::Windows::Forms::ListBox());
  369. this->label_Cal_CalNum = (gcnew System::Windows::Forms::Label());
  370. this->numericUpDown_Cal_OffsetTorque = (gcnew System::Windows::Forms::NumericUpDown());
  371. this->numericUpDown_Cal_CalNumber = (gcnew System::Windows::Forms::NumericUpDown());
  372. this->label_Cal_CalSuccess = (gcnew System::Windows::Forms::Label());
  373. this->radioButton_Cal_Failure = (gcnew System::Windows::Forms::RadioButton());
  374. this->radioButton_Cal_Success = (gcnew System::Windows::Forms::RadioButton());
  375. this->tabPage_GlobalData = (gcnew System::Windows::Forms::TabPage());
  376. this->checkBox_InvalidSerial = (gcnew System::Windows::Forms::CheckBox());
  377. this->button_Glb_GlobalDataUpdate = (gcnew System::Windows::Forms::Button());
  378. this->label_Glb_GlobalDataError = (gcnew System::Windows::Forms::Label());
  379. this->textBox_Glb_HardwareVerChange = (gcnew System::Windows::Forms::TextBox());
  380. this->textBox_Glb_ModelNumChange = (gcnew System::Windows::Forms::TextBox());
  381. this->label_Glb_HardwareVer = (gcnew System::Windows::Forms::Label());
  382. this->label_Glb_ManfID = (gcnew System::Windows::Forms::Label());
  383. this->textBox_Glb_ManfIDChange = (gcnew System::Windows::Forms::TextBox());
  384. this->label_Glb_SoftwareVer = (gcnew System::Windows::Forms::Label());
  385. this->label_Glb_ModelNum = (gcnew System::Windows::Forms::Label());
  386. this->textBox_Glb_SerialNumChange = (gcnew System::Windows::Forms::TextBox());
  387. this->textBox_Glb_SoftwareVerChange = (gcnew System::Windows::Forms::TextBox());
  388. this->label_Glb_SerialNum = (gcnew System::Windows::Forms::Label());
  389. this->tabPage_GlobalBattery = (gcnew System::Windows::Forms::TabPage());
  390. this->groupBox_Resol = (gcnew System::Windows::Forms::GroupBox());
  391. this->radioButton_Bat_Elp2Units = (gcnew System::Windows::Forms::RadioButton());
  392. this->radioButton_Bat_Elp16Units = (gcnew System::Windows::Forms::RadioButton());
  393. this->label_Volt_Coarse = (gcnew System::Windows::Forms::Label());
  394. this->button_Bat_ElpTimeUpdate = (gcnew System::Windows::Forms::Button());
  395. this->label_Voltage_Display = (gcnew System::Windows::Forms::Label());
  396. this->textBox_Bat_ElpTimeChange = (gcnew System::Windows::Forms::TextBox());
  397. this->checkBox_Bat_FracVolt = (gcnew System::Windows::Forms::CheckBox());
  398. this->label_Bat_ElpTimeDisplay = (gcnew System::Windows::Forms::Label());
  399. this->label_Bat_Volts = (gcnew System::Windows::Forms::Label());
  400. this->label_Bat_ElpTime = (gcnew System::Windows::Forms::Label());
  401. this->label_Volts = (gcnew System::Windows::Forms::Label());
  402. this->checkBox_Bat_Voltage = (gcnew System::Windows::Forms::CheckBox());
  403. this->numericUpDown_Bat_VoltFrac = (gcnew System::Windows::Forms::NumericUpDown());
  404. this->numericUpDown_Bat_VoltInt = (gcnew System::Windows::Forms::NumericUpDown());
  405. this->label_Bat_Status = (gcnew System::Windows::Forms::Label());
  406. this->listBox_Bat_Status = (gcnew System::Windows::Forms::ListBox());
  407. this->checkBox_Bat_Status = (gcnew System::Windows::Forms::CheckBox());
  408. this->tabPage_GetSet = (gcnew System::Windows::Forms::TabPage());
  409. this->button_UpdateGetSet = (gcnew System::Windows::Forms::Button());
  410. this->checkBox_InvalidCrankLength = (gcnew System::Windows::Forms::CheckBox());
  411. this->label2 = (gcnew System::Windows::Forms::Label());
  412. this->numericUpDown_CrankLength = (gcnew System::Windows::Forms::NumericUpDown());
  413. this->groupBox3 = (gcnew System::Windows::Forms::GroupBox());
  414. this->radioButton_CrankAuto = (gcnew System::Windows::Forms::RadioButton());
  415. this->radioButton_CrankDefault = (gcnew System::Windows::Forms::RadioButton());
  416. this->radioButton_CrankInvalid = (gcnew System::Windows::Forms::RadioButton());
  417. this->radioButton_CrankManual = (gcnew System::Windows::Forms::RadioButton());
  418. this->groupBox2 = (gcnew System::Windows::Forms::GroupBox());
  419. this->radioButton_MismatchLeft = (gcnew System::Windows::Forms::RadioButton());
  420. this->radioButton_MismatchRight = (gcnew System::Windows::Forms::RadioButton());
  421. this->radioButton_MismatchUndefined = (gcnew System::Windows::Forms::RadioButton());
  422. this->radioButton_MismatchNone = (gcnew System::Windows::Forms::RadioButton());
  423. this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
  424. this->radioButton_SensorBoth = (gcnew System::Windows::Forms::RadioButton());
  425. this->radioButton_SensorLeft = (gcnew System::Windows::Forms::RadioButton());
  426. this->radioButton_SensorUndefined = (gcnew System::Windows::Forms::RadioButton());
  427. this->radioButton_SensorRight = (gcnew System::Windows::Forms::RadioButton());
  428. this->checkBox_AutoCrank = (gcnew System::Windows::Forms::CheckBox());
  429. this->tabControl_TEPS = (gcnew System::Windows::Forms::TabPage());
  430. this->groupBox5 = (gcnew System::Windows::Forms::GroupBox());
  431. this->checkBox_RightPedalSmoothnessInvalid = (gcnew System::Windows::Forms::CheckBox());
  432. this->numericUpDown_RightPedalSmoothness = (gcnew System::Windows::Forms::NumericUpDown());
  433. this->label5 = (gcnew System::Windows::Forms::Label());
  434. this->checkBox_LeftPedalSmoothnessInvalid = (gcnew System::Windows::Forms::CheckBox());
  435. this->numericUpDown_LeftPedalSmoothness = (gcnew System::Windows::Forms::NumericUpDown());
  436. this->label6 = (gcnew System::Windows::Forms::Label());
  437. this->groupBox4 = (gcnew System::Windows::Forms::GroupBox());
  438. this->checkBox_RightTorqueEffectivenessInvalid = (gcnew System::Windows::Forms::CheckBox());
  439. this->numericUpDown_RightTorqueEffectiveness = (gcnew System::Windows::Forms::NumericUpDown());
  440. this->label4 = (gcnew System::Windows::Forms::Label());
  441. this->checkBox_LeftTorqueEffectivenessInvalid = (gcnew System::Windows::Forms::CheckBox());
  442. this->numericUpDown_LeftTorqueEffectiveness = (gcnew System::Windows::Forms::NumericUpDown());
  443. this->label3 = (gcnew System::Windows::Forms::Label());
  444. this->checkBox_Combined = (gcnew System::Windows::Forms::CheckBox());
  445. this->checkBox_EnableTEPS = (gcnew System::Windows::Forms::CheckBox());
  446. this->panel_Display = (gcnew System::Windows::Forms::Panel());
  447. this->label_Trn_PedalDisplay = (gcnew System::Windows::Forms::Label());
  448. this->label_Trn_PedalPwrDisplay = (gcnew System::Windows::Forms::Label());
  449. this->label_Trn_PedalPwr = (gcnew System::Windows::Forms::Label());
  450. this->label_Trn_UpdateCountDisplay = (gcnew System::Windows::Forms::Label());
  451. this->label_Trn_UpdateCount = (gcnew System::Windows::Forms::Label());
  452. this->label_Trn_EventCount = (gcnew System::Windows::Forms::Label());
  453. this->label_Trn_AccumOneDisplay = (gcnew System::Windows::Forms::Label());
  454. this->label_Trn_AccumTwo = (gcnew System::Windows::Forms::Label());
  455. this->label_Trn_PowerDisplay = (gcnew System::Windows::Forms::Label());
  456. this->label_Trn_Power = (gcnew System::Windows::Forms::Label());
  457. this->label_Trn_AccumTwoDisplay = (gcnew System::Windows::Forms::Label());
  458. this->label_Trn_CadenceDisplay = (gcnew System::Windows::Forms::Label());
  459. this->label_Trn_Cadence = (gcnew System::Windows::Forms::Label());
  460. this->label_Trn_InstSpeedDisplay = (gcnew System::Windows::Forms::Label());
  461. this->label_Trn_EventCountDisplay = (gcnew System::Windows::Forms::Label());
  462. this->label_Trn_InstSpeed = (gcnew System::Windows::Forms::Label());
  463. this->label_Trn_DisplayTitle = (gcnew System::Windows::Forms::Label());
  464. this->label_Trn_AccumOne = (gcnew System::Windows::Forms::Label());
  465. this->label_Trn_AccumTitle = (gcnew System::Windows::Forms::Label());
  466. this->panel_Settings->SuspendLayout();
  467. this->tabControl_Settings->SuspendLayout();
  468. this->tabPage_Simulation->SuspendLayout();
  469. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_PedalPwr_CurrOutput))->BeginInit();
  470. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Sim_WheelCircumference))->BeginInit();
  471. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Sim_MaxOutput))->BeginInit();
  472. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Sim_CurOutput))->BeginInit();
  473. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Sim_MinOutput))->BeginInit();
  474. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Sim_WheelGearTeeth))->BeginInit();
  475. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Sim_CrankTorque))->BeginInit();
  476. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Sim_CrankGearTeeth))->BeginInit();
  477. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Sim_WheelTorque))->BeginInit();
  478. this->tabPage_PowerPaging->SuspendLayout();
  479. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Ppg_SlopeConstant))->BeginInit();
  480. this->groupBox_Ppg_SendPageSelect->SuspendLayout();
  481. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Ppg_BasicPowerInterlvTime))->BeginInit();
  482. this->groupBox_Ppg_RaiseEventsSelect->SuspendLayout();
  483. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Ppg_TimerEventFreq))->BeginInit();
  484. this->tabPage_Calibration->SuspendLayout();
  485. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Cal_RawTorque))->BeginInit();
  486. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Cal_OffsetTorque))->BeginInit();
  487. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Cal_CalNumber))->BeginInit();
  488. this->tabPage_GlobalData->SuspendLayout();
  489. this->tabPage_GlobalBattery->SuspendLayout();
  490. this->groupBox_Resol->SuspendLayout();
  491. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Bat_VoltFrac))->BeginInit();
  492. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Bat_VoltInt))->BeginInit();
  493. this->tabPage_GetSet->SuspendLayout();
  494. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_CrankLength))->BeginInit();
  495. this->groupBox3->SuspendLayout();
  496. this->groupBox2->SuspendLayout();
  497. this->groupBox1->SuspendLayout();
  498. this->tabControl_TEPS->SuspendLayout();
  499. this->groupBox5->SuspendLayout();
  500. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_RightPedalSmoothness))->BeginInit();
  501. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_LeftPedalSmoothness))->BeginInit();
  502. this->groupBox4->SuspendLayout();
  503. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_RightTorqueEffectiveness))->BeginInit();
  504. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_LeftTorqueEffectiveness))->BeginInit();
  505. this->panel_Display->SuspendLayout();
  506. this->SuspendLayout();
  507. //
  508. // panel_Settings
  509. //
  510. this->panel_Settings->Controls->Add(this->tabControl_Settings);
  511. this->panel_Settings->Location = System::Drawing::Point(322, 50);
  512. this->panel_Settings->Name = L"panel_Settings";
  513. this->panel_Settings->Size = System::Drawing::Size(400, 140);
  514. this->panel_Settings->TabIndex = 0;
  515. //
  516. // tabControl_Settings
  517. //
  518. this->tabControl_Settings->Controls->Add(this->tabPage_Simulation);
  519. this->tabControl_Settings->Controls->Add(this->tabPage_PowerPaging);
  520. this->tabControl_Settings->Controls->Add(this->tabPage_Calibration);
  521. this->tabControl_Settings->Controls->Add(this->tabPage_GlobalData);
  522. this->tabControl_Settings->Controls->Add(this->tabPage_GlobalBattery);
  523. this->tabControl_Settings->Controls->Add(this->tabPage_GetSet);
  524. this->tabControl_Settings->Controls->Add(this->tabControl_TEPS);
  525. this->tabControl_Settings->Location = System::Drawing::Point(0, 3);
  526. this->tabControl_Settings->Name = L"tabControl_Settings";
  527. this->tabControl_Settings->SelectedIndex = 0;
  528. this->tabControl_Settings->Size = System::Drawing::Size(397, 137);
  529. this->tabControl_Settings->TabIndex = 10;
  530. //
  531. // tabPage_Simulation
  532. //
  533. this->tabPage_Simulation->Controls->Add(this->checkBox_RightPedal);
  534. this->tabPage_Simulation->Controls->Add(this->numericUpDown_PedalPwr_CurrOutput);
  535. this->tabPage_Simulation->Controls->Add(this->label_PedalPwr);
  536. this->tabPage_Simulation->Controls->Add(this->checkBox_Sim_Coast);
  537. this->tabPage_Simulation->Controls->Add(this->label_Sim_GearTeeth);
  538. this->tabPage_Simulation->Controls->Add(this->label_Sim_Torque);
  539. this->tabPage_Simulation->Controls->Add(this->checkBox_Sim_Stop);
  540. this->tabPage_Simulation->Controls->Add(this->label_Sim_WheelCircumferenceConst);
  541. this->tabPage_Simulation->Controls->Add(this->checkBox_Sim_Sweeping);
  542. this->tabPage_Simulation->Controls->Add(this->numericUpDown_Sim_WheelCircumference);
  543. this->tabPage_Simulation->Controls->Add(this->numericUpDown_Sim_MaxOutput);
  544. this->tabPage_Simulation->Controls->Add(this->radioButton_Sim_SimBySpeed);
  545. this->tabPage_Simulation->Controls->Add(this->radioButton_Sim_SimByCadence);
  546. this->tabPage_Simulation->Controls->Add(this->numericUpDown_Sim_CurOutput);
  547. this->tabPage_Simulation->Controls->Add(this->label_Sim_Crank);
  548. this->tabPage_Simulation->Controls->Add(this->numericUpDown_Sim_MinOutput);
  549. this->tabPage_Simulation->Controls->Add(this->label_Sim_Max);
  550. this->tabPage_Simulation->Controls->Add(this->numericUpDown_Sim_WheelGearTeeth);
  551. this->tabPage_Simulation->Controls->Add(this->label_Sim_Current);
  552. this->tabPage_Simulation->Controls->Add(this->label_Sim_Min);
  553. this->tabPage_Simulation->Controls->Add(this->numericUpDown_Sim_CrankTorque);
  554. this->tabPage_Simulation->Controls->Add(this->label_Sim_Wheel);
  555. this->tabPage_Simulation->Controls->Add(this->numericUpDown_Sim_CrankGearTeeth);
  556. this->tabPage_Simulation->Controls->Add(this->numericUpDown_Sim_WheelTorque);
  557. this->tabPage_Simulation->Location = System::Drawing::Point(4, 22);
  558. this->tabPage_Simulation->Name = L"tabPage_Simulation";
  559. this->tabPage_Simulation->Padding = System::Windows::Forms::Padding(3);
  560. this->tabPage_Simulation->Size = System::Drawing::Size(389, 111);
  561. this->tabPage_Simulation->TabIndex = 0;
  562. this->tabPage_Simulation->Text = L"Simulation";
  563. this->tabPage_Simulation->UseVisualStyleBackColor = true;
  564. //
  565. // checkBox_RightPedal
  566. //
  567. this->checkBox_RightPedal->AutoSize = true;
  568. this->checkBox_RightPedal->Location = System::Drawing::Point(202, 54);
  569. this->checkBox_RightPedal->Name = L"checkBox_RightPedal";
  570. this->checkBox_RightPedal->Size = System::Drawing::Size(81, 17);
  571. this->checkBox_RightPedal->TabIndex = 34;
  572. this->checkBox_RightPedal->Text = L"Right Pedal";
  573. this->checkBox_RightPedal->UseVisualStyleBackColor = true;
  574. this->checkBox_RightPedal->CheckedChanged += gcnew System::EventHandler(this, &BikePowerSensor::checkBox_RightPedal_CheckedChanged);
  575. //
  576. // numericUpDown_PedalPwr_CurrOutput
  577. //
  578. this->numericUpDown_PedalPwr_CurrOutput->Location = System::Drawing::Point(202, 25);
  579. this->numericUpDown_PedalPwr_CurrOutput->Name = L"numericUpDown_PedalPwr_CurrOutput";
  580. this->numericUpDown_PedalPwr_CurrOutput->Size = System::Drawing::Size(50, 20);
  581. this->numericUpDown_PedalPwr_CurrOutput->TabIndex = 31;
  582. this->numericUpDown_PedalPwr_CurrOutput->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {50, 0, 0, 0});
  583. this->numericUpDown_PedalPwr_CurrOutput->ValueChanged += gcnew System::EventHandler(this, &BikePowerSensor::numericUpDown_PedalPwr_CurrOutput_ValueChanged);
  584. //
  585. // label_PedalPwr
  586. //
  587. this->label_PedalPwr->AutoSize = true;
  588. this->label_PedalPwr->Location = System::Drawing::Point(198, 9);
  589. this->label_PedalPwr->Name = L"label_PedalPwr";
  590. this->label_PedalPwr->Size = System::Drawing::Size(81, 13);
  591. this->label_PedalPwr->TabIndex = 29;
  592. this->label_PedalPwr->Text = L"Pedal Power(%)";
  593. //
  594. // checkBox_Sim_Coast
  595. //
  596. this->checkBox_Sim_Coast->AutoSize = true;
  597. this->checkBox_Sim_Coast->Location = System::Drawing::Point(74, 71);
  598. this->checkBox_Sim_Coast->Name = L"checkBox_Sim_Coast";
  599. this->checkBox_Sim_Coast->Size = System::Drawing::Size(53, 17);
  600. this->checkBox_Sim_Coast->TabIndex = 20;
  601. this->checkBox_Sim_Coast->Text = L"Coast";
  602. this->checkBox_Sim_Coast->UseVisualStyleBackColor = true;
  603. this->checkBox_Sim_Coast->CheckedChanged += gcnew System::EventHandler(this, &BikePowerSensor::checkBox_Sim_Coast_CheckedChanged);
  604. //
  605. // label_Sim_GearTeeth
  606. //
  607. this->label_Sim_GearTeeth->AutoSize = true;
  608. this->label_Sim_GearTeeth->Location = System::Drawing::Point(293, 32);
  609. this->label_Sim_GearTeeth->Name = L"label_Sim_GearTeeth";
  610. this->label_Sim_GearTeeth->Size = System::Drawing::Size(84, 13);
  611. this->label_Sim_GearTeeth->TabIndex = 20;
  612. this->label_Sim_GearTeeth->Text = L"# Gear #Teeth";
  613. //
  614. // label_Sim_Torque
  615. //
  616. this->label_Sim_Torque->AutoSize = true;
  617. this->label_Sim_Torque->Location = System::Drawing::Point(301, 70);
  618. this->label_Sim_Torque->Name = L"label_Sim_Torque";
  619. this->label_Sim_Torque->Size = System::Drawing::Size(66, 13);
  620. this->label_Sim_Torque->TabIndex = 26;
  621. this->label_Sim_Torque->Text = L"Torque (Nm)";
  622. //
  623. // checkBox_Sim_Stop
  624. //
  625. this->checkBox_Sim_Stop->AutoSize = true;
  626. this->checkBox_Sim_Stop->Location = System::Drawing::Point(6, 71);
  627. this->checkBox_Sim_Stop->Name = L"checkBox_Sim_Stop";
  628. this->checkBox_Sim_Stop->Size = System::Drawing::Size(48, 17);
  629. this->checkBox_Sim_Stop->TabIndex = 19;
  630. this->checkBox_Sim_Stop->Text = L"Stop";
  631. this->checkBox_Sim_Stop->UseVisualStyleBackColor = true;
  632. this->checkBox_Sim_Stop->CheckedChanged += gcnew System::EventHandler(this, &BikePowerSensor::checkBox_Sim_Stop_CheckedChanged);
  633. //
  634. // label_Sim_WheelCircumferenceConst
  635. //
  636. this->label_Sim_WheelCircumferenceConst->AutoSize = true;
  637. this->label_Sim_WheelCircumferenceConst->Location = System::Drawing::Point(100, 88);
  638. this->label_Sim_WheelCircumferenceConst->Name = L"label_Sim_WheelCircumferenceConst";
  639. this->label_Sim_WheelCircumferenceConst->Size = System::Drawing::Size(132, 13);
  640. this->label_Sim_WheelCircumferenceConst->TabIndex = 18;
  641. this->label_Sim_WheelCircumferenceConst->Text = L"Wheel Circumference (cm)";
  642. this->label_Sim_WheelCircumferenceConst->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
  643. //
  644. // checkBox_Sim_Sweeping
  645. //
  646. this->checkBox_Sim_Sweeping->AutoSize = true;
  647. this->checkBox_Sim_Sweeping->Location = System::Drawing::Point(6, 88);
  648. this->checkBox_Sim_Sweeping->Name = L"checkBox_Sim_Sweeping";
  649. this->checkBox_Sim_Sweeping->Size = System::Drawing::Size(73, 17);
  650. this->checkBox_Sim_Sweeping->TabIndex = 17;
  651. this->checkBox_Sim_Sweeping->Text = L"Sweeping";
  652. this->checkBox_Sim_Sweeping->UseVisualStyleBackColor = true;
  653. this->checkBox_Sim_Sweeping->CheckedChanged += gcnew System::EventHandler(this, &BikePowerSensor::checkBox_Sim_Sweeping_CheckedChanged);
  654. //
  655. // numericUpDown_Sim_WheelCircumference
  656. //
  657. this->numericUpDown_Sim_WheelCircumference->Increment = System::Decimal(gcnew cli::array< System::Int32 >(4) {5, 0, 0, 0});
  658. this->numericUpDown_Sim_WheelCircumference->Location = System::Drawing::Point(238, 86);
  659. this->numericUpDown_Sim_WheelCircumference->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {255, 0, 0, 0});
  660. this->numericUpDown_Sim_WheelCircumference->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
  661. this->numericUpDown_Sim_WheelCircumference->Name = L"numericUpDown_Sim_WheelCircumference";
  662. this->numericUpDown_Sim_WheelCircumference->Size = System::Drawing::Size(47, 20);
  663. this->numericUpDown_Sim_WheelCircumference->TabIndex = 13;
  664. this->numericUpDown_Sim_WheelCircumference->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {207, 0, 0, 0});
  665. this->numericUpDown_Sim_WheelCircumference->ValueChanged += gcnew System::EventHandler(this, &BikePowerSensor::numericUpDown_Sim_WheelCircumference_ValueChanged);
  666. //
  667. // numericUpDown_Sim_MaxOutput
  668. //
  669. this->numericUpDown_Sim_MaxOutput->DecimalPlaces = 3;
  670. this->numericUpDown_Sim_MaxOutput->Enabled = false;
  671. this->numericUpDown_Sim_MaxOutput->Location = System::Drawing::Point(42, 48);
  672. this->numericUpDown_Sim_MaxOutput->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {255, 0, 0, 0});
  673. this->numericUpDown_Sim_MaxOutput->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 196608});
  674. this->numericUpDown_Sim_MaxOutput->Name = L"numericUpDown_Sim_MaxOutput";
  675. this->numericUpDown_Sim_MaxOutput->Size = System::Drawing::Size(64, 20);
  676. this->numericUpDown_Sim_MaxOutput->TabIndex = 16;
  677. this->numericUpDown_Sim_MaxOutput->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
  678. this->numericUpDown_Sim_MaxOutput->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {120, 0, 0, 0});
  679. this->numericUpDown_Sim_MaxOutput->ValueChanged += gcnew System::EventHandler(this, &BikePowerSensor::numericUpDown_Sim_MinMaxOutput_ValueChanged);
  680. //
  681. // radioButton_Sim_SimBySpeed
  682. //
  683. this->radioButton_Sim_SimBySpeed->AutoSize = true;
  684. this->radioButton_Sim_SimBySpeed->Location = System::Drawing::Point(112, 36);
  685. this->radioButton_Sim_SimBySpeed->Name = L"radioButton_Sim_SimBySpeed";
  686. this->radioButton_Sim_SimBySpeed->Size = System::Drawing::Size(56, 30);
  687. this->radioButton_Sim_SimBySpeed->TabIndex = 12;
  688. this->radioButton_Sim_SimBySpeed->Text = L"Speed\r\n(km/h)";
  689. this->radioButton_Sim_SimBySpeed->UseVisualStyleBackColor = true;
  690. //
  691. // radioButton_Sim_SimByCadence
  692. //
  693. this->radioButton_Sim_SimByCadence->AutoSize = true;
  694. this->radioButton_Sim_SimByCadence->Checked = true;
  695. this->radioButton_Sim_SimByCadence->Location = System::Drawing::Point(112, 8);
  696. this->radioButton_Sim_SimByCadence->Name = L"radioButton_Sim_SimByCadence";
  697. this->radioButton_Sim_SimByCadence->Size = System::Drawing::Size(71, 30);
  698. this->radioButton_Sim_SimByCadence->TabIndex = 11;
  699. this->radioButton_Sim_SimByCadence->TabStop = true;
  700. this->radioButton_Sim_SimByCadence->Text = L"Cadence \r\n(rpm)";
  701. this->radioButton_Sim_SimByCadence->UseVisualStyleBackColor = true;
  702. this->radioButton_Sim_SimByCadence->CheckedChanged += gcnew System::EventHandler(this, &BikePowerSensor::radioButton_SimByChanged);
  703. //
  704. // numericUpDown_Sim_CurOutput
  705. //
  706. this->numericUpDown_Sim_CurOutput->DecimalPlaces = 3;
  707. this->numericUpDown_Sim_CurOutput->Location = System::Drawing::Point(42, 27);
  708. this->numericUpDown_Sim_CurOutput->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {255, 0, 0, 0});
  709. this->numericUpDown_Sim_CurOutput->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 196608});
  710. this->numericUpDown_Sim_CurOutput->Name = L"numericUpDown_Sim_CurOutput";
  711. this->numericUpDown_Sim_CurOutput->Size = System::Drawing::Size(64, 20);
  712. this->numericUpDown_Sim_CurOutput->TabIndex = 15;
  713. this->numericUpDown_Sim_CurOutput->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
  714. this->numericUpDown_Sim_CurOutput->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {90, 0, 0, 0});
  715. this->numericUpDown_Sim_CurOutput->ValueChanged += gcnew System::EventHandler(this, &BikePowerSensor::numericUpDown_Sim_CurOutput_ValueChanged);
  716. //
  717. // label_Sim_Crank
  718. //
  719. this->label_Sim_Crank->AutoSize = true;
  720. this->label_Sim_Crank->Location = System::Drawing::Point(342, 52);
  721. this->label_Sim_Crank->Name = L"label_Sim_Crank";
  722. this->label_Sim_Crank->Size = System::Drawing::Size(35, 13);
  723. this->label_Sim_Crank->TabIndex = 21;
  724. this->label_Sim_Crank->Text = L"Crank";
  725. //
  726. // numericUpDown_Sim_MinOutput
  727. //
  728. this->numericUpDown_Sim_MinOutput->DecimalPlaces = 3;
  729. this->numericUpDown_Sim_MinOutput->Enabled = false;
  730. this->numericUpDown_Sim_MinOutput->Location = System::Drawing::Point(42, 6);
  731. this->numericUpDown_Sim_MinOutput->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {255, 0, 0, 0});
  732. this->numericUpDown_Sim_MinOutput->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 196608});
  733. this->numericUpDown_Sim_MinOutput->Name = L"numericUpDown_Sim_MinOutput";
  734. this->numericUpDown_Sim_MinOutput->Size = System::Drawing::Size(64, 20);
  735. this->numericUpDown_Sim_MinOutput->TabIndex = 14;
  736. this->numericUpDown_Sim_MinOutput->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
  737. this->numericUpDown_Sim_MinOutput->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {60, 0, 0, 0});
  738. this->numericUpDown_Sim_MinOutput->ValueChanged += gcnew System::EventHandler(this, &BikePowerSensor::numericUpDown_Sim_MinMaxOutput_ValueChanged);
  739. //
  740. // label_Sim_Max
  741. //
  742. this->label_Sim_Max->AutoSize = true;
  743. this->label_Sim_Max->Location = System::Drawing::Point(16, 50);
  744. this->label_Sim_Max->Name = L"label_Sim_Max";
  745. this->label_Sim_Max->Size = System::Drawing::Size(27, 13);
  746. this->label_Sim_Max->TabIndex = 3;
  747. this->label_Sim_Max->Text = L"Max";
  748. //
  749. // numericUpDown_Sim_WheelGearTeeth
  750. //
  751. this->numericUpDown_Sim_WheelGearTeeth->Location = System::Drawing::Point(291, 8);
  752. this->numericUpDown_Sim_WheelGearTeeth->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {99, 0, 0, 0});
  753. this->numericUpDown_Sim_WheelGearTeeth->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
  754. this->numericUpDown_Sim_WheelGearTeeth->Name = L"numericUpDown_Sim_WheelGearTeeth";
  755. this->numericUpDown_Sim_WheelGearTeeth->Size = System::Drawing::Size(45, 20);
  756. this->numericUpDown_Sim_WheelGearTeeth->TabIndex = 21;
  757. this->numericUpDown_Sim_WheelGearTeeth->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
  758. this->numericUpDown_Sim_WheelGearTeeth->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {21, 0, 0, 0});
  759. this->numericUpDown_Sim_WheelGearTeeth->ValueChanged += gcnew System::EventHandler(this, &BikePowerSensor::numericUpDown_Sim_WheelGearTeeth_ValueChanged);
  760. //
  761. // label_Sim_Current
  762. //
  763. this->label_Sim_Current->AutoSize = true;
  764. this->label_Sim_Current->Location = System::Drawing::Point(2, 29);
  765. this->label_Sim_Current->Name = L"label_Sim_Current";
  766. this->label_Sim_Current->Size = System::Drawing::Size(41, 13);
  767. this->label_Sim_Current->TabIndex = 2;
  768. this->label_Sim_Current->Text = L"Current";
  769. //
  770. // label_Sim_Min
  771. //
  772. this->label_Sim_Min->AutoSize = true;
  773. this->label_Sim_Min->Location = System::Drawing::Point(19, 8);
  774. this->label_Sim_Min->Name = L"label_Sim_Min";
  775. this->label_Sim_Min->Size = System::Drawing::Size(24, 13);
  776. this->label_Sim_Min->TabIndex = 1;
  777. this->label_Sim_Min->Text = L"Min";
  778. //
  779. // numericUpDown_Sim_CrankTorque
  780. //
  781. this->numericUpDown_Sim_CrankTorque->DecimalPlaces = 1;
  782. this->numericUpDown_Sim_CrankTorque->Increment = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 65536});
  783. this->numericUpDown_Sim_CrankTorque->Location = System::Drawing::Point(340, 86);
  784. this->numericUpDown_Sim_CrankTorque->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {999, 0, 0, 65536});
  785. this->numericUpDown_Sim_CrankTorque->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 65536});
  786. this->numericUpDown_Sim_CrankTorque->Name = L"numericUpDown_Sim_CrankTorque";
  787. this->numericUpDown_Sim_CrankTorque->Size = System::Drawing::Size(45, 20);
  788. this->numericUpDown_Sim_CrankTorque->TabIndex = 24;
  789. this->numericUpDown_Sim_CrankTorque->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
  790. this->numericUpDown_Sim_CrankTorque->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {300, 0, 0, 65536});
  791. this->numericUpDown_Sim_CrankTorque->ValueChanged += gcnew System::EventHandler(this, &BikePowerSensor::numericUpDown_Sim_CrankTorque_ValueChanged);
  792. //
  793. // label_Sim_Wheel
  794. //
  795. this->label_Sim_Wheel->AutoSize = true;
  796. this->label_Sim_Wheel->Location = System::Drawing::Point(294, 52);
  797. this->label_Sim_Wheel->Name = L"label_Sim_Wheel";
  798. this->label_Sim_Wheel->Size = System::Drawing::Size(38, 13);
  799. this->label_Sim_Wheel->TabIndex = 22;
  800. this->label_Sim_Wheel->Text = L"Wheel";
  801. //
  802. // numericUpDown_Sim_CrankGearTeeth
  803. //
  804. this->numericUpDown_Sim_CrankGearTeeth->Location = System::Drawing::Point(338, 8);
  805. this->numericUpDown_Sim_CrankGearTeeth->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {99, 0, 0, 0});
  806. this->numericUpDown_Sim_CrankGearTeeth->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
  807. this->numericUpDown_Sim_CrankGearTeeth->Name = L"numericUpDown_Sim_CrankGearTeeth";
  808. this->numericUpDown_Sim_CrankGearTeeth->Size = System::Drawing::Size(45, 20);
  809. this->numericUpDown_Sim_CrankGearTeeth->TabIndex = 22;
  810. this->numericUpDown_Sim_CrankGearTeeth->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
  811. this->numericUpDown_Sim_CrankGearTeeth->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {42, 0, 0, 0});
  812. this->numericUpDown_Sim_CrankGearTeeth->ValueChanged += gcnew System::EventHandler(this, &BikePowerSensor::numericUpDown_Sim_CrankGearTeeth_ValueChanged);
  813. //
  814. // numericUpDown_Sim_WheelTorque
  815. //
  816. this->numericUpDown_Sim_WheelTorque->DecimalPlaces = 1;
  817. this->numericUpDown_Sim_WheelTorque->Increment = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 65536});
  818. this->numericUpDown_Sim_WheelTorque->Location = System::Drawing::Point(291, 86);
  819. this->numericUpDown_Sim_WheelTorque->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {999, 0, 0, 65536});
  820. this->numericUpDown_Sim_WheelTorque->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 65536});
  821. this->numericUpDown_Sim_WheelTorque->Name = L"numericUpDown_Sim_WheelTorque";
  822. this->numericUpDown_Sim_WheelTorque->Size = System::Drawing::Size(45, 20);
  823. this->numericUpDown_Sim_WheelTorque->TabIndex = 23;
  824. this->numericUpDown_Sim_WheelTorque->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
  825. this->numericUpDown_Sim_WheelTorque->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {150, 0, 0, 65536});
  826. this->numericUpDown_Sim_WheelTorque->ValueChanged += gcnew System::EventHandler(this, &BikePowerSensor::numericUpDown_Sim_WheelTorque_ValueChanged);
  827. //
  828. // tabPage_PowerPaging
  829. //
  830. this->tabPage_PowerPaging->Controls->Add(this->checkBox_Ppg_TxPedalPwr);
  831. this->tabPage_PowerPaging->Controls->Add(this->checkBox_Ppg_TxCadence);
  832. this->tabPage_PowerPaging->Controls->Add(this->numericUpDown_Ppg_SlopeConstant);
  833. this->tabPage_PowerPaging->Controls->Add(this->groupBox_Ppg_SendPageSelect);
  834. this->tabPage_PowerPaging->Controls->Add(this->label1);
  835. this->tabPage_PowerPaging->Controls->Add(this->numericUpDown_Ppg_BasicPowerInterlvTime);
  836. this->tabPage_PowerPaging->Controls->Add(this->label_Ppg_SlopeConstant);
  837. this->tabPage_PowerPaging->Controls->Add(this->groupBox_Ppg_RaiseEventsSelect);
  838. this->tabPage_PowerPaging->Location = System::Drawing::Point(4, 22);
  839. this->tabPage_PowerPaging->Name = L"tabPage_PowerPaging";
  840. this->tabPage_PowerPaging->Size = System::Drawing::Size(389, 111);
  841. this->tabPage_PowerPaging->TabIndex = 3;
  842. this->tabPage_PowerPaging->Text = L"Settings";
  843. this->tabPage_PowerPaging->UseVisualStyleBackColor = true;
  844. //
  845. // checkBox_Ppg_TxPedalPwr
  846. //
  847. this->checkBox_Ppg_TxPedalPwr->AutoSize = true;
  848. this->checkBox_Ppg_TxPedalPwr->Checked = true;
  849. this->checkBox_Ppg_TxPedalPwr->CheckState = System::Windows::Forms::CheckState::Checked;
  850. this->checkBox_Ppg_TxPedalPwr->Location = System::Drawing::Point(129, 57);
  851. this->checkBox_Ppg_TxPedalPwr->Name = L"checkBox_Ppg_TxPedalPwr";
  852. this->checkBox_Ppg_TxPedalPwr->Size = System::Drawing::Size(114, 17);
  853. this->checkBox_Ppg_TxPedalPwr->TabIndex = 33;
  854. this->checkBox_Ppg_TxPedalPwr->Text = L"Send Pedal Power";
  855. this->checkBox_Ppg_TxPedalPwr->UseVisualStyleBackColor = true;
  856. this->checkBox_Ppg_TxPedalPwr->CheckedChanged += gcnew System::EventHandler(this, &BikePowerSensor::checkBox_Ppg_TxPedalPwr_CheckedChanged);
  857. //
  858. // checkBox_Ppg_TxCadence
  859. //
  860. this->checkBox_Ppg_TxCadence->AutoSize = true;
  861. this->checkBox_Ppg_TxCadence->Checked = true;
  862. this->checkBox_Ppg_TxCadence->CheckState = System::Windows::Forms::CheckState::Checked;
  863. this->checkBox_Ppg_TxCadence->Location = System::Drawing::Point(129, 41);
  864. this->checkBox_Ppg_TxCadence->Name = L"checkBox_Ppg_TxCadence";
  865. this->checkBox_Ppg_TxCadence->Size = System::Drawing::Size(97, 17);
  866. this->checkBox_Ppg_TxCadence->TabIndex = 32;
  867. this->checkBox_Ppg_TxCadence->Text = L"Send Cadence";
  868. this->checkBox_Ppg_TxCadence->UseVisualStyleBackColor = true;
  869. this->checkBox_Ppg_TxCadence->CheckedChanged += gcnew System::EventHandler(this, &BikePowerSensor::checkBox_Ppg_TxCadence_CheckedChanged);
  870. //
  871. // numericUpDown_Ppg_SlopeConstant
  872. //
  873. this->numericUpDown_Ppg_SlopeConstant->DecimalPlaces = 1;
  874. this->numericUpDown_Ppg_SlopeConstant->Enabled = false;
  875. this->numericUpDown_Ppg_SlopeConstant->Increment = System::Decimal(gcnew cli::array< System::Int32 >(4) {5, 0, 0, 0});
  876. this->numericUpDown_Ppg_SlopeConstant->Location = System::Drawing::Point(213, 79);
  877. this->numericUpDown_Ppg_SlopeConstant->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {50, 0, 0, 0});
  878. this->numericUpDown_Ppg_SlopeConstant->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {10, 0, 0, 0});
  879. this->numericUpDown_Ppg_SlopeConstant->Name = L"numericUpDown_Ppg_SlopeConstant";
  880. this->numericUpDown_Ppg_SlopeConstant->Size = System::Drawing::Size(45, 20);
  881. this->numericUpDown_Ppg_SlopeConstant->TabIndex = 31;
  882. this->numericUpDown_Ppg_SlopeConstant->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {10, 0, 0, 0});
  883. this->numericUpDown_Ppg_SlopeConstant->ValueChanged += gcnew System::EventHandler(this, &BikePowerSensor::numericUpDown_Ppg_SlopeConstant_ValueChanged);
  884. //
  885. // groupBox_Ppg_SendPageSelect
  886. //
  887. this->groupBox_Ppg_SendPageSelect->Controls->Add(this->radioButton_WheelTorque);
  888. this->groupBox_Ppg_SendPageSelect->Controls->Add(this->radioButton_CTF);
  889. this->groupBox_Ppg_SendPageSelect->Controls->Add(this->radioButton_Power);
  890. this->groupBox_Ppg_SendPageSelect->Controls->Add(this->radioButton_CrankTorque);
  891. this->groupBox_Ppg_SendPageSelect->Location = System::Drawing::Point(3, 2);
  892. this->groupBox_Ppg_SendPageSelect->Name = L"groupBox_Ppg_SendPageSelect";
  893. this->groupBox_Ppg_SendPageSelect->Size = System::Drawing::Size(117, 106);
  894. this->groupBox_Ppg_SendPageSelect->TabIndex = 27;
  895. this->groupBox_Ppg_SendPageSelect->TabStop = false;
  896. this->groupBox_Ppg_SendPageSelect->Text = L"Sensor Type:";
  897. //
  898. // radioButton_WheelTorque
  899. //
  900. this->radioButton_WheelTorque->AutoSize = true;
  901. this->radioButton_WheelTorque->Location = System::Drawing::Point(6, 34);
  902. this->radioButton_WheelTorque->Name = L"radioButton_WheelTorque";
  903. this->radioButton_WheelTorque->Size = System::Drawing::Size(93, 17);
  904. this->radioButton_WheelTorque->TabIndex = 26;
  905. this->radioButton_WheelTorque->Text = L"Wheel Torque";
  906. this->radioButton_WheelTorque->UseVisualStyleBackColor = true;
  907. this->radioButton_WheelTorque->CheckedChanged += gcnew System::EventHandler(this, &BikePowerSensor::radioButton_SensorType_CheckedChanged);
  908. //
  909. // radioButton_CTF
  910. //
  911. this->radioButton_CTF->AutoSize = true;
  912. this->radioButton_CTF->Location = System::Drawing::Point(6, 70);
  913. this->radioButton_CTF->Name = L"radioButton_CTF";
  914. this->radioButton_CTF->Size = System::Drawing::Size(93, 30);
  915. this->radioButton_CTF->TabIndex = 28;
  916. this->radioButton_CTF->Text = L"Crank Torque \r\nFrequency";
  917. this->radioButton_CTF->UseVisualStyleBackColor = true;
  918. this->radioButton_CTF->CheckedChanged += gcnew System::EventHandler(this, &BikePowerSensor::radioButton_SensorType_CheckedChanged);
  919. //
  920. // radioButton_Power
  921. //
  922. this->radioButton_Power->AutoSize = true;
  923. this->radioButton_Power->Checked = true;
  924. this->radioButton_Power->Location = System::Drawing::Point(6, 16);
  925. this->radioButton_Power->Name = L"radioButton_Power";
  926. this->radioButton_Power->Size = System::Drawing::Size(79, 17);
  927. this->radioButton_Power->TabIndex = 25;
  928. this->radioButton_Power->TabStop = true;
  929. this->radioButton_Power->Text = L"Power Only";
  930. this->radioButton_Power->UseVisualStyleBackColor = true;
  931. this->radioButton_Power->CheckedChanged += gcnew System::EventHandler(this, &BikePowerSensor::radioButton_SensorType_CheckedChanged);
  932. //
  933. // radioButton_CrankTorque
  934. //
  935. this->radioButton_CrankTorque->AutoSize = true;
  936. this->radioButton_CrankTorque->Location = System::Drawing::Point(6, 52);
  937. this->radioButton_CrankTorque->Name = L"radioButton_CrankTorque";
  938. this->radioButton_CrankTorque->Size = System::Drawing::Size(90, 17);
  939. this->radioButton_CrankTorque->TabIndex = 27;
  940. this->radioButton_CrankTorque->Text = L"Crank Torque";
  941. this->radioButton_CrankTorque->UseVisualStyleBackColor = true;
  942. this->radioButton_CrankTorque->CheckedChanged += gcnew System::EventHandler(this, &BikePowerSensor::radioButton_SensorType_CheckedChanged);
  943. //
  944. // label1
  945. //
  946. this->label1->AutoSize = true;
  947. this->label1->Location = System::Drawing::Point(126, 10);
  948. this->label1->Name = L"label1";
  949. this->label1->Size = System::Drawing::Size(95, 26);
  950. this->label1->TabIndex = 31;
  951. this->label1->Text = L"Send basic power\r\nevery ... messages";
  952. //
  953. // numericUpDown_Ppg_BasicPowerInterlvTime
  954. //
  955. this->numericUpDown_Ppg_BasicPowerInterlvTime->Enabled = false;
  956. this->numericUpDown_Ppg_BasicPowerInterlvTime->Location = System::Drawing::Point(227, 15);
  957. this->numericUpDown_Ppg_BasicPowerInterlvTime->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {9, 0, 0, 0});
  958. this->numericUpDown_Ppg_BasicPowerInterlvTime->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {2, 0, 0, 0});
  959. this->numericUpDown_Ppg_BasicPowerInterlvTime->Name = L"numericUpDown_Ppg_BasicPowerInterlvTime";
  960. this->numericUpDown_Ppg_BasicPowerInterlvTime->Size = System::Drawing::Size(31, 20);
  961. this->numericUpDown_Ppg_BasicPowerInterlvTime->TabIndex = 30;
  962. this->numericUpDown_Ppg_BasicPowerInterlvTime->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {5, 0, 0, 0});
  963. this->numericUpDown_Ppg_BasicPowerInterlvTime->ValueChanged += gcnew System::EventHandler(this, &BikePowerSensor::numericUpDown_Ppg_BasicPowerInterlvTime_ValueChanged);
  964. //
  965. // label_Ppg_SlopeConstant
  966. //
  967. this->label_Ppg_SlopeConstant->AutoSize = true;
  968. this->label_Ppg_SlopeConstant->Location = System::Drawing::Point(160, 76);
  969. this->label_Ppg_SlopeConstant->Name = L"label_Ppg_SlopeConstant";
  970. this->label_Ppg_SlopeConstant->Size = System::Drawing::Size(47, 26);
  971. this->label_Ppg_SlopeConstant->TabIndex = 10;
  972. this->label_Ppg_SlopeConstant->Text = L"Slope \r\n(Nm/Hz)";
  973. //
  974. // groupBox_Ppg_RaiseEventsSelect
  975. //
  976. this->groupBox_Ppg_RaiseEventsSelect->Controls->Add(this->numericUpDown_Ppg_TimerEventFreq);
  977. this->groupBox_Ppg_RaiseEventsSelect->Controls->Add(this->radioButton_Ppg_EventOnTime);
  978. this->groupBox_Ppg_RaiseEventsSelect->Controls->Add(this->radioButton_Ppg_EventOnRotation);
  979. this->groupBox_Ppg_RaiseEventsSelect->Location = System::Drawing::Point(272, 3);
  980. this->groupBox_Ppg_RaiseEventsSelect->Name = L"groupBox_Ppg_RaiseEventsSelect";
  981. this->groupBox_Ppg_RaiseEventsSelect->Size = System::Drawing::Size(114, 72);
  982. this->groupBox_Ppg_RaiseEventsSelect->TabIndex = 5;
  983. this->groupBox_Ppg_RaiseEventsSelect->TabStop = false;
  984. this->groupBox_Ppg_RaiseEventsSelect->Text = L"Events Raised On:";
  985. //
  986. // numericUpDown_Ppg_TimerEventFreq
  987. //
  988. this->numericUpDown_Ppg_TimerEventFreq->DecimalPlaces = 1;
  989. this->numericUpDown_Ppg_TimerEventFreq->Increment = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 65536});
  990. this->numericUpDown_Ppg_TimerEventFreq->Location = System::Drawing::Point(56, 49);
  991. this->numericUpDown_Ppg_TimerEventFreq->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {4, 0, 0, 0});
  992. this->numericUpDown_Ppg_TimerEventFreq->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 65536});
  993. this->numericUpDown_Ppg_TimerEventFreq->Name = L"numericUpDown_Ppg_TimerEventFreq";
  994. this->numericUpDown_Ppg_TimerEventFreq->Size = System::Drawing::Size(39, 20);
  995. this->numericUpDown_Ppg_TimerEventFreq->TabIndex = 34;
  996. this->numericUpDown_Ppg_TimerEventFreq->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {2, 0, 0, 0});
  997. this->numericUpDown_Ppg_TimerEventFreq->ValueChanged += gcnew System::EventHandler(this, &BikePowerSensor::numericUpDown_Ppg_TimerEventFreq_ValueChanged);
  998. //
  999. // radioButton_Ppg_EventOnTime
  1000. //
  1001. this->radioButton_Ppg_EventOnTime->AutoSize = true;
  1002. this->radioButton_Ppg_EventOnTime->Checked = true;
  1003. this->radioButton_Ppg_EventOnTime->Location = System::Drawing::Point(4, 32);
  1004. this->radioButton_Ppg_EventOnTime->Name = L"radioButton_Ppg_EventOnTime";
  1005. this->radioButton_Ppg_EventOnTime->Size = System::Drawing::Size(94, 30);
  1006. this->radioButton_Ppg_EventOnTime->TabIndex = 33;
  1007. this->radioButton_Ppg_EventOnTime->TabStop = true;
  1008. this->radioButton_Ppg_EventOnTime->Text = L"Timer Intervals\r\nin Hz";
  1009. this->radioButton_Ppg_EventOnTime->UseVisualStyleBackColor = true;
  1010. this->radioButton_Ppg_EventOnTime->CheckedChanged += gcnew System::EventHandler(this, &BikePowerSensor::radioButton_Ppg_UpdateType_CheckedChanged);
  1011. //
  1012. // radioButton_Ppg_EventOnRotation
  1013. //
  1014. this->radioButton_Ppg_EventOnRotation->AutoSize = true;
  1015. this->radioButton_Ppg_EventOnRotation->Enabled = false;
  1016. this->radioButton_Ppg_EventOnRotation->Location = System::Drawing::Point(4, 16);
  1017. this->radioButton_Ppg_EventOnRotation->Name = L"radioButton_Ppg_EventOnRotation";
  1018. this->radioButton_Ppg_EventOnRotation->Size = System::Drawing::Size(65, 17);
  1019. this->radioButton_Ppg_EventOnRotation->TabIndex = 32;
  1020. this->radioButton_Ppg_EventOnRotation->Text = L"Rotation";
  1021. this->radioButton_Ppg_EventOnRotation->UseVisualStyleBackColor = true;
  1022. this->radioButton_Ppg_EventOnRotation->CheckedChanged += gcnew System::EventHandler(this, &BikePowerSensor::radioButton_Ppg_UpdateType_CheckedChanged);
  1023. //
  1024. // tabPage_Calibration
  1025. //
  1026. this->tabPage_Calibration->Controls->Add(this->checkBox_Cal_TorqAZMesg);
  1027. this->tabPage_Calibration->Controls->Add(this->label_Cal_TorqOffset);
  1028. this->tabPage_Calibration->Controls->Add(this->label_Cal_RawTorq);
  1029. this->tabPage_Calibration->Controls->Add(this->label_Cal_AZStatus);
  1030. this->tabPage_Calibration->Controls->Add(this->numericUpDown_Cal_RawTorque);
  1031. this->tabPage_Calibration->Controls->Add(this->listBox_Cal_AZStatus);
  1032. this->tabPage_Calibration->Controls->Add(this->label_Cal_CalNum);
  1033. this->tabPage_Calibration->Controls->Add(this->numericUpDown_Cal_OffsetTorque);
  1034. this->tabPage_Calibration->Controls->Add(this->numericUpDown_Cal_CalNumber);
  1035. this->tabPage_Calibration->Controls->Add(this->label_Cal_CalSuccess);
  1036. this->tabPage_Calibration->Controls->Add(this->radioButton_Cal_Failure);
  1037. this->tabPage_Calibration->Controls->Add(this->radioButton_Cal_Success);
  1038. this->tabPage_Calibration->Location = System::Drawing::Point(4, 22);
  1039. this->tabPage_Calibration->Name = L"tabPage_Calibration";
  1040. this->tabPage_Calibration->Size = System::Drawing::Size(389, 111);
  1041. this->tabPage_Calibration->TabIndex = 2;
  1042. this->tabPage_Calibration->Text = L"Calibration";
  1043. this->tabPage_Calibration->UseVisualStyleBackColor = true;
  1044. //
  1045. // checkBox_Cal_TorqAZMesg
  1046. //
  1047. this->checkBox_Cal_TorqAZMesg->AutoSize = true;
  1048. this->checkBox_Cal_TorqAZMesg->Checked = true;
  1049. this->checkBox_Cal_TorqAZMesg->CheckState = System::Windows::Forms::CheckState::Checked;
  1050. this->checkBox_Cal_TorqAZMesg->Location = System::Drawing::Point(206, 3);
  1051. this->checkBox_Cal_TorqAZMesg->Name = L"checkBox_Cal_TorqAZMesg";
  1052. this->checkBox_Cal_TorqAZMesg->Size = System::Drawing::Size(146, 30);
  1053. this->checkBox_Cal_TorqAZMesg->TabIndex = 38;
  1054. this->checkBox_Cal_TorqAZMesg->Text = L"Enable Torque/Autozero \r\nSupport Message";
  1055. this->checkBox_Cal_TorqAZMesg->UseVisualStyleBackColor = true;
  1056. this->checkBox_Cal_TorqAZMesg->CheckedChanged += gcnew System::EventHandler(this, &BikePowerSensor::checkBox_Cal_TorqAZMesg_CheckedChanged);
  1057. //
  1058. // label_Cal_TorqOffset
  1059. //
  1060. this->label_Cal_TorqOffset->AutoSize = true;
  1061. this->label_Cal_TorqOffset->Location = System::Drawing::Point(311, 72);
  1062. this->label_Cal_TorqOffset->Name = L"label_Cal_TorqOffset";
  1063. this->label_Cal_TorqOffset->Size = System::Drawing::Size(75, 13);
  1064. this->label_Cal_TorqOffset->TabIndex = 33;
  1065. this->label_Cal_TorqOffset->Text = L"Offset Torque:";
  1066. //
  1067. // label_Cal_RawTorq
  1068. //
  1069. this->label_Cal_RawTorq->AutoSize = true;
  1070. this->label_Cal_RawTorq->Location = System::Drawing::Point(317, 34);
  1071. this->label_Cal_RawTorq->Name = L"label_Cal_RawTorq";
  1072. this->label_Cal_RawTorq->Size = System::Drawing::Size(69, 13);
  1073. this->label_Cal_RawTorq->TabIndex = 32;
  1074. this->label_Cal_RawTorq->Text = L"Raw Torque:";
  1075. //
  1076. // label_Cal_AZStatus
  1077. //
  1078. this->label_Cal_AZStatus->AutoSize = true;
  1079. this->label_Cal_AZStatus->Location = System::Drawing::Point(203, 42);
  1080. this->label_Cal_AZStatus->Name = L"label_Cal_AZStatus";
  1081. this->label_Cal_AZStatus->Size = System::Drawing::Size(87, 13);
  1082. this->label_Cal_AZStatus->TabIndex = 29;
  1083. this->label_Cal_AZStatus->Text = L"Auto Zero Status";
  1084. //
  1085. // numericUpDown_Cal_RawTorque
  1086. //
  1087. this->numericUpDown_Cal_RawTorque->Increment = System::Decimal(gcnew cli::array< System::Int32 >(4) {1000, 0, 0, 0});
  1088. this->numericUpDown_Cal_RawTorque->Location = System::Drawing::Point(321, 50);
  1089. this->numericUpDown_Cal_RawTorque->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {32767, 0, 0, 0});
  1090. this->numericUpDown_Cal_RawTorque->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {32767, 0, 0, System::Int32::MinValue});
  1091. this->numericUpDown_Cal_RawTorque->Name = L"numericUpDown_Cal_RawTorque";
  1092. this->numericUpDown_Cal_RawTorque->Size = System::Drawing::Size(61, 20);
  1093. this->numericUpDown_Cal_RawTorque->TabIndex = 40;
  1094. this->numericUpDown_Cal_RawTorque->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
  1095. this->numericUpDown_Cal_RawTorque->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {12345, 0, 0, 0});
  1096. this->numericUpDown_Cal_RawTorque->ValueChanged += gcnew System::EventHandler(this, &BikePowerSensor::numericUpDown_Cal_RawTorque_ValueChanged);
  1097. //
  1098. // listBox_Cal_AZStatus
  1099. //
  1100. this->listBox_Cal_AZStatus->FormattingEnabled = true;
  1101. this->listBox_Cal_AZStatus->Items->AddRange(gcnew cli::array< System::Object^ >(3) {L"0 - Off", L"1 - On", L"FF - Not Supported"});
  1102. this->listBox_Cal_AZStatus->Location = System::Drawing::Point(206, 59);
  1103. this->listBox_Cal_AZStatus->Name = L"listBox_Cal_AZStatus";
  1104. this->listBox_Cal_AZStatus->Size = System::Drawing::Size(99, 43);
  1105. this->listBox_Cal_AZStatus->TabIndex = 39;
  1106. this->listBox_Cal_AZStatus->SelectedIndexChanged += gcnew System::EventHandler(this, &BikePowerSensor::listBox_Cal_AZStatus_SelectedIndexChanged);
  1107. //
  1108. // label_Cal_CalNum
  1109. //
  1110. this->label_Cal_CalNum->AutoSize = true;
  1111. this->label_Cal_CalNum->Location = System::Drawing::Point(12, 10);
  1112. this->label_Cal_CalNum->Name = L"label_Cal_CalNum";
  1113. this->label_Cal_CalNum->Size = System::Drawing::Size(143, 13);
  1114. this->label_Cal_CalNum->TabIndex = 4;
  1115. this->label_Cal_CalNum->Text = L"Calibration Number To Send:";
  1116. //
  1117. // numericUpDown_Cal_OffsetTorque
  1118. //
  1119. this->numericUpDown_Cal_OffsetTorque->Increment = System::Decimal(gcnew cli::array< System::Int32 >(4) {1000, 0, 0, 0});
  1120. this->numericUpDown_Cal_OffsetTorque->Location = System::Drawing::Point(321, 88);
  1121. this->numericUpDown_Cal_OffsetTorque->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {32767, 0, 0, 0});
  1122. this->numericUpDown_Cal_OffsetTorque->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {32767, 0, 0, System::Int32::MinValue});
  1123. this->numericUpDown_Cal_OffsetTorque->Name = L"numericUpDown_Cal_OffsetTorque";
  1124. this->numericUpDown_Cal_OffsetTorque->Size = System::Drawing::Size(61, 20);
  1125. this->numericUpDown_Cal_OffsetTorque->TabIndex = 41;
  1126. this->numericUpDown_Cal_OffsetTorque->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
  1127. this->numericUpDown_Cal_OffsetTorque->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {12345, 0, 0, 0});
  1128. this->numericUpDown_Cal_OffsetTorque->ValueChanged += gcnew System::EventHandler(this, &BikePowerSensor::numericUpDown_Cal_OffsetTorque_ValueChanged);
  1129. //
  1130. // numericUpDown_Cal_CalNumber
  1131. //
  1132. this->numericUpDown_Cal_CalNumber->Location = System::Drawing::Point(90, 27);
  1133. this->numericUpDown_Cal_CalNumber->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {32767, 0, 0, 0});
  1134. this->numericUpDown_Cal_CalNumber->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {32768, 0, 0, System::Int32::MinValue});
  1135. this->numericUpDown_Cal_CalNumber->Name = L"numericUpDown_Cal_CalNumber";
  1136. this->numericUpDown_Cal_CalNumber->Size = System::Drawing::Size(61, 20);
  1137. this->numericUpDown_Cal_CalNumber->TabIndex = 35;
  1138. this->numericUpDown_Cal_CalNumber->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
  1139. this->numericUpDown_Cal_CalNumber->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {150, 0, 0, 0});
  1140. this->numericUpDown_Cal_CalNumber->ValueChanged += gcnew System::EventHandler(this, &BikePowerSensor::numericUpDown_Cal_CalNumber_ValueChanged);
  1141. //
  1142. // label_Cal_CalSuccess
  1143. //
  1144. this->label_Cal_CalSuccess->AutoSize = true;
  1145. this->label_Cal_CalSuccess->Location = System::Drawing::Point(17, 60);
  1146. this->label_Cal_CalSuccess->Name = L"label_Cal_CalSuccess";
  1147. this->label_Cal_CalSuccess->Size = System::Drawing::Size(134, 13);
  1148. this->label_Cal_CalSuccess->TabIndex = 2;
  1149. this->label_Cal_CalSuccess->Text = L"Report Next Calibration As:";
  1150. //
  1151. // radioButton_Cal_Failure
  1152. //
  1153. this->radioButton_Cal_Failure->AutoSize = true;
  1154. this->radioButton_Cal_Failure->Location = System::Drawing::Point(92, 76);
  1155. this->radioButton_Cal_Failure->Name = L"radioButton_Cal_Failure";
  1156. this->radioButton_Cal_Failure->Size = System::Drawing::Size(56, 17);
  1157. this->radioButton_Cal_Failure->TabIndex = 37;
  1158. this->radioButton_Cal_Failure->Text = L"Failure";
  1159. this->radioButton_Cal_Failure->UseVisualStyleBackColor = true;
  1160. //
  1161. // radioButton_Cal_Success
  1162. //
  1163. this->radioButton_Cal_Success->AutoSize = true;
  1164. this->radioButton_Cal_Success->Checked = true;
  1165. this->radioButton_Cal_Success->Location = System::Drawing::Point(20, 76);
  1166. this->radioButton_Cal_Success->Name = L"radioButton_Cal_Success";
  1167. this->radioButton_Cal_Success->Size = System::Drawing::Size(66, 17);
  1168. this->radioButton_Cal_Success->TabIndex = 36;
  1169. this->radioButton_Cal_Success->TabStop = true;
  1170. this->radioButton_Cal_Success->Text = L"Success";
  1171. this->radioButton_Cal_Success->UseVisualStyleBackColor = true;
  1172. this->radioButton_Cal_Success->CheckedChanged += gcnew System::EventHandler(this, &BikePowerSensor::radioButton_Cal_Success_CheckedChanged);
  1173. //
  1174. // tabPage_GlobalData
  1175. //
  1176. this->tabPage_GlobalData->Controls->Add(this->checkBox_InvalidSerial);
  1177. this->tabPage_GlobalData->Controls->Add(this->button_Glb_GlobalDataUpdate);
  1178. this->tabPage_GlobalData->Controls->Add(this->label_Glb_GlobalDataError);
  1179. this->tabPage_GlobalData->Controls->Add(this->textBox_Glb_HardwareVerChange);
  1180. this->tabPage_GlobalData->Controls->Add(this->textBox_Glb_ModelNumChange);
  1181. this->tabPage_GlobalData->Controls->Add(this->label_Glb_HardwareVer);
  1182. this->tabPage_GlobalData->Controls->Add(this->label_Glb_ManfID);
  1183. this->tabPage_GlobalData->Controls->Add(this->textBox_Glb_ManfIDChange);
  1184. this->tabPage_GlobalData->Controls->Add(this->label_Glb_SoftwareVer);
  1185. this->tabPage_GlobalData->Controls->Add(this->label_Glb_ModelNum);
  1186. this->tabPage_GlobalData->Controls->Add(this->textBox_Glb_SerialNumChange);
  1187. this->tabPage_GlobalData->Controls->Add(this->textBox_Glb_SoftwareVerChange);
  1188. this->tabPage_GlobalData->Controls->Add(this->label_Glb_SerialNum);
  1189. this->tabPage_GlobalData->Location = System::Drawing::Point(4, 22);
  1190. this->tabPage_GlobalData->Name = L"tabPage_GlobalData";
  1191. this->tabPage_GlobalData->Padding = System::Windows::Forms::Padding(3);
  1192. this->tabPage_GlobalData->Size = System::Drawing::Size(389, 111);
  1193. this->tabPage_GlobalData->TabIndex = 1;
  1194. this->tabPage_GlobalData->Text = L"Global Data";
  1195. this->tabPage_GlobalData->UseVisualStyleBackColor = true;
  1196. //
  1197. // checkBox_InvalidSerial
  1198. //
  1199. this->checkBox_InvalidSerial->AutoSize = true;
  1200. this->checkBox_InvalidSerial->Location = System::Drawing::Point(145, 15);
  1201. this->checkBox_InvalidSerial->Name = L"checkBox_InvalidSerial";
  1202. this->checkBox_InvalidSerial->Size = System::Drawing::Size(79, 17);
  1203. this->checkBox_InvalidSerial->TabIndex = 50;
  1204. this->checkBox_InvalidSerial->Text = L"No Serial #";
  1205. this->checkBox_InvalidSerial->UseVisualStyleBackColor = true;
  1206. this->checkBox_InvalidSerial->CheckedChanged += gcnew System::EventHandler(this, &BikePowerSensor::checkBox_InvalidSerial_CheckedChanged);
  1207. //
  1208. // button_Glb_GlobalDataUpdate
  1209. //
  1210. this->button_Glb_GlobalDataUpdate->Location = System::Drawing::Point(252, 67);
  1211. this->button_Glb_GlobalDataUpdate->Name = L"button_Glb_GlobalDataUpdate";
  1212. this->button_Glb_GlobalDataUpdate->Size = System::Drawing::Size(97, 20);
  1213. this->button_Glb_GlobalDataUpdate->TabIndex = 49;
  1214. this->button_Glb_GlobalDataUpdate->Text = L"Update All";
  1215. this->button_Glb_GlobalDataUpdate->UseVisualStyleBackColor = true;
  1216. this->button_Glb_GlobalDataUpdate->Click += gcnew System::EventHandler(this, &BikePowerSensor::button_GlobalDataUpdate_Click);
  1217. //
  1218. // label_Glb_GlobalDataError
  1219. //
  1220. this->label_Glb_GlobalDataError->AutoSize = true;
  1221. this->label_Glb_GlobalDataError->Location = System::Drawing::Point(220, 90);
  1222. this->label_Glb_GlobalDataError->Name = L"label_Glb_GlobalDataError";
  1223. this->label_Glb_GlobalDataError->Size = System::Drawing::Size(32, 13);
  1224. this->label_Glb_GlobalDataError->TabIndex = 20;
  1225. this->label_Glb_GlobalDataError->Text = L"Error:";
  1226. this->label_Glb_GlobalDataError->Visible = false;
  1227. //
  1228. // textBox_Glb_HardwareVerChange
  1229. //
  1230. this->textBox_Glb_HardwareVerChange->Location = System::Drawing::Point(320, 13);
  1231. this->textBox_Glb_HardwareVerChange->MaxLength = 3;
  1232. this->textBox_Glb_HardwareVerChange->Name = L"textBox_Glb_HardwareVerChange";
  1233. this->textBox_Glb_HardwareVerChange->Size = System::Drawing::Size(29, 20);
  1234. this->textBox_Glb_HardwareVerChange->TabIndex = 45;
  1235. this->textBox_Glb_HardwareVerChange->Text = L"1";
  1236. //
  1237. // textBox_Glb_ModelNumChange
  1238. //
  1239. this->textBox_Glb_ModelNumChange->Location = System::Drawing::Point(90, 67);
  1240. this->textBox_Glb_ModelNumChange->MaxLength = 5;
  1241. this->textBox_Glb_ModelNumChange->Name = L"textBox_Glb_ModelNumChange";
  1242. this->textBox_Glb_ModelNumChange->Size = System::Drawing::Size(49, 20);
  1243. this->textBox_Glb_ModelNumChange->TabIndex = 44;
  1244. this->textBox_Glb_ModelNumChange->Text = L"33669";
  1245. //
  1246. // label_Glb_HardwareVer
  1247. //
  1248. this->label_Glb_HardwareVer->AutoSize = true;
  1249. this->label_Glb_HardwareVer->Location = System::Drawing::Point(239, 16);
  1250. this->label_Glb_HardwareVer->Name = L"label_Glb_HardwareVer";
  1251. this->label_Glb_HardwareVer->Size = System::Drawing::Size(75, 13);
  1252. this->label_Glb_HardwareVer->TabIndex = 3;
  1253. this->label_Glb_HardwareVer->Text = L"Hardware Ver:";
  1254. //
  1255. // label_Glb_ManfID
  1256. //
  1257. this->label_Glb_ManfID->AutoSize = true;
  1258. this->label_Glb_ManfID->Location = System::Drawing::Point(6, 42);
  1259. this->label_Glb_ManfID->Name = L"label_Glb_ManfID";
  1260. this->label_Glb_ManfID->Size = System::Drawing::Size(51, 13);
  1261. this->label_Glb_ManfID->TabIndex = 1;
  1262. this->label_Glb_ManfID->Text = L"Manf. ID:";
  1263. //
  1264. // textBox_Glb_ManfIDChange
  1265. //
  1266. this->textBox_Glb_ManfIDChange->Location = System::Drawing::Point(90, 39);
  1267. this->textBox_Glb_ManfIDChange->MaxLength = 5;
  1268. this->textBox_Glb_ManfIDChange->Name = L"textBox_Glb_ManfIDChange";
  1269. this->textBox_Glb_ManfIDChange->Size = System::Drawing::Size(49, 20);
  1270. this->textBox_Glb_ManfIDChange->TabIndex = 43;
  1271. this->textBox_Glb_ManfIDChange->Text = L"2";
  1272. //
  1273. // label_Glb_SoftwareVer
  1274. //
  1275. this->label_Glb_SoftwareVer->AutoSize = true;
  1276. this->label_Glb_SoftwareVer->Location = System::Drawing::Point(243, 42);
  1277. this->label_Glb_SoftwareVer->Name = L"label_Glb_SoftwareVer";
  1278. this->label_Glb_SoftwareVer->Size = System::Drawing::Size(71, 13);
  1279. this->label_Glb_SoftwareVer->TabIndex = 4;
  1280. this->label_Glb_SoftwareVer->Text = L"Software Ver:";
  1281. //
  1282. // label_Glb_ModelNum
  1283. //
  1284. this->label_Glb_ModelNum->AutoSize = true;
  1285. this->label_Glb_ModelNum->Location = System::Drawing::Point(8, 70);
  1286. this->label_Glb_ModelNum->Name = L"label_Glb_ModelNum";
  1287. this->label_Glb_ModelNum->Size = System::Drawing::Size(49, 13);
  1288. this->label_Glb_ModelNum->TabIndex = 5;
  1289. this->label_Glb_ModelNum->Text = L"Model #:";
  1290. //
  1291. // textBox_Glb_SerialNumChange
  1292. //
  1293. this->textBox_Glb_SerialNumChange->Location = System::Drawing::Point(63, 13);
  1294. this->textBox_Glb_SerialNumChange->MaxLength = 10;
  1295. this->textBox_Glb_SerialNumChange->Name = L"textBox_Glb_SerialNumChange";
  1296. this->textBox_Glb_SerialNumChange->Size = System::Drawing::Size(76, 20);
  1297. this->textBox_Glb_SerialNumChange->TabIndex = 47;
  1298. this->textBox_Glb_SerialNumChange->Text = L"1234567890";
  1299. //
  1300. // textBox_Glb_SoftwareVerChange
  1301. //
  1302. this->textBox_Glb_SoftwareVerChange->Location = System::Drawing::Point(320, 42);
  1303. this->textBox_Glb_SoftwareVerChange->MaxLength = 3;
  1304. this->textBox_Glb_SoftwareVerChange->Name = L"textBox_Glb_SoftwareVerChange";
  1305. this->textBox_Glb_SoftwareVerChange->Size = System::Drawing::Size(29, 20);
  1306. this->textBox_Glb_SoftwareVerChange->TabIndex = 48;
  1307. this->textBox_Glb_SoftwareVerChange->Text = L"1";
  1308. //
  1309. // label_Glb_SerialNum
  1310. //
  1311. this->label_Glb_SerialNum->AutoSize = true;
  1312. this->label_Glb_SerialNum->Location = System::Drawing::Point(11, 16);
  1313. this->label_Glb_SerialNum->Name = L"label_Glb_SerialNum";
  1314. this->label_Glb_SerialNum->Size = System::Drawing::Size(46, 13);
  1315. this->label_Glb_SerialNum->TabIndex = 2;
  1316. this->label_Glb_SerialNum->Text = L"Serial #:";
  1317. //
  1318. // tabPage_GlobalBattery
  1319. //
  1320. this->tabPage_GlobalBattery->Controls->Add(this->groupBox_Resol);
  1321. this->tabPage_GlobalBattery->Controls->Add(this->label_Volt_Coarse);
  1322. this->tabPage_GlobalBattery->Controls->Add(this->button_Bat_ElpTimeUpdate);
  1323. this->tabPage_GlobalBattery->Controls->Add(this->label_Voltage_Display);
  1324. this->tabPage_GlobalBattery->Controls->Add(this->textBox_Bat_ElpTimeChange);
  1325. this->tabPage_GlobalBattery->Controls->Add(this->checkBox_Bat_FracVolt);
  1326. this->tabPage_GlobalBattery->Controls->Add(this->label_Bat_ElpTimeDisplay);
  1327. this->tabPage_GlobalBattery->Controls->Add(this->label_Bat_Volts);
  1328. this->tabPage_GlobalBattery->Controls->Add(this->label_Bat_ElpTime);
  1329. this->tabPage_GlobalBattery->Controls->Add(this->label_Volts);
  1330. this->tabPage_GlobalBattery->Controls->Add(this->checkBox_Bat_Voltage);
  1331. this->tabPage_GlobalBattery->Controls->Add(this->numericUpDown_Bat_VoltFrac);
  1332. this->tabPage_GlobalBattery->Controls->Add(this->numericUpDown_Bat_VoltInt);
  1333. this->tabPage_GlobalBattery->Controls->Add(this->label_Bat_Status);
  1334. this->tabPage_GlobalBattery->Controls->Add(this->listBox_Bat_Status);
  1335. this->tabPage_GlobalBattery->Controls->Add(this->checkBox_Bat_Status);
  1336. this->tabPage_GlobalBattery->Location = System::Drawing::Point(4, 22);
  1337. this->tabPage_GlobalBattery->Name = L"tabPage_GlobalBattery";
  1338. this->tabPage_GlobalBattery->Size = System::Drawing::Size(389, 111);
  1339. this->tabPage_GlobalBattery->TabIndex = 4;
  1340. this->tabPage_GlobalBattery->Text = L"Global Battery Data";
  1341. this->tabPage_GlobalBattery->UseVisualStyleBackColor = true;
  1342. //
  1343. // groupBox_Resol
  1344. //
  1345. this->groupBox_Resol->Controls->Add(this->radioButton_Bat_Elp2Units);
  1346. this->groupBox_Resol->Controls->Add(this->radioButton_Bat_Elp16Units);
  1347. this->groupBox_Resol->Location = System::Drawing::Point(181, 5);
  1348. this->groupBox_Resol->Name = L"groupBox_Resol";
  1349. this->groupBox_Resol->Size = System::Drawing::Size(123, 40);
  1350. this->groupBox_Resol->TabIndex = 2;
  1351. this->groupBox_Resol->TabStop = false;
  1352. this->groupBox_Resol->Text = L"Time Resolution";
  1353. //
  1354. // radioButton_Bat_Elp2Units
  1355. //
  1356. this->radioButton_Bat_Elp2Units->AutoSize = true;
  1357. this->radioButton_Bat_Elp2Units->Checked = true;
  1358. this->radioButton_Bat_Elp2Units->Location = System::Drawing::Point(6, 15);
  1359. this->radioButton_Bat_Elp2Units->Name = L"radioButton_Bat_Elp2Units";
  1360. this->radioButton_Bat_Elp2Units->Size = System::Drawing::Size(51, 17);
  1361. this->radioButton_Bat_Elp2Units->TabIndex = 58;
  1362. this->radioButton_Bat_Elp2Units->TabStop = true;
  1363. this->radioButton_Bat_Elp2Units->Text = L"2 sec";
  1364. this->radioButton_Bat_Elp2Units->UseVisualStyleBackColor = true;
  1365. this->radioButton_Bat_Elp2Units->CheckedChanged += gcnew System::EventHandler(this, &BikePowerSensor::radioButton_Bat_ElpUnits_CheckedChanged);
  1366. //
  1367. // radioButton_Bat_Elp16Units
  1368. //
  1369. this->radioButton_Bat_Elp16Units->AutoSize = true;
  1370. this->radioButton_Bat_Elp16Units->Location = System::Drawing::Point(63, 15);
  1371. this->radioButton_Bat_Elp16Units->Name = L"radioButton_Bat_Elp16Units";
  1372. this->radioButton_Bat_Elp16Units->Size = System::Drawing::Size(57, 17);
  1373. this->radioButton_Bat_Elp16Units->TabIndex = 59;
  1374. this->radioButton_Bat_Elp16Units->Text = L"16 sec";
  1375. this->radioButton_Bat_Elp16Units->UseVisualStyleBackColor = true;
  1376. this->radioButton_Bat_Elp16Units->CheckedChanged += gcnew System::EventHandler(this, &BikePowerSensor::radioButton_Bat_ElpUnits_CheckedChanged);
  1377. //
  1378. // label_Volt_Coarse
  1379. //
  1380. this->label_Volt_Coarse->AutoSize = true;
  1381. this->label_Volt_Coarse->Location = System::Drawing::Point(6, 37);
  1382. this->label_Volt_Coarse->Name = L"label_Volt_Coarse";
  1383. this->label_Volt_Coarse->Size = System::Drawing::Size(56, 13);
  1384. this->label_Volt_Coarse->TabIndex = 2;
  1385. this->label_Volt_Coarse->Text = L"Coarse (V)";
  1386. //
  1387. // button_Bat_ElpTimeUpdate
  1388. //
  1389. this->button_Bat_ElpTimeUpdate->Location = System::Drawing::Point(250, 84);
  1390. this->button_Bat_ElpTimeUpdate->Name = L"button_Bat_ElpTimeUpdate";
  1391. this->button_Bat_ElpTimeUpdate->Size = System::Drawing::Size(51, 20);
  1392. this->button_Bat_ElpTimeUpdate->TabIndex = 57;
  1393. this->button_Bat_ElpTimeUpdate->Text = L"Update";
  1394. this->button_Bat_ElpTimeUpdate->UseVisualStyleBackColor = true;
  1395. this->button_Bat_ElpTimeUpdate->Click += gcnew System::EventHandler(this, &BikePowerSensor::button_ElpTimeUpdate_Click);
  1396. //
  1397. // label_Voltage_Display
  1398. //
  1399. this->label_Voltage_Display->AutoSize = true;
  1400. this->label_Voltage_Display->Location = System::Drawing::Point(110, 21);
  1401. this->label_Voltage_Display->Name = L"label_Voltage_Display";
  1402. this->label_Voltage_Display->Size = System::Drawing::Size(0, 13);
  1403. this->label_Voltage_Display->TabIndex = 61;
  1404. //
  1405. // textBox_Bat_ElpTimeChange
  1406. //
  1407. this->textBox_Bat_ElpTimeChange->Location = System::Drawing::Point(238, 62);
  1408. this->textBox_Bat_ElpTimeChange->MaxLength = 9;
  1409. this->textBox_Bat_ElpTimeChange->Name = L"textBox_Bat_ElpTimeChange";
  1410. this->textBox_Bat_ElpTimeChange->Size = System::Drawing::Size(63, 20);
  1411. this->textBox_Bat_ElpTimeChange->TabIndex = 56;
  1412. this->textBox_Bat_ElpTimeChange->Text = L"0";
  1413. this->textBox_Bat_ElpTimeChange->TextAlign = System::Windows::Forms::HorizontalAlignment::Right;
  1414. //
  1415. // checkBox_Bat_FracVolt
  1416. //
  1417. this->checkBox_Bat_FracVolt->AutoSize = true;
  1418. this->checkBox_Bat_FracVolt->Checked = true;
  1419. this->checkBox_Bat_FracVolt->CheckState = System::Windows::Forms::CheckState::Checked;
  1420. this->checkBox_Bat_FracVolt->Location = System::Drawing::Point(92, 89);
  1421. this->checkBox_Bat_FracVolt->Name = L"checkBox_Bat_FracVolt";
  1422. this->checkBox_Bat_FracVolt->Size = System::Drawing::Size(110, 17);
  1423. this->checkBox_Bat_FracVolt->TabIndex = 54;
  1424. this->checkBox_Bat_FracVolt->Text = L"Enable Frac. Volt.";
  1425. this->checkBox_Bat_FracVolt->UseVisualStyleBackColor = true;
  1426. this->checkBox_Bat_FracVolt->CheckedChanged += gcnew System::EventHandler(this, &BikePowerSensor::checkBox_Bat_FracVolt_CheckedChanged);
  1427. //
  1428. // label_Bat_ElpTimeDisplay
  1429. //
  1430. this->label_Bat_ElpTimeDisplay->Location = System::Drawing::Point(239, 49);
  1431. this->label_Bat_ElpTimeDisplay->Name = L"label_Bat_ElpTimeDisplay";
  1432. this->label_Bat_ElpTimeDisplay->Size = System::Drawing::Size(62, 13);
  1433. this->label_Bat_ElpTimeDisplay->TabIndex = 21;
  1434. this->label_Bat_ElpTimeDisplay->Text = L"0";
  1435. this->label_Bat_ElpTimeDisplay->TextAlign = System::Drawing::ContentAlignment::BottomRight;
  1436. //
  1437. // label_Bat_Volts
  1438. //
  1439. this->label_Bat_Volts->AutoSize = true;
  1440. this->label_Bat_Volts->Location = System::Drawing::Point(9, 57);
  1441. this->label_Bat_Volts->Name = L"label_Bat_Volts";
  1442. this->label_Bat_Volts->Size = System::Drawing::Size(56, 26);
  1443. this->label_Bat_Volts->TabIndex = 30;
  1444. this->label_Bat_Volts->Text = L"Fractional \r\n(1/256V)";
  1445. //
  1446. // label_Bat_ElpTime
  1447. //
  1448. this->label_Bat_ElpTime->AutoSize = true;
  1449. this->label_Bat_ElpTime->Location = System::Drawing::Point(148, 48);
  1450. this->label_Bat_ElpTime->Name = L"label_Bat_ElpTime";
  1451. this->label_Bat_ElpTime->Size = System::Drawing::Size(88, 13);
  1452. this->label_Bat_ElpTime->TabIndex = 19;
  1453. this->label_Bat_ElpTime->Text = L"Elapsed Time (s):";
  1454. //
  1455. // label_Volts
  1456. //
  1457. this->label_Volts->AutoSize = true;
  1458. this->label_Volts->Location = System::Drawing::Point(6, 21);
  1459. this->label_Volts->Name = L"label_Volts";
  1460. this->label_Volts->Size = System::Drawing::Size(98, 13);
  1461. this->label_Volts->TabIndex = 60;
  1462. this->label_Volts->Text = L"Battery Voltage (V):";
  1463. //
  1464. // checkBox_Bat_Voltage
  1465. //
  1466. this->checkBox_Bat_Voltage->AutoSize = true;
  1467. this->checkBox_Bat_Voltage->Checked = true;
  1468. this->checkBox_Bat_Voltage->CheckState = System::Windows::Forms::CheckState::Checked;
  1469. this->checkBox_Bat_Voltage->Location = System::Drawing::Point(6, 89);
  1470. this->checkBox_Bat_Voltage->Name = L"checkBox_Bat_Voltage";
  1471. this->checkBox_Bat_Voltage->Size = System::Drawing::Size(83, 17);
  1472. this->checkBox_Bat_Voltage->TabIndex = 53;
  1473. this->checkBox_Bat_Voltage->Text = L"Enable Volt.";
  1474. this->checkBox_Bat_Voltage->UseVisualStyleBackColor = true;
  1475. this->checkBox_Bat_Voltage->CheckedChanged += gcnew System::EventHandler(this, &BikePowerSensor::checkBox_Bat_Voltage_CheckedChanged);
  1476. //
  1477. // numericUpDown_Bat_VoltFrac
  1478. //
  1479. this->numericUpDown_Bat_VoltFrac->Location = System::Drawing::Point(74, 63);
  1480. this->numericUpDown_Bat_VoltFrac->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {255, 0, 0, 0});
  1481. this->numericUpDown_Bat_VoltFrac->Name = L"numericUpDown_Bat_VoltFrac";
  1482. this->numericUpDown_Bat_VoltFrac->Size = System::Drawing::Size(42, 20);
  1483. this->numericUpDown_Bat_VoltFrac->TabIndex = 52;
  1484. this->numericUpDown_Bat_VoltFrac->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {85, 0, 0, 0});
  1485. this->numericUpDown_Bat_VoltFrac->ValueChanged += gcnew System::EventHandler(this, &BikePowerSensor::numericUpDown_Bat_VoltFrac_ValueChanged);
  1486. //
  1487. // numericUpDown_Bat_VoltInt
  1488. //
  1489. this->numericUpDown_Bat_VoltInt->Location = System::Drawing::Point(74, 37);
  1490. this->numericUpDown_Bat_VoltInt->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {14, 0, 0, 0});
  1491. this->numericUpDown_Bat_VoltInt->Name = L"numericUpDown_Bat_VoltInt";
  1492. this->numericUpDown_Bat_VoltInt->Size = System::Drawing::Size(36, 20);
  1493. this->numericUpDown_Bat_VoltInt->TabIndex = 51;
  1494. this->numericUpDown_Bat_VoltInt->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {3, 0, 0, 0});
  1495. this->numericUpDown_Bat_VoltInt->ValueChanged += gcnew System::EventHandler(this, &BikePowerSensor::numericUpDown_Bat_VoltInt_ValueChanged);
  1496. //
  1497. // label_Bat_Status
  1498. //
  1499. this->label_Bat_Status->AutoSize = true;
  1500. this->label_Bat_Status->Location = System::Drawing::Point(310, 5);
  1501. this->label_Bat_Status->Name = L"label_Bat_Status";
  1502. this->label_Bat_Status->Size = System::Drawing::Size(73, 13);
  1503. this->label_Bat_Status->TabIndex = 27;
  1504. this->label_Bat_Status->Text = L"Battery Status";
  1505. //
  1506. // listBox_Bat_Status
  1507. //
  1508. this->listBox_Bat_Status->FormattingEnabled = true;
  1509. this->listBox_Bat_Status->Items->AddRange(gcnew cli::array< System::Object^ >(6) {L"1 - New", L"2 - Good", L"3 - OK", L"4 - Low",
  1510. L"5 - Critical", L"7 - Disabled"});
  1511. this->listBox_Bat_Status->Location = System::Drawing::Point(313, 22);
  1512. this->listBox_Bat_Status->Name = L"listBox_Bat_Status";
  1513. this->listBox_Bat_Status->Size = System::Drawing::Size(72, 82);
  1514. this->listBox_Bat_Status->TabIndex = 55;
  1515. this->listBox_Bat_Status->SelectedIndexChanged += gcnew System::EventHandler(this, &BikePowerSensor::listBox_Bat_Status_SelectedIndexChanged);
  1516. //
  1517. // checkBox_Bat_Status
  1518. //
  1519. this->checkBox_Bat_Status->AutoSize = true;
  1520. this->checkBox_Bat_Status->Checked = true;
  1521. this->checkBox_Bat_Status->CheckState = System::Windows::Forms::CheckState::Checked;
  1522. this->checkBox_Bat_Status->Location = System::Drawing::Point(6, 4);
  1523. this->checkBox_Bat_Status->Name = L"checkBox_Bat_Status";
  1524. this->checkBox_Bat_Status->Size = System::Drawing::Size(156, 17);
  1525. this->checkBox_Bat_Status->TabIndex = 50;
  1526. this->checkBox_Bat_Status->Text = L"Enable Battery Status Page";
  1527. this->checkBox_Bat_Status->UseVisualStyleBackColor = true;
  1528. this->checkBox_Bat_Status->CheckedChanged += gcnew System::EventHandler(this, &BikePowerSensor::checkBox_Bat_Status_CheckedChanged);
  1529. //
  1530. // tabPage_GetSet
  1531. //
  1532. this->tabPage_GetSet->Controls->Add(this->button_UpdateGetSet);
  1533. this->tabPage_GetSet->Controls->Add(this->checkBox_InvalidCrankLength);
  1534. this->tabPage_GetSet->Controls->Add(this->label2);
  1535. this->tabPage_GetSet->Controls->Add(this->numericUpDown_CrankLength);
  1536. this->tabPage_GetSet->Controls->Add(this->groupBox3);
  1537. this->tabPage_GetSet->Controls->Add(this->groupBox2);
  1538. this->tabPage_GetSet->Controls->Add(this->groupBox1);
  1539. this->tabPage_GetSet->Controls->Add(this->checkBox_AutoCrank);
  1540. this->tabPage_GetSet->Location = System::Drawing::Point(4, 22);
  1541. this->tabPage_GetSet->Name = L"tabPage_GetSet";
  1542. this->tabPage_GetSet->Size = System::Drawing::Size(389, 111);
  1543. this->tabPage_GetSet->TabIndex = 5;
  1544. this->tabPage_GetSet->Text = L"Get/Set";
  1545. this->tabPage_GetSet->UseVisualStyleBackColor = true;
  1546. //
  1547. // button_UpdateGetSet
  1548. //
  1549. this->button_UpdateGetSet->Location = System::Drawing::Point(6, 88);
  1550. this->button_UpdateGetSet->Name = L"button_UpdateGetSet";
  1551. this->button_UpdateGetSet->Size = System::Drawing::Size(75, 20);
  1552. this->button_UpdateGetSet->TabIndex = 7;
  1553. this->button_UpdateGetSet->Text = L"Update";
  1554. this->button_UpdateGetSet->UseVisualStyleBackColor = true;
  1555. this->button_UpdateGetSet->Click += gcnew System::EventHandler(this, &BikePowerSensor::button_UpdateGetSet_Click);
  1556. //
  1557. // checkBox_InvalidCrankLength
  1558. //
  1559. this->checkBox_InvalidCrankLength->AutoSize = true;
  1560. this->checkBox_InvalidCrankLength->Location = System::Drawing::Point(6, 43);
  1561. this->checkBox_InvalidCrankLength->Name = L"checkBox_InvalidCrankLength";
  1562. this->checkBox_InvalidCrankLength->Size = System::Drawing::Size(57, 17);
  1563. this->checkBox_InvalidCrankLength->TabIndex = 6;
  1564. this->checkBox_InvalidCrankLength->Text = L"Invalid";
  1565. this->checkBox_InvalidCrankLength->UseVisualStyleBackColor = true;
  1566. this->checkBox_InvalidCrankLength->CheckedChanged += gcnew System::EventHandler(this, &BikePowerSensor::checkBox_InvalidCrankLength_CheckedChanged);
  1567. //
  1568. // label2
  1569. //
  1570. this->label2->AutoSize = true;
  1571. this->label2->Location = System::Drawing::Point(3, 4);
  1572. this->label2->Name = L"label2";
  1573. this->label2->Size = System::Drawing::Size(74, 13);
  1574. this->label2->TabIndex = 5;
  1575. this->label2->Text = L"Crank Length:";
  1576. //
  1577. // numericUpDown_CrankLength
  1578. //
  1579. this->numericUpDown_CrankLength->DecimalPlaces = 1;
  1580. this->numericUpDown_CrankLength->Increment = System::Decimal(gcnew cli::array< System::Int32 >(4) {5, 0, 0, 65536});
  1581. this->numericUpDown_CrankLength->Location = System::Drawing::Point(6, 20);
  1582. this->numericUpDown_CrankLength->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {2365, 0, 0, 65536});
  1583. this->numericUpDown_CrankLength->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1100, 0, 0, 65536});
  1584. this->numericUpDown_CrankLength->Name = L"numericUpDown_CrankLength";
  1585. this->numericUpDown_CrankLength->Size = System::Drawing::Size(68, 20);
  1586. this->numericUpDown_CrankLength->TabIndex = 4;
  1587. this->numericUpDown_CrankLength->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {1725, 0, 0, 65536});
  1588. //
  1589. // groupBox3
  1590. //
  1591. this->groupBox3->Controls->Add(this->radioButton_CrankAuto);
  1592. this->groupBox3->Controls->Add(this->radioButton_CrankDefault);
  1593. this->groupBox3->Controls->Add(this->radioButton_CrankInvalid);
  1594. this->groupBox3->Controls->Add(this->radioButton_CrankManual);
  1595. this->groupBox3->Location = System::Drawing::Point(86, 2);
  1596. this->groupBox3->Name = L"groupBox3";
  1597. this->groupBox3->Size = System::Drawing::Size(98, 106);
  1598. this->groupBox3->TabIndex = 2;
  1599. this->groupBox3->TabStop = false;
  1600. this->groupBox3->Text = L"Crank Length";
  1601. //
  1602. // radioButton_CrankAuto
  1603. //
  1604. this->radioButton_CrankAuto->AutoSize = true;
  1605. this->radioButton_CrankAuto->Location = System::Drawing::Point(6, 74);
  1606. this->radioButton_CrankAuto->Margin = System::Windows::Forms::Padding(1);
  1607. this->radioButton_CrankAuto->Name = L"radioButton_CrankAuto";
  1608. this->radioButton_CrankAuto->Size = System::Drawing::Size(69, 17);
  1609. this->radioButton_CrankAuto->TabIndex = 3;
  1610. this->radioButton_CrankAuto->Text = L"Auto. Set";
  1611. this->radioButton_CrankAuto->UseVisualStyleBackColor = true;
  1612. //
  1613. // radioButton_CrankDefault
  1614. //
  1615. this->radioButton_CrankDefault->AutoSize = true;
  1616. this->radioButton_CrankDefault->Location = System::Drawing::Point(6, 36);
  1617. this->radioButton_CrankDefault->Margin = System::Windows::Forms::Padding(1);
  1618. this->radioButton_CrankDefault->Name = L"radioButton_CrankDefault";
  1619. this->radioButton_CrankDefault->Size = System::Drawing::Size(59, 17);
  1620. this->radioButton_CrankDefault->TabIndex = 1;
  1621. this->radioButton_CrankDefault->Text = L"Default";
  1622. this->radioButton_CrankDefault->UseVisualStyleBackColor = true;
  1623. //
  1624. // radioButton_CrankInvalid
  1625. //
  1626. this->radioButton_CrankInvalid->AutoSize = true;
  1627. this->radioButton_CrankInvalid->Location = System::Drawing::Point(6, 17);
  1628. this->radioButton_CrankInvalid->Margin = System::Windows::Forms::Padding(1);
  1629. this->radioButton_CrankInvalid->Name = L"radioButton_CrankInvalid";
  1630. this->radioButton_CrankInvalid->Size = System::Drawing::Size(56, 17);
  1631. this->radioButton_CrankInvalid->TabIndex = 0;
  1632. this->radioButton_CrankInvalid->Text = L"Invalid";
  1633. this->radioButton_CrankInvalid->UseVisualStyleBackColor = true;
  1634. //
  1635. // radioButton_CrankManual
  1636. //
  1637. this->radioButton_CrankManual->AutoSize = true;
  1638. this->radioButton_CrankManual->Checked = true;
  1639. this->radioButton_CrankManual->Location = System::Drawing::Point(6, 55);
  1640. this->radioButton_CrankManual->Margin = System::Windows::Forms::Padding(1);
  1641. this->radioButton_CrankManual->Name = L"radioButton_CrankManual";
  1642. this->radioButton_CrankManual->Size = System::Drawing::Size(86, 17);
  1643. this->radioButton_CrankManual->TabIndex = 2;
  1644. this->radioButton_CrankManual->TabStop = true;
  1645. this->radioButton_CrankManual->Text = L"Manually Set";
  1646. this->radioButton_CrankManual->UseVisualStyleBackColor = true;
  1647. //
  1648. // groupBox2
  1649. //
  1650. this->groupBox2->Controls->Add(this->radioButton_MismatchLeft);
  1651. this->groupBox2->Controls->Add(this->radioButton_MismatchRight);
  1652. this->groupBox2->Controls->Add(this->radioButton_MismatchUndefined);
  1653. this->groupBox2->Controls->Add(this->radioButton_MismatchNone);
  1654. this->groupBox2->Location = System::Drawing::Point(187, 3);
  1655. this->groupBox2->Name = L"groupBox2";
  1656. this->groupBox2->Size = System::Drawing::Size(99, 105);
  1657. this->groupBox2->TabIndex = 1;
  1658. this->groupBox2->TabStop = false;
  1659. this->groupBox2->Text = L"SW Mismatch";
  1660. //
  1661. // radioButton_MismatchLeft
  1662. //
  1663. this->radioButton_MismatchLeft->AutoSize = true;
  1664. this->radioButton_MismatchLeft->Location = System::Drawing::Point(6, 55);
  1665. this->radioButton_MismatchLeft->Margin = System::Windows::Forms::Padding(1);
  1666. this->radioButton_MismatchLeft->Name = L"radioButton_MismatchLeft";
  1667. this->radioButton_MismatchLeft->Size = System::Drawing::Size(71, 17);
  1668. this->radioButton_MismatchLeft->TabIndex = 2;
  1669. this->radioButton_MismatchLeft->Text = L"Left Older";
  1670. this->radioButton_MismatchLeft->UseVisualStyleBackColor = true;
  1671. //
  1672. // radioButton_MismatchRight
  1673. //
  1674. this->radioButton_MismatchRight->AutoSize = true;
  1675. this->radioButton_MismatchRight->Location = System::Drawing::Point(6, 36);
  1676. this->radioButton_MismatchRight->Margin = System::Windows::Forms::Padding(1);
  1677. this->radioButton_MismatchRight->Name = L"radioButton_MismatchRight";
  1678. this->radioButton_MismatchRight->Size = System::Drawing::Size(78, 17);
  1679. this->radioButton_MismatchRight->TabIndex = 1;
  1680. this->radioButton_MismatchRight->Text = L"Right Older";
  1681. this->radioButton_MismatchRight->UseVisualStyleBackColor = true;
  1682. //
  1683. // radioButton_MismatchUndefined
  1684. //
  1685. this->radioButton_MismatchUndefined->AutoSize = true;
  1686. this->radioButton_MismatchUndefined->Location = System::Drawing::Point(6, 17);
  1687. this->radioButton_MismatchUndefined->Margin = System::Windows::Forms::Padding(1);
  1688. this->radioButton_MismatchUndefined->Name = L"radioButton_MismatchUndefined";
  1689. this->radioButton_MismatchUndefined->Size = System::Drawing::Size(74, 17);
  1690. this->radioButton_MismatchUndefined->TabIndex = 0;
  1691. this->radioButton_MismatchUndefined->Text = L"Undefined";
  1692. this->radioButton_MismatchUndefined->UseVisualStyleBackColor = true;
  1693. //
  1694. // radioButton_MismatchNone
  1695. //
  1696. this->radioButton_MismatchNone->AutoSize = true;
  1697. this->radioButton_MismatchNone->Checked = true;
  1698. this->radioButton_MismatchNone->Location = System::Drawing::Point(6, 74);
  1699. this->radioButton_MismatchNone->Margin = System::Windows::Forms::Padding(1);
  1700. this->radioButton_MismatchNone->Name = L"radioButton_MismatchNone";
  1701. this->radioButton_MismatchNone->Size = System::Drawing::Size(87, 17);
  1702. this->radioButton_MismatchNone->TabIndex = 3;
  1703. this->radioButton_MismatchNone->TabStop = true;
  1704. this->radioButton_MismatchNone->Text = L"No Mismatch";
  1705. this->radioButton_MismatchNone->UseVisualStyleBackColor = true;
  1706. //
  1707. // groupBox1
  1708. //
  1709. this->groupBox1->Controls->Add(this->radioButton_SensorBoth);
  1710. this->groupBox1->Controls->Add(this->radioButton_SensorLeft);
  1711. this->groupBox1->Controls->Add(this->radioButton_SensorUndefined);
  1712. this->groupBox1->Controls->Add(this->radioButton_SensorRight);
  1713. this->groupBox1->Location = System::Drawing::Point(289, 3);
  1714. this->groupBox1->Name = L"groupBox1";
  1715. this->groupBox1->Size = System::Drawing::Size(100, 105);
  1716. this->groupBox1->TabIndex = 0;
  1717. this->groupBox1->TabStop = false;
  1718. this->groupBox1->Text = L"Sensor Status";
  1719. //
  1720. // radioButton_SensorBoth
  1721. //
  1722. this->radioButton_SensorBoth->AutoSize = true;
  1723. this->radioButton_SensorBoth->Checked = true;
  1724. this->radioButton_SensorBoth->Location = System::Drawing::Point(6, 74);
  1725. this->radioButton_SensorBoth->Margin = System::Windows::Forms::Padding(1);
  1726. this->radioButton_SensorBoth->Name = L"radioButton_SensorBoth";
  1727. this->radioButton_SensorBoth->Size = System::Drawing::Size(86, 17);
  1728. this->radioButton_SensorBoth->TabIndex = 3;
  1729. this->radioButton_SensorBoth->TabStop = true;
  1730. this->radioButton_SensorBoth->Text = L"Both Present";
  1731. this->radioButton_SensorBoth->UseVisualStyleBackColor = true;
  1732. //
  1733. // radioButton_SensorLeft
  1734. //
  1735. this->radioButton_SensorLeft->AutoSize = true;
  1736. this->radioButton_SensorLeft->Location = System::Drawing::Point(6, 36);
  1737. this->radioButton_SensorLeft->Margin = System::Windows::Forms::Padding(1);
  1738. this->radioButton_SensorLeft->Name = L"radioButton_SensorLeft";
  1739. this->radioButton_SensorLeft->Size = System::Drawing::Size(82, 17);
  1740. this->radioButton_SensorLeft->TabIndex = 1;
  1741. this->radioButton_SensorLeft->Text = L"Left Present";
  1742. this->radioButton_SensorLeft->UseVisualStyleBackColor = true;
  1743. //
  1744. // radioButton_SensorUndefined
  1745. //
  1746. this->radioButton_SensorUndefined->AutoSize = true;
  1747. this->radioButton_SensorUndefined->Location = System::Drawing::Point(6, 17);
  1748. this->radioButton_SensorUndefined->Margin = System::Windows::Forms::Padding(1);
  1749. this->radioButton_SensorUndefined->Name = L"radioButton_SensorUndefined";
  1750. this->radioButton_SensorUndefined->Size = System::Drawing::Size(74, 17);
  1751. this->radioButton_SensorUndefined->TabIndex = 0;
  1752. this->radioButton_SensorUndefined->Text = L"Undefined";
  1753. this->radioButton_SensorUndefined->UseVisualStyleBackColor = true;
  1754. //
  1755. // radioButton_SensorRight
  1756. //
  1757. this->radioButton_SensorRight->AutoSize = true;
  1758. this->radioButton_SensorRight->Location = System::Drawing::Point(6, 55);
  1759. this->radioButton_SensorRight->Margin = System::Windows::Forms::Padding(1);
  1760. this->radioButton_SensorRight->Name = L"radioButton_SensorRight";
  1761. this->radioButton_SensorRight->Size = System::Drawing::Size(89, 17);
  1762. this->radioButton_SensorRight->TabIndex = 2;
  1763. this->radioButton_SensorRight->Text = L"Right Present";
  1764. this->radioButton_SensorRight->UseVisualStyleBackColor = true;
  1765. //
  1766. // checkBox_AutoCrank
  1767. //
  1768. this->checkBox_AutoCrank->Location = System::Drawing::Point(6, 58);
  1769. this->checkBox_AutoCrank->Name = L"checkBox_AutoCrank";
  1770. this->checkBox_AutoCrank->Size = System::Drawing::Size(88, 34);
  1771. this->checkBox_AutoCrank->TabIndex = 3;
  1772. this->checkBox_AutoCrank->Text = L"Auto Crank Length";
  1773. this->checkBox_AutoCrank->UseVisualStyleBackColor = true;
  1774. //
  1775. // tabControl_TEPS
  1776. //
  1777. this->tabControl_TEPS->Controls->Add(this->groupBox5);
  1778. this->tabControl_TEPS->Controls->Add(this->groupBox4);
  1779. this->tabControl_TEPS->Controls->Add(this->checkBox_Combined);
  1780. this->tabControl_TEPS->Controls->Add(this->checkBox_EnableTEPS);
  1781. this->tabControl_TEPS->Location = System::Drawing::Point(4, 22);
  1782. this->tabControl_TEPS->Name = L"tabControl_TEPS";
  1783. this->tabControl_TEPS->Padding = System::Windows::Forms::Padding(3);
  1784. this->tabControl_TEPS->Size = System::Drawing::Size(389, 111);
  1785. this->tabControl_TEPS->TabIndex = 6;
  1786. this->tabControl_TEPS->Text = L"TE&PS";
  1787. this->tabControl_TEPS->UseVisualStyleBackColor = true;
  1788. //
  1789. // groupBox5
  1790. //
  1791. this->groupBox5->Controls->Add(this->checkBox_RightPedalSmoothnessInvalid);
  1792. this->groupBox5->Controls->Add(this->numericUpDown_RightPedalSmoothness);
  1793. this->groupBox5->Controls->Add(this->label5);
  1794. this->groupBox5->Controls->Add(this->checkBox_LeftPedalSmoothnessInvalid);
  1795. this->groupBox5->Controls->Add(this->numericUpDown_LeftPedalSmoothness);
  1796. this->groupBox5->Controls->Add(this->label6);
  1797. this->groupBox5->Location = System::Drawing::Point(198, 30);
  1798. this->groupBox5->Name = L"groupBox5";
  1799. this->groupBox5->Size = System::Drawing::Size(174, 75);
  1800. this->groupBox5->TabIndex = 6;
  1801. this->groupBox5->TabStop = false;
  1802. this->groupBox5->Text = L"Pedal Smoothness (%)";
  1803. //
  1804. // checkBox_RightPedalSmoothnessInvalid
  1805. //
  1806. this->checkBox_RightPedalSmoothnessInvalid->AutoSize = true;
  1807. this->checkBox_RightPedalSmoothnessInvalid->Location = System::Drawing::Point(112, 45);
  1808. this->checkBox_RightPedalSmoothnessInvalid->Name = L"checkBox_RightPedalSmoothnessInvalid";
  1809. this->checkBox_RightPedalSmoothnessInvalid->Size = System::Drawing::Size(57, 17);
  1810. this->checkBox_RightPedalSmoothnessInvalid->TabIndex = 5;
  1811. this->checkBox_RightPedalSmoothnessInvalid->Text = L"Invalid";
  1812. this->checkBox_RightPedalSmoothnessInvalid->UseVisualStyleBackColor = true;
  1813. this->checkBox_RightPedalSmoothnessInvalid->CheckedChanged += gcnew System::EventHandler(this, &BikePowerSensor::checkBox_RightPedalSmoothnessInvalid_CheckedChanged);
  1814. //
  1815. // numericUpDown_RightPedalSmoothness
  1816. //
  1817. this->numericUpDown_RightPedalSmoothness->DecimalPlaces = 1;
  1818. this->numericUpDown_RightPedalSmoothness->Increment = System::Decimal(gcnew cli::array< System::Int32 >(4) {5, 0, 0, 65536});
  1819. this->numericUpDown_RightPedalSmoothness->Location = System::Drawing::Point(42, 44);
  1820. this->numericUpDown_RightPedalSmoothness->Name = L"numericUpDown_RightPedalSmoothness";
  1821. this->numericUpDown_RightPedalSmoothness->Size = System::Drawing::Size(64, 20);
  1822. this->numericUpDown_RightPedalSmoothness->TabIndex = 4;
  1823. this->numericUpDown_RightPedalSmoothness->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {420, 0, 0, 65536});
  1824. this->numericUpDown_RightPedalSmoothness->ValueChanged += gcnew System::EventHandler(this, &BikePowerSensor::numericUpDown_RightPedalSmoothness_ValueChanged);
  1825. //
  1826. // label5
  1827. //
  1828. this->label5->AutoSize = true;
  1829. this->label5->Location = System::Drawing::Point(8, 46);
  1830. this->label5->Name = L"label5";
  1831. this->label5->Size = System::Drawing::Size(32, 13);
  1832. this->label5->TabIndex = 3;
  1833. this->label5->Text = L"Right";
  1834. //
  1835. // checkBox_LeftPedalSmoothnessInvalid
  1836. //
  1837. this->checkBox_LeftPedalSmoothnessInvalid->AutoSize = true;
  1838. this->checkBox_LeftPedalSmoothnessInvalid->Location = System::Drawing::Point(112, 21);
  1839. this->checkBox_LeftPedalSmoothnessInvalid->Name = L"checkBox_LeftPedalSmoothnessInvalid";
  1840. this->checkBox_LeftPedalSmoothnessInvalid->Size = System::Drawing::Size(57, 17);
  1841. this->checkBox_LeftPedalSmoothnessInvalid->TabIndex = 2;
  1842. this->checkBox_LeftPedalSmoothnessInvalid->Text = L"Invalid";
  1843. this->checkBox_LeftPedalSmoothnessInvalid->UseVisualStyleBackColor = true;
  1844. this->checkBox_LeftPedalSmoothnessInvalid->CheckedChanged += gcnew System::EventHandler(this, &BikePowerSensor::checkBox_LeftPedalSmoothnessInvalid_CheckedChanged);
  1845. //
  1846. // numericUpDown_LeftPedalSmoothness
  1847. //
  1848. this->numericUpDown_LeftPedalSmoothness->DecimalPlaces = 1;
  1849. this->numericUpDown_LeftPedalSmoothness->Increment = System::Decimal(gcnew cli::array< System::Int32 >(4) {5, 0, 0, 65536});
  1850. this->numericUpDown_LeftPedalSmoothness->Location = System::Drawing::Point(42, 20);
  1851. this->numericUpDown_LeftPedalSmoothness->Name = L"numericUpDown_LeftPedalSmoothness";
  1852. this->numericUpDown_LeftPedalSmoothness->Size = System::Drawing::Size(64, 20);
  1853. this->numericUpDown_LeftPedalSmoothness->TabIndex = 1;
  1854. this->numericUpDown_LeftPedalSmoothness->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {355, 0, 0, 65536});
  1855. this->numericUpDown_LeftPedalSmoothness->ValueChanged += gcnew System::EventHandler(this, &BikePowerSensor::numericUpDown_LeftPedalSmoothness_ValueChanged);
  1856. //
  1857. // label6
  1858. //
  1859. this->label6->AutoSize = true;
  1860. this->label6->Location = System::Drawing::Point(8, 22);
  1861. this->label6->Name = L"label6";
  1862. this->label6->Size = System::Drawing::Size(28, 13);
  1863. this->label6->TabIndex = 0;
  1864. this->label6->Text = L"Left:";
  1865. //
  1866. // groupBox4
  1867. //
  1868. this->groupBox4->Controls->Add(this->checkBox_RightTorqueEffectivenessInvalid);
  1869. this->groupBox4->Controls->Add(this->numericUpDown_RightTorqueEffectiveness);
  1870. this->groupBox4->Controls->Add(this->label4);
  1871. this->groupBox4->Controls->Add(this->checkBox_LeftTorqueEffectivenessInvalid);
  1872. this->groupBox4->Controls->Add(this->numericUpDown_LeftTorqueEffectiveness);
  1873. this->groupBox4->Controls->Add(this->label3);
  1874. this->groupBox4->Location = System::Drawing::Point(7, 30);
  1875. this->groupBox4->Name = L"groupBox4";
  1876. this->groupBox4->Size = System::Drawing::Size(174, 75);
  1877. this->groupBox4->TabIndex = 3;
  1878. this->groupBox4->TabStop = false;
  1879. this->groupBox4->Text = L"Torque Effectiveness (%)";
  1880. //
  1881. // checkBox_RightTorqueEffectivenessInvalid
  1882. //
  1883. this->checkBox_RightTorqueEffectivenessInvalid->AutoSize = true;
  1884. this->checkBox_RightTorqueEffectivenessInvalid->Location = System::Drawing::Point(112, 45);
  1885. this->checkBox_RightTorqueEffectivenessInvalid->Name = L"checkBox_RightTorqueEffectivenessInvalid";
  1886. this->checkBox_RightTorqueEffectivenessInvalid->Size = System::Drawing::Size(57, 17);
  1887. this->checkBox_RightTorqueEffectivenessInvalid->TabIndex = 5;
  1888. this->checkBox_RightTorqueEffectivenessInvalid->Text = L"Invalid";
  1889. this->checkBox_RightTorqueEffectivenessInvalid->UseVisualStyleBackColor = true;
  1890. this->checkBox_RightTorqueEffectivenessInvalid->CheckedChanged += gcnew System::EventHandler(this, &BikePowerSensor::checkBox_RightTorqueEffectivenessInvalid_CheckedChanged);
  1891. //
  1892. // numericUpDown_RightTorqueEffectiveness
  1893. //
  1894. this->numericUpDown_RightTorqueEffectiveness->DecimalPlaces = 1;
  1895. this->numericUpDown_RightTorqueEffectiveness->Increment = System::Decimal(gcnew cli::array< System::Int32 >(4) {5, 0, 0,
  1896. 65536});
  1897. this->numericUpDown_RightTorqueEffectiveness->Location = System::Drawing::Point(42, 44);
  1898. this->numericUpDown_RightTorqueEffectiveness->Name = L"numericUpDown_RightTorqueEffectiveness";
  1899. this->numericUpDown_RightTorqueEffectiveness->Size = System::Drawing::Size(64, 20);
  1900. this->numericUpDown_RightTorqueEffectiveness->TabIndex = 4;
  1901. this->numericUpDown_RightTorqueEffectiveness->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {420, 0, 0, 65536});
  1902. this->numericUpDown_RightTorqueEffectiveness->ValueChanged += gcnew System::EventHandler(this, &BikePowerSensor::numericUpDown_RightTorqueEffectiveness_ValueChanged);
  1903. //
  1904. // label4
  1905. //
  1906. this->label4->AutoSize = true;
  1907. this->label4->Location = System::Drawing::Point(8, 46);
  1908. this->label4->Name = L"label4";
  1909. this->label4->Size = System::Drawing::Size(32, 13);
  1910. this->label4->TabIndex = 3;
  1911. this->label4->Text = L"Right";
  1912. //
  1913. // checkBox_LeftTorqueEffectivenessInvalid
  1914. //
  1915. this->checkBox_LeftTorqueEffectivenessInvalid->AutoSize = true;
  1916. this->checkBox_LeftTorqueEffectivenessInvalid->Location = System::Drawing::Point(112, 21);
  1917. this->checkBox_LeftTorqueEffectivenessInvalid->Name = L"checkBox_LeftTorqueEffectivenessInvalid";
  1918. this->checkBox_LeftTorqueEffectivenessInvalid->Size = System::Drawing::Size(57, 17);
  1919. this->checkBox_LeftTorqueEffectivenessInvalid->TabIndex = 2;
  1920. this->checkBox_LeftTorqueEffectivenessInvalid->Text = L"Invalid";
  1921. this->checkBox_LeftTorqueEffectivenessInvalid->UseVisualStyleBackColor = true;
  1922. this->checkBox_LeftTorqueEffectivenessInvalid->CheckedChanged += gcnew System::EventHandler(this, &BikePowerSensor::checkBox_LeftTorqueEffectivenessInvalid_CheckedChanged);
  1923. //
  1924. // numericUpDown_LeftTorqueEffectiveness
  1925. //
  1926. this->numericUpDown_LeftTorqueEffectiveness->DecimalPlaces = 1;
  1927. this->numericUpDown_LeftTorqueEffectiveness->Increment = System::Decimal(gcnew cli::array< System::Int32 >(4) {5, 0, 0, 65536});
  1928. this->numericUpDown_LeftTorqueEffectiveness->Location = System::Drawing::Point(42, 20);
  1929. this->numericUpDown_LeftTorqueEffectiveness->Name = L"numericUpDown_LeftTorqueEffectiveness";
  1930. this->numericUpDown_LeftTorqueEffectiveness->Size = System::Drawing::Size(64, 20);
  1931. this->numericUpDown_LeftTorqueEffectiveness->TabIndex = 1;
  1932. this->numericUpDown_LeftTorqueEffectiveness->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {355, 0, 0, 65536});
  1933. this->numericUpDown_LeftTorqueEffectiveness->ValueChanged += gcnew System::EventHandler(this, &BikePowerSensor::numericUpDown_LeftTorqueEffectiveness_ValueChanged);
  1934. //
  1935. // label3
  1936. //
  1937. this->label3->AutoSize = true;
  1938. this->label3->Location = System::Drawing::Point(8, 22);
  1939. this->label3->Name = L"label3";
  1940. this->label3->Size = System::Drawing::Size(28, 13);
  1941. this->label3->TabIndex = 0;
  1942. this->label3->Text = L"Left:";
  1943. //
  1944. // checkBox_Combined
  1945. //
  1946. this->checkBox_Combined->AutoSize = true;
  1947. this->checkBox_Combined->Location = System::Drawing::Point(262, 7);
  1948. this->checkBox_Combined->Name = L"checkBox_Combined";
  1949. this->checkBox_Combined->Size = System::Drawing::Size(110, 17);
  1950. this->checkBox_Combined->TabIndex = 2;
  1951. this->checkBox_Combined->Text = L"Combined System";
  1952. this->checkBox_Combined->UseVisualStyleBackColor = true;
  1953. this->checkBox_Combined->CheckedChanged += gcnew System::EventHandler(this, &BikePowerSensor::checkBox_Combined_CheckedChanged);
  1954. //
  1955. // checkBox_EnableTEPS
  1956. //
  1957. this->checkBox_EnableTEPS->AutoSize = true;
  1958. this->checkBox_EnableTEPS->Location = System::Drawing::Point(7, 7);
  1959. this->checkBox_EnableTEPS->Name = L"checkBox_EnableTEPS";
  1960. this->checkBox_EnableTEPS->Size = System::Drawing::Size(87, 17);
  1961. this->checkBox_EnableTEPS->TabIndex = 0;
  1962. this->checkBox_EnableTEPS->Text = L"Enable Page";
  1963. this->checkBox_EnableTEPS->UseVisualStyleBackColor = true;
  1964. this->checkBox_EnableTEPS->CheckedChanged += gcnew System::EventHandler(this, &BikePowerSensor::checkBox_EnableTEPS_CheckedChanged);
  1965. //
  1966. // panel_Display
  1967. //
  1968. this->panel_Display->BorderStyle = System::Windows::Forms::BorderStyle::Fixed3D;
  1969. this->panel_Display->Controls->Add(this->label_Trn_PedalDisplay);
  1970. this->panel_Display->Controls->Add(this->label_Trn_PedalPwrDisplay);
  1971. this->panel_Display->Controls->Add(this->label_Trn_PedalPwr);
  1972. this->panel_Display->Controls->Add(this->label_Trn_UpdateCountDisplay);
  1973. this->panel_Display->Controls->Add(this->label_Trn_UpdateCount);
  1974. this->panel_Display->Controls->Add(this->label_Trn_EventCount);
  1975. this->panel_Display->Controls->Add(this->label_Trn_AccumOneDisplay);
  1976. this->panel_Display->Controls->Add(this->label_Trn_AccumTwo);
  1977. this->panel_Display->Controls->Add(this->label_Trn_PowerDisplay);
  1978. this->panel_Display->Controls->Add(this->label_Trn_Power);
  1979. this->panel_Display->Controls->Add(this->label_Trn_AccumTwoDisplay);
  1980. this->panel_Display->Controls->Add(this->label_Trn_CadenceDisplay);
  1981. this->panel_Display->Controls->Add(this->label_Trn_Cadence);
  1982. this->panel_Display->Controls->Add(this->label_Trn_InstSpeedDisplay);
  1983. this->panel_Display->Controls->Add(this->label_Trn_EventCountDisplay);
  1984. this->panel_Display->Controls->Add(this->label_Trn_InstSpeed);
  1985. this->panel_Display->Controls->Add(this->label_Trn_DisplayTitle);
  1986. this->panel_Display->Controls->Add(this->label_Trn_AccumOne);
  1987. this->panel_Display->Controls->Add(this->label_Trn_AccumTitle);
  1988. this->panel_Display->Location = System::Drawing::Point(58, 188);
  1989. this->panel_Display->Name = L"panel_Display";
  1990. this->panel_Display->Size = System::Drawing::Size(242, 108);
  1991. this->panel_Display->TabIndex = 1;
  1992. //
  1993. // label_Trn_PedalDisplay
  1994. //
  1995. this->label_Trn_PedalDisplay->AutoSize = true;
  1996. this->label_Trn_PedalDisplay->Location = System::Drawing::Point(186, 88);
  1997. this->label_Trn_PedalDisplay->Name = L"label_Trn_PedalDisplay";
  1998. this->label_Trn_PedalDisplay->Size = System::Drawing::Size(16, 13);
  1999. this->label_Trn_PedalDisplay->TabIndex = 21;
  2000. this->label_Trn_PedalDisplay->Text = L"---";
  2001. //
  2002. // label_Trn_PedalPwrDisplay
  2003. //
  2004. this->label_Trn_PedalPwrDisplay->AutoSize = true;
  2005. this->label_Trn_PedalPwrDisplay->Location = System::Drawing::Point(164, 88);
  2006. this->label_Trn_PedalPwrDisplay->Name = L"label_Trn_PedalPwrDisplay";
  2007. this->label_Trn_PedalPwrDisplay->Size = System::Drawing::Size(16, 13);
  2008. this->label_Trn_PedalPwrDisplay->TabIndex = 19;
  2009. this->label_Trn_PedalPwrDisplay->Text = L"---";
  2010. //
  2011. // label_Trn_PedalPwr
  2012. //
  2013. this->label_Trn_PedalPwr->AutoSize = true;
  2014. this->label_Trn_PedalPwr->Location = System::Drawing::Point(79, 88);
  2015. this->label_Trn_PedalPwr->Name = L"label_Trn_PedalPwr";
  2016. this->label_Trn_PedalPwr->Size = System::Drawing::Size(87, 13);
  2017. this->label_Trn_PedalPwr->TabIndex = 18;
  2018. this->label_Trn_PedalPwr->Text = L"Pedal Power (%):";
  2019. //
  2020. // label_Trn_UpdateCountDisplay
  2021. //
  2022. this->label_Trn_UpdateCountDisplay->BackColor = System::Drawing::SystemColors::Control;
  2023. this->label_Trn_UpdateCountDisplay->Location = System::Drawing::Point(164, 73);
  2024. this->label_Trn_UpdateCountDisplay->Name = L"label_Trn_UpdateCountDisplay";
  2025. this->label_Trn_UpdateCountDisplay->Size = System::Drawing::Size(34, 13);
  2026. this->label_Trn_UpdateCountDisplay->TabIndex = 12;
  2027. this->label_Trn_UpdateCountDisplay->Text = L"---";
  2028. //
  2029. // label_Trn_UpdateCount
  2030. //
  2031. this->label_Trn_UpdateCount->AutoSize = true;
  2032. this->label_Trn_UpdateCount->BackColor = System::Drawing::SystemColors::Control;
  2033. this->label_Trn_UpdateCount->Location = System::Drawing::Point(115, 72);
  2034. this->label_Trn_UpdateCount->Name = L"label_Trn_UpdateCount";
  2035. this->label_Trn_UpdateCount->Size = System::Drawing::Size(50, 13);
  2036. this->label_Trn_UpdateCount->TabIndex = 11;
  2037. this->label_Trn_UpdateCount->Text = L"Updates:";
  2038. //
  2039. // label_Trn_EventCount
  2040. //
  2041. this->label_Trn_EventCount->AutoSize = true;
  2042. this->label_Trn_EventCount->BackColor = System::Drawing::SystemColors::Control;
  2043. this->label_Trn_EventCount->Location = System::Drawing::Point(122, 58);
  2044. this->label_Trn_EventCount->Name = L"label_Trn_EventCount";
  2045. this->label_Trn_EventCount->Size = System::Drawing::Size(43, 13);
  2046. this->label_Trn_EventCount->TabIndex = 0;
  2047. this->label_Trn_EventCount->Text = L"Events:";
  2048. //
  2049. // label_Trn_AccumOneDisplay
  2050. //
  2051. this->label_Trn_AccumOneDisplay->BackColor = System::Drawing::SystemColors::Control;
  2052. this->label_Trn_AccumOneDisplay->Location = System::Drawing::Point(70, 58);
  2053. this->label_Trn_AccumOneDisplay->Name = L"label_Trn_AccumOneDisplay";
  2054. this->label_Trn_AccumOneDisplay->Size = System::Drawing::Size(40, 13);
  2055. this->label_Trn_AccumOneDisplay->TabIndex = 8;
  2056. this->label_Trn_AccumOneDisplay->Text = L"---";
  2057. //
  2058. // label_Trn_AccumTwo
  2059. //
  2060. this->label_Trn_AccumTwo->AutoSize = true;
  2061. this->label_Trn_AccumTwo->BackColor = System::Drawing::SystemColors::Control;
  2062. this->label_Trn_AccumTwo->Location = System::Drawing::Point(6, 72);
  2063. this->label_Trn_AccumTwo->Name = L"label_Trn_AccumTwo";
  2064. this->label_Trn_AccumTwo->Size = System::Drawing::Size(66, 13);
  2065. this->label_Trn_AccumTwo->TabIndex = 15;
  2066. this->label_Trn_AccumTwo->Text = L"Acc.Torque:";
  2067. this->label_Trn_AccumTwo->Visible = false;
  2068. //
  2069. // label_Trn_PowerDisplay
  2070. //
  2071. this->label_Trn_PowerDisplay->BackColor = System::Drawing::SystemColors::Control;
  2072. this->label_Trn_PowerDisplay->Location = System::Drawing::Point(164, 45);
  2073. this->label_Trn_PowerDisplay->Name = L"label_Trn_PowerDisplay";
  2074. this->label_Trn_PowerDisplay->Size = System::Drawing::Size(34, 13);
  2075. this->label_Trn_PowerDisplay->TabIndex = 14;
  2076. this->label_Trn_PowerDisplay->Text = L"---";
  2077. //
  2078. // label_Trn_Power
  2079. //
  2080. this->label_Trn_Power->AutoSize = true;
  2081. this->label_Trn_Power->BackColor = System::Drawing::SystemColors::Control;
  2082. this->label_Trn_Power->Location = System::Drawing::Point(105, 45);
  2083. this->label_Trn_Power->Name = L"label_Trn_Power";
  2084. this->label_Trn_Power->Size = System::Drawing::Size(60, 13);
  2085. this->label_Trn_Power->TabIndex = 13;
  2086. this->label_Trn_Power->Text = L"Power (W):";
  2087. //
  2088. // label_Trn_AccumTwoDisplay
  2089. //
  2090. this->label_Trn_AccumTwoDisplay->BackColor = System::Drawing::SystemColors::Control;
  2091. this->label_Trn_AccumTwoDisplay->Location = System::Drawing::Point(70, 72);
  2092. this->label_Trn_AccumTwoDisplay->Name = L"label_Trn_AccumTwoDisplay";
  2093. this->label_Trn_AccumTwoDisplay->Size = System::Drawing::Size(40, 13);
  2094. this->label_Trn_AccumTwoDisplay->TabIndex = 16;
  2095. this->label_Trn_AccumTwoDisplay->Text = L"---";
  2096. this->label_Trn_AccumTwoDisplay->Visible = false;
  2097. //
  2098. // label_Trn_CadenceDisplay
  2099. //
  2100. this->label_Trn_CadenceDisplay->BackColor = System::Drawing::SystemColors::Control;
  2101. this->label_Trn_CadenceDisplay->Location = System::Drawing::Point(164, 31);
  2102. this->label_Trn_CadenceDisplay->Name = L"label_Trn_CadenceDisplay";
  2103. this->label_Trn_CadenceDisplay->Size = System::Drawing::Size(34, 13);
  2104. this->label_Trn_CadenceDisplay->TabIndex = 10;
  2105. this->label_Trn_CadenceDisplay->Text = L"---";
  2106. //
  2107. // label_Trn_Cadence
  2108. //
  2109. this->label_Trn_Cadence->AutoSize = true;
  2110. this->label_Trn_Cadence->BackColor = System::Drawing::SystemColors::Control;
  2111. this->label_Trn_Cadence->Location = System::Drawing::Point(86, 30);
  2112. this->label_Trn_Cadence->Name = L"label_Trn_Cadence";
  2113. this->label_Trn_Cadence->Size = System::Drawing::Size(79, 13);
  2114. this->label_Trn_Cadence->TabIndex = 9;
  2115. this->label_Trn_Cadence->Text = L"Cadence (rpm):";
  2116. //
  2117. // label_Trn_InstSpeedDisplay
  2118. //
  2119. this->label_Trn_InstSpeedDisplay->BackColor = System::Drawing::SystemColors::Control;
  2120. this->label_Trn_InstSpeedDisplay->Location = System::Drawing::Point(164, 17);
  2121. this->label_Trn_InstSpeedDisplay->Name = L"label_Trn_InstSpeedDisplay";
  2122. this->label_Trn_InstSpeedDisplay->Size = System::Drawing::Size(34, 13);
  2123. this->label_Trn_InstSpeedDisplay->TabIndex = 3;
  2124. this->label_Trn_InstSpeedDisplay->Text = L"---";
  2125. //
  2126. // label_Trn_EventCountDisplay
  2127. //
  2128. this->label_Trn_EventCountDisplay->BackColor = System::Drawing::SystemColors::Control;
  2129. this->label_Trn_EventCountDisplay->Location = System::Drawing::Point(164, 59);
  2130. this->label_Trn_EventCountDisplay->Name = L"label_Trn_EventCountDisplay";
  2131. this->label_Trn_EventCountDisplay->Size = System::Drawing::Size(34, 13);
  2132. this->label_Trn_EventCountDisplay->TabIndex = 2;
  2133. this->label_Trn_EventCountDisplay->Text = L"---";
  2134. //
  2135. // label_Trn_InstSpeed
  2136. //
  2137. this->label_Trn_InstSpeed->AutoSize = true;
  2138. this->label_Trn_InstSpeed->BackColor = System::Drawing::SystemColors::Control;
  2139. this->label_Trn_InstSpeed->Location = System::Drawing::Point(27, 16);
  2140. this->label_Trn_InstSpeed->Name = L"label_Trn_InstSpeed";
  2141. this->label_Trn_InstSpeed->Size = System::Drawing::Size(138, 13);
  2142. this->label_Trn_InstSpeed->TabIndex = 1;
  2143. this->label_Trn_InstSpeed->Text = L"Instantaneous Speed (kph):";
  2144. //
  2145. // label_Trn_DisplayTitle
  2146. //
  2147. this->label_Trn_DisplayTitle->AutoSize = true;
  2148. this->label_Trn_DisplayTitle->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 8.25F, System::Drawing::FontStyle::Underline,
  2149. System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(0)));
  2150. this->label_Trn_DisplayTitle->Location = System::Drawing::Point(2, 2);
  2151. this->label_Trn_DisplayTitle->Name = L"label_Trn_DisplayTitle";
  2152. this->label_Trn_DisplayTitle->Size = System::Drawing::Size(165, 13);
  2153. this->label_Trn_DisplayTitle->TabIndex = 4;
  2154. this->label_Trn_DisplayTitle->Text = L"Current Bike Power Transmission:";
  2155. //
  2156. // label_Trn_AccumOne
  2157. //
  2158. this->label_Trn_AccumOne->AutoSize = true;
  2159. this->label_Trn_AccumOne->BackColor = System::Drawing::SystemColors::Control;
  2160. this->label_Trn_AccumOne->Location = System::Drawing::Point(2, 58);
  2161. this->label_Trn_AccumOne->Name = L"label_Trn_AccumOne";
  2162. this->label_Trn_AccumOne->Size = System::Drawing::Size(62, 13);
  2163. this->label_Trn_AccumOne->TabIndex = 7;
  2164. this->label_Trn_AccumOne->Text = L"Acc.Power:";
  2165. //
  2166. // label_Trn_AccumTitle
  2167. //
  2168. this->label_Trn_AccumTitle->AutoSize = true;
  2169. this->label_Trn_AccumTitle->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 8.25F, System::Drawing::FontStyle::Italic,
  2170. System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(0)));
  2171. this->label_Trn_AccumTitle->Location = System::Drawing::Point(1, 44);
  2172. this->label_Trn_AccumTitle->Name = L"label_Trn_AccumTitle";
  2173. this->label_Trn_AccumTitle->Size = System::Drawing::Size(71, 13);
  2174. this->label_Trn_AccumTitle->TabIndex = 17;
  2175. this->label_Trn_AccumTitle->Text = L"Accumulates:";
  2176. //
  2177. // BikePowerSensor
  2178. //
  2179. this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
  2180. this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
  2181. this->ClientSize = System::Drawing::Size(794, 351);
  2182. this->Controls->Add(this->panel_Display);
  2183. this->Controls->Add(this->panel_Settings);
  2184. this->Name = L"BikePowerSensor";
  2185. this->Text = L"BikePowerSensor";
  2186. this->panel_Settings->ResumeLayout(false);
  2187. this->tabControl_Settings->ResumeLayout(false);
  2188. this->tabPage_Simulation->ResumeLayout(false);
  2189. this->tabPage_Simulation->PerformLayout();
  2190. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_PedalPwr_CurrOutput))->EndInit();
  2191. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Sim_WheelCircumference))->EndInit();
  2192. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Sim_MaxOutput))->EndInit();
  2193. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Sim_CurOutput))->EndInit();
  2194. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Sim_MinOutput))->EndInit();
  2195. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Sim_WheelGearTeeth))->EndInit();
  2196. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Sim_CrankTorque))->EndInit();
  2197. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Sim_CrankGearTeeth))->EndInit();
  2198. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Sim_WheelTorque))->EndInit();
  2199. this->tabPage_PowerPaging->ResumeLayout(false);
  2200. this->tabPage_PowerPaging->PerformLayout();
  2201. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Ppg_SlopeConstant))->EndInit();
  2202. this->groupBox_Ppg_SendPageSelect->ResumeLayout(false);
  2203. this->groupBox_Ppg_SendPageSelect->PerformLayout();
  2204. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Ppg_BasicPowerInterlvTime))->EndInit();
  2205. this->groupBox_Ppg_RaiseEventsSelect->ResumeLayout(false);
  2206. this->groupBox_Ppg_RaiseEventsSelect->PerformLayout();
  2207. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Ppg_TimerEventFreq))->EndInit();
  2208. this->tabPage_Calibration->ResumeLayout(false);
  2209. this->tabPage_Calibration->PerformLayout();
  2210. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Cal_RawTorque))->EndInit();
  2211. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Cal_OffsetTorque))->EndInit();
  2212. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Cal_CalNumber))->EndInit();
  2213. this->tabPage_GlobalData->ResumeLayout(false);
  2214. this->tabPage_GlobalData->PerformLayout();
  2215. this->tabPage_GlobalBattery->ResumeLayout(false);
  2216. this->tabPage_GlobalBattery->PerformLayout();
  2217. this->groupBox_Resol->ResumeLayout(false);
  2218. this->groupBox_Resol->PerformLayout();
  2219. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Bat_VoltFrac))->EndInit();
  2220. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Bat_VoltInt))->EndInit();
  2221. this->tabPage_GetSet->ResumeLayout(false);
  2222. this->tabPage_GetSet->PerformLayout();
  2223. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_CrankLength))->EndInit();
  2224. this->groupBox3->ResumeLayout(false);
  2225. this->groupBox3->PerformLayout();
  2226. this->groupBox2->ResumeLayout(false);
  2227. this->groupBox2->PerformLayout();
  2228. this->groupBox1->ResumeLayout(false);
  2229. this->groupBox1->PerformLayout();
  2230. this->tabControl_TEPS->ResumeLayout(false);
  2231. this->tabControl_TEPS->PerformLayout();
  2232. this->groupBox5->ResumeLayout(false);
  2233. this->groupBox5->PerformLayout();
  2234. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_RightPedalSmoothness))->EndInit();
  2235. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_LeftPedalSmoothness))->EndInit();
  2236. this->groupBox4->ResumeLayout(false);
  2237. this->groupBox4->PerformLayout();
  2238. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_RightTorqueEffectiveness))->EndInit();
  2239. (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_LeftTorqueEffectiveness))->EndInit();
  2240. this->panel_Display->ResumeLayout(false);
  2241. this->panel_Display->PerformLayout();
  2242. this->ResumeLayout(false);
  2243. }
  2244. #pragma endregion
  2245. };