123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542 |
- /*
- This software is subject to the license described in the License.txt file
- included with this software distribution. You may not use this file except in compliance
- with this license.
- Copyright (c) Dynastream Innovations Inc. 2012
- All rights reserved.
- */
- #pragma once
- #include "StdAfx.h"
- #include "ISimBase.h"
- #include "bs.h"
- #include "types.h"
- #include "antdefines.h"
- using namespace System;
- using namespace System::ComponentModel;
- using namespace System::Collections;
- using namespace System::Windows::Forms;
- using namespace System::Data;
- using namespace System::Drawing;
- public ref class BikeSpeedDisplay : public System::Windows::Forms::Form, public ISimBase{
- public:
- BikeSpeedDisplay(){
- InitializeComponent();
- InitializeSim();
- }
- ~BikeSpeedDisplay(){
- this->panel_Display->Controls->Clear();
- this->panel_Settings->Controls->Clear();
- delete this->panel_Display;
- delete this->panel_Settings;
- //clean up floating resources with the garbage collector
- GC::Collect(2);
- //Deletion of designer component
- if (components)
- {
- delete components;
- }
- }
- public:
- virtual void ANT_eventNotification(UCHAR ucEventCode_, UCHAR* pucEventBuffer_);
- virtual UCHAR getDeviceType(){return BS_DEVICE_TYPE;}
- virtual UCHAR getTransmissionType(){return 0;} // Set to 0 for a pairing search and future compatibility
- virtual USHORT getTransmitPeriod(){return BS_MSG_PERIOD;}
- virtual DOUBLE getTimerInterval(){return 3600000;} // Set interval to one hour, so timer events are not frequent (timer should be disabled tho)
- virtual void onTimerTock(USHORT eventTime){} // Do nothing
- virtual System::Windows::Forms::Panel^ getSimSettingsPanel(){return this->panel_Settings;}
- virtual System::Windows::Forms::Panel^ getSimTranslatedDisplay(){return this->panel_Display;}
- private:
- void InitializeSim();
- void HandleReceive(UCHAR* pucRxBuffer_);
- void UpdateDisplay(UCHAR ucPageNum_);
- System::Void numericUpDown_Sim_WheelCircumference_ValueChanged(System::Object^ sender, System::EventArgs^ e);
-
- private:
- // Implementation specific constants
- static const UCHAR MAX_NO_EVENTS = 12; // Maximum number of messages with no new events to detect stopping
- // Simulator variables
- UCHAR ucStatePage; // Track if advanced data is supported
- UCHAR ucWheelCircumference; // Wheel circumference (in cm)
- USHORT usEventCount; // Bike speed event count (wheel revolutions)
- USHORT usPreviousEventCount; // Previous bike speed event count (wheel revolutions)
- USHORT usTime1024; // Time of last bike cadence event (1/1024 seconds)
- USHORT usPreviousTime1024; // Time of previous bike cadence event (1/1024 seconds)
- ULONG ulElapsedTime2; // Cumulative operating time (elapsed time since battery insertion) in 2 second resolution
- BOOL bStop; // Stopping flag
- //// Calculated data
- ULONG ulAcumEventCount; // Cumulative bike speed event count (wheel revolutions)
- ULONG ulAcumTime1024; // Cumulative time (1/1024 seconds), conversion to s is performed for data display
- ULONG ulSpeed; // Calculated instantaneous speed (cm/s)
- ULONG ulDistance; // Cumulative distance (cm)
- //// Common Pages
- UCHAR ucMfgID; // Manufacturing ID
- UCHAR ucHwVersion; // Hardware version
- UCHAR ucSwVersion; // Software version
- UCHAR ucModelNum; // Model number
- USHORT usSerialNum; // Serial number
- private: System::Windows::Forms::Panel^ panel_Display;
- private: System::Windows::Forms::Label^ label_Trn_EventCountDisplay;
- private: System::Windows::Forms::Label^ label_Trn_EventCount;
- private: System::Windows::Forms::Label^ label_Trn_TimeDisplay;
- private: System::Windows::Forms::Label^ label_Trn_Time;
- private: System::Windows::Forms::Label^ label_Trn_TranslatedDisplayLabel;
- private: System::Windows::Forms::Panel^ panel_Settings;
- private: System::Windows::Forms::GroupBox^ groupBox2;
- private: System::Windows::Forms::Label^ label_Glb_BattTimeDisplay;
- private: System::Windows::Forms::Label^ label_Glb_BattTime;
- private: System::Windows::Forms::Label^ label_Glb_ModelNum;
- private: System::Windows::Forms::Label^ label_Glb_SoftwareVer;
- private: System::Windows::Forms::Label^ label_Glb_ModelNumDisplay;
- private: System::Windows::Forms::Label^ label_Glb_ManfIDDisplay;
- private: System::Windows::Forms::Label^ label_Glb_SerialNumDisplay;
- private: System::Windows::Forms::Label^ label_Glb_HardwareVerDisplay;
- private: System::Windows::Forms::Label^ label_Glb_HardwareVer;
- private: System::Windows::Forms::Label^ label_Glb_SerialNum;
- private: System::Windows::Forms::Label^ label_Glb_SoftwareVerDisplay;
- private: System::Windows::Forms::Label^ label_Glb_ManfID;
- private: System::Windows::Forms::GroupBox^ groupBox_CalculatedData;
- private: System::Windows::Forms::Label^ label_Calc_waitToggle;
- private: System::Windows::Forms::Label^ label_Calc_Speed;
- private: System::Windows::Forms::Label^ label_Calc_SpeedDisplay;
- private: System::Windows::Forms::Label^ label_Calc_TotEventCountDisplay;
- private: System::Windows::Forms::Label^ label_Calc_TotEventCount;
- private: System::Windows::Forms::Label^ label_Calc_ElapsedSecsDisplay;
- private: System::Windows::Forms::Label^ label_Calc_ElpTime;
- private: System::Windows::Forms::NumericUpDown^ numericUpDown_Sim_WheelCircumference;
- private: System::Windows::Forms::Label^ label_Sim_WheelCircumferenceConst;
- private: System::Windows::Forms::Label^ label_Distance;
- private: System::Windows::Forms::Label^ label_Calc_DistanceDisplay;
- private: System::Windows::Forms::Label^ label_Stopped;
- private:
- /// <summary>
- /// Required designer variable.
- /// </summary>
- System::ComponentModel::Container ^components;
- #pragma region Windows Form Designer generated code
- /// <summary>
- /// Required method for Designer support - do not modify
- /// the contents of this method with the code editor.
- /// </summary>
- void InitializeComponent(void)
- {
- this->panel_Display = (gcnew System::Windows::Forms::Panel());
- this->label_Trn_EventCountDisplay = (gcnew System::Windows::Forms::Label());
- this->label_Trn_EventCount = (gcnew System::Windows::Forms::Label());
- this->label_Trn_TimeDisplay = (gcnew System::Windows::Forms::Label());
- this->label_Trn_Time = (gcnew System::Windows::Forms::Label());
- this->label_Trn_TranslatedDisplayLabel = (gcnew System::Windows::Forms::Label());
- this->panel_Settings = (gcnew System::Windows::Forms::Panel());
- this->numericUpDown_Sim_WheelCircumference = (gcnew System::Windows::Forms::NumericUpDown());
- this->groupBox2 = (gcnew System::Windows::Forms::GroupBox());
- this->label_Glb_BattTimeDisplay = (gcnew System::Windows::Forms::Label());
- this->label_Glb_BattTime = (gcnew System::Windows::Forms::Label());
- this->label_Glb_ModelNum = (gcnew System::Windows::Forms::Label());
- this->label_Glb_SoftwareVer = (gcnew System::Windows::Forms::Label());
- this->label_Glb_ModelNumDisplay = (gcnew System::Windows::Forms::Label());
- this->label_Glb_ManfIDDisplay = (gcnew System::Windows::Forms::Label());
- this->label_Glb_SerialNumDisplay = (gcnew System::Windows::Forms::Label());
- this->label_Glb_HardwareVerDisplay = (gcnew System::Windows::Forms::Label());
- this->label_Glb_HardwareVer = (gcnew System::Windows::Forms::Label());
- this->label_Glb_SerialNum = (gcnew System::Windows::Forms::Label());
- this->label_Glb_SoftwareVerDisplay = (gcnew System::Windows::Forms::Label());
- this->label_Glb_ManfID = (gcnew System::Windows::Forms::Label());
- this->groupBox_CalculatedData = (gcnew System::Windows::Forms::GroupBox());
- this->label_Distance = (gcnew System::Windows::Forms::Label());
- this->label_Calc_DistanceDisplay = (gcnew System::Windows::Forms::Label());
- this->label_Calc_waitToggle = (gcnew System::Windows::Forms::Label());
- this->label_Calc_Speed = (gcnew System::Windows::Forms::Label());
- this->label_Calc_SpeedDisplay = (gcnew System::Windows::Forms::Label());
- this->label_Calc_TotEventCountDisplay = (gcnew System::Windows::Forms::Label());
- this->label_Calc_TotEventCount = (gcnew System::Windows::Forms::Label());
- this->label_Calc_ElapsedSecsDisplay = (gcnew System::Windows::Forms::Label());
- this->label_Calc_ElpTime = (gcnew System::Windows::Forms::Label());
- this->label_Sim_WheelCircumferenceConst = (gcnew System::Windows::Forms::Label());
- this->label_Stopped = (gcnew System::Windows::Forms::Label());
- this->panel_Display->SuspendLayout();
- this->panel_Settings->SuspendLayout();
- (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Sim_WheelCircumference))->BeginInit();
- this->groupBox2->SuspendLayout();
- this->groupBox_CalculatedData->SuspendLayout();
- this->SuspendLayout();
- //
- // panel_Display
- //
- this->panel_Display->BorderStyle = System::Windows::Forms::BorderStyle::Fixed3D;
- this->panel_Display->Controls->Add(this->label_Trn_EventCountDisplay);
- this->panel_Display->Controls->Add(this->label_Trn_EventCount);
- this->panel_Display->Controls->Add(this->label_Trn_TimeDisplay);
- this->panel_Display->Controls->Add(this->label_Trn_Time);
- this->panel_Display->Controls->Add(this->label_Trn_TranslatedDisplayLabel);
- this->panel_Display->Location = System::Drawing::Point(65, 199);
- this->panel_Display->Name = L"panel_Display";
- this->panel_Display->Size = System::Drawing::Size(200, 90);
- this->panel_Display->TabIndex = 3;
- //
- // label_Trn_EventCountDisplay
- //
- this->label_Trn_EventCountDisplay->AutoSize = true;
- this->label_Trn_EventCountDisplay->Location = System::Drawing::Point(141, 35);
- this->label_Trn_EventCountDisplay->Name = L"label_Trn_EventCountDisplay";
- this->label_Trn_EventCountDisplay->Size = System::Drawing::Size(16, 13);
- this->label_Trn_EventCountDisplay->TabIndex = 8;
- this->label_Trn_EventCountDisplay->Text = L"---";
- this->label_Trn_EventCountDisplay->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
- //
- // label_Trn_EventCount
- //
- this->label_Trn_EventCount->AutoSize = true;
- this->label_Trn_EventCount->Location = System::Drawing::Point(66, 35);
- this->label_Trn_EventCount->Name = L"label_Trn_EventCount";
- this->label_Trn_EventCount->Size = System::Drawing::Size(69, 13);
- this->label_Trn_EventCount->TabIndex = 7;
- this->label_Trn_EventCount->Text = L"Event Count:";
- this->label_Trn_EventCount->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
- //
- // label_Trn_TimeDisplay
- //
- this->label_Trn_TimeDisplay->AutoSize = true;
- this->label_Trn_TimeDisplay->Location = System::Drawing::Point(141, 57);
- this->label_Trn_TimeDisplay->Name = L"label_Trn_TimeDisplay";
- this->label_Trn_TimeDisplay->Size = System::Drawing::Size(16, 13);
- this->label_Trn_TimeDisplay->TabIndex = 6;
- this->label_Trn_TimeDisplay->Text = L"---";
- this->label_Trn_TimeDisplay->TextAlign = System::Drawing::ContentAlignment::MiddleLeft;
- //
- // label_Trn_Time
- //
- this->label_Trn_Time->AutoSize = true;
- this->label_Trn_Time->Location = System::Drawing::Point(22, 57);
- this->label_Trn_Time->Name = L"label_Trn_Time";
- this->label_Trn_Time->Size = System::Drawing::Size(113, 13);
- this->label_Trn_Time->TabIndex = 5;
- this->label_Trn_Time->Text = L"Event Time (1/1024s):";
- this->label_Trn_Time->TextAlign = System::Drawing::ContentAlignment::MiddleRight;
- //
- // label_Trn_TranslatedDisplayLabel
- //
- this->label_Trn_TranslatedDisplayLabel->AutoSize = true;
- this->label_Trn_TranslatedDisplayLabel->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 8.25F, System::Drawing::FontStyle::Underline,
- System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(0)));
- this->label_Trn_TranslatedDisplayLabel->Location = System::Drawing::Point(2, 2);
- this->label_Trn_TranslatedDisplayLabel->Name = L"label_Trn_TranslatedDisplayLabel";
- this->label_Trn_TranslatedDisplayLabel->Size = System::Drawing::Size(169, 13);
- this->label_Trn_TranslatedDisplayLabel->TabIndex = 4;
- this->label_Trn_TranslatedDisplayLabel->Text = L"Current Bike Speed Transmission :";
- //
- // panel_Settings
- //
- this->panel_Settings->Controls->Add(this->numericUpDown_Sim_WheelCircumference);
- this->panel_Settings->Controls->Add(this->groupBox2);
- this->panel_Settings->Controls->Add(this->groupBox_CalculatedData);
- this->panel_Settings->Controls->Add(this->label_Sim_WheelCircumferenceConst);
- this->panel_Settings->Location = System::Drawing::Point(329, 61);
- this->panel_Settings->Name = L"panel_Settings";
- this->panel_Settings->Size = System::Drawing::Size(400, 140);
- this->panel_Settings->TabIndex = 2;
- //
- // numericUpDown_Sim_WheelCircumference
- //
- this->numericUpDown_Sim_WheelCircumference->Increment = System::Decimal(gcnew cli::array< System::Int32 >(4) {5, 0, 0, 0});
- this->numericUpDown_Sim_WheelCircumference->Location = System::Drawing::Point(151, 110);
- this->numericUpDown_Sim_WheelCircumference->Maximum = System::Decimal(gcnew cli::array< System::Int32 >(4) {255, 0, 0, 0});
- this->numericUpDown_Sim_WheelCircumference->Minimum = System::Decimal(gcnew cli::array< System::Int32 >(4) {1, 0, 0, 0});
- this->numericUpDown_Sim_WheelCircumference->Name = L"numericUpDown_Sim_WheelCircumference";
- this->numericUpDown_Sim_WheelCircumference->Size = System::Drawing::Size(47, 20);
- this->numericUpDown_Sim_WheelCircumference->TabIndex = 54;
- this->numericUpDown_Sim_WheelCircumference->Value = System::Decimal(gcnew cli::array< System::Int32 >(4) {207, 0, 0, 0});
- this->numericUpDown_Sim_WheelCircumference->ValueChanged += gcnew System::EventHandler(this, &BikeSpeedDisplay::numericUpDown_Sim_WheelCircumference_ValueChanged);
- //
- // groupBox2
- //
- this->groupBox2->Controls->Add(this->label_Glb_BattTimeDisplay);
- this->groupBox2->Controls->Add(this->label_Glb_BattTime);
- this->groupBox2->Controls->Add(this->label_Glb_ModelNum);
- this->groupBox2->Controls->Add(this->label_Glb_SoftwareVer);
- this->groupBox2->Controls->Add(this->label_Glb_ModelNumDisplay);
- this->groupBox2->Controls->Add(this->label_Glb_ManfIDDisplay);
- this->groupBox2->Controls->Add(this->label_Glb_SerialNumDisplay);
- this->groupBox2->Controls->Add(this->label_Glb_HardwareVerDisplay);
- this->groupBox2->Controls->Add(this->label_Glb_HardwareVer);
- this->groupBox2->Controls->Add(this->label_Glb_SerialNum);
- this->groupBox2->Controls->Add(this->label_Glb_SoftwareVerDisplay);
- this->groupBox2->Controls->Add(this->label_Glb_ManfID);
- this->groupBox2->Location = System::Drawing::Point(241, 3);
- this->groupBox2->Name = L"groupBox2";
- this->groupBox2->Size = System::Drawing::Size(156, 130);
- this->groupBox2->TabIndex = 18;
- this->groupBox2->TabStop = false;
- this->groupBox2->Text = L"Global Data";
- //
- // label_Glb_BattTimeDisplay
- //
- this->label_Glb_BattTimeDisplay->AutoSize = true;
- this->label_Glb_BattTimeDisplay->Location = System::Drawing::Point(78, 109);
- this->label_Glb_BattTimeDisplay->Name = L"label_Glb_BattTimeDisplay";
- this->label_Glb_BattTimeDisplay->Size = System::Drawing::Size(16, 13);
- this->label_Glb_BattTimeDisplay->TabIndex = 18;
- this->label_Glb_BattTimeDisplay->Text = L"---";
- //
- // label_Glb_BattTime
- //
- this->label_Glb_BattTime->AutoSize = true;
- this->label_Glb_BattTime->Location = System::Drawing::Point(11, 109);
- this->label_Glb_BattTime->Name = L"label_Glb_BattTime";
- this->label_Glb_BattTime->Size = System::Drawing::Size(69, 13);
- this->label_Glb_BattTime->TabIndex = 17;
- this->label_Glb_BattTime->Text = L"Battery Time:";
- //
- // label_Glb_ModelNum
- //
- this->label_Glb_ModelNum->AutoSize = true;
- this->label_Glb_ModelNum->Location = System::Drawing::Point(31, 55);
- this->label_Glb_ModelNum->Name = L"label_Glb_ModelNum";
- this->label_Glb_ModelNum->Size = System::Drawing::Size(49, 13);
- this->label_Glb_ModelNum->TabIndex = 5;
- this->label_Glb_ModelNum->Text = L"Model #:";
- //
- // label_Glb_SoftwareVer
- //
- this->label_Glb_SoftwareVer->AutoSize = true;
- this->label_Glb_SoftwareVer->Location = System::Drawing::Point(9, 91);
- this->label_Glb_SoftwareVer->Name = L"label_Glb_SoftwareVer";
- this->label_Glb_SoftwareVer->Size = System::Drawing::Size(71, 13);
- this->label_Glb_SoftwareVer->TabIndex = 4;
- this->label_Glb_SoftwareVer->Text = L"Software Ver:";
- //
- // label_Glb_ModelNumDisplay
- //
- this->label_Glb_ModelNumDisplay->AutoSize = true;
- this->label_Glb_ModelNumDisplay->Location = System::Drawing::Point(78, 55);
- this->label_Glb_ModelNumDisplay->Name = L"label_Glb_ModelNumDisplay";
- this->label_Glb_ModelNumDisplay->Size = System::Drawing::Size(16, 13);
- this->label_Glb_ModelNumDisplay->TabIndex = 9;
- this->label_Glb_ModelNumDisplay->Text = L"---";
- //
- // label_Glb_ManfIDDisplay
- //
- this->label_Glb_ManfIDDisplay->AutoSize = true;
- this->label_Glb_ManfIDDisplay->Location = System::Drawing::Point(78, 38);
- this->label_Glb_ManfIDDisplay->Name = L"label_Glb_ManfIDDisplay";
- this->label_Glb_ManfIDDisplay->Size = System::Drawing::Size(16, 13);
- this->label_Glb_ManfIDDisplay->TabIndex = 8;
- this->label_Glb_ManfIDDisplay->Text = L"---";
- //
- // label_Glb_SerialNumDisplay
- //
- this->label_Glb_SerialNumDisplay->AutoSize = true;
- this->label_Glb_SerialNumDisplay->Location = System::Drawing::Point(78, 19);
- this->label_Glb_SerialNumDisplay->Name = L"label_Glb_SerialNumDisplay";
- this->label_Glb_SerialNumDisplay->Size = System::Drawing::Size(16, 13);
- this->label_Glb_SerialNumDisplay->TabIndex = 11;
- this->label_Glb_SerialNumDisplay->Text = L"---";
- //
- // label_Glb_HardwareVerDisplay
- //
- this->label_Glb_HardwareVerDisplay->AutoSize = true;
- this->label_Glb_HardwareVerDisplay->Location = System::Drawing::Point(78, 73);
- this->label_Glb_HardwareVerDisplay->Name = L"label_Glb_HardwareVerDisplay";
- this->label_Glb_HardwareVerDisplay->Size = System::Drawing::Size(16, 13);
- this->label_Glb_HardwareVerDisplay->TabIndex = 14;
- this->label_Glb_HardwareVerDisplay->Text = L"---";
- //
- // label_Glb_HardwareVer
- //
- this->label_Glb_HardwareVer->AutoSize = true;
- this->label_Glb_HardwareVer->Location = System::Drawing::Point(5, 73);
- this->label_Glb_HardwareVer->Name = L"label_Glb_HardwareVer";
- this->label_Glb_HardwareVer->Size = System::Drawing::Size(75, 13);
- this->label_Glb_HardwareVer->TabIndex = 3;
- this->label_Glb_HardwareVer->Text = L"Hardware Ver:";
- //
- // label_Glb_SerialNum
- //
- this->label_Glb_SerialNum->AutoSize = true;
- this->label_Glb_SerialNum->Location = System::Drawing::Point(34, 19);
- this->label_Glb_SerialNum->Name = L"label_Glb_SerialNum";
- this->label_Glb_SerialNum->Size = System::Drawing::Size(46, 13);
- this->label_Glb_SerialNum->TabIndex = 2;
- this->label_Glb_SerialNum->Text = L"Serial #:";
- //
- // label_Glb_SoftwareVerDisplay
- //
- this->label_Glb_SoftwareVerDisplay->AutoSize = true;
- this->label_Glb_SoftwareVerDisplay->Location = System::Drawing::Point(78, 91);
- this->label_Glb_SoftwareVerDisplay->Name = L"label_Glb_SoftwareVerDisplay";
- this->label_Glb_SoftwareVerDisplay->Size = System::Drawing::Size(16, 13);
- this->label_Glb_SoftwareVerDisplay->TabIndex = 16;
- this->label_Glb_SoftwareVerDisplay->Text = L"---";
- //
- // label_Glb_ManfID
- //
- this->label_Glb_ManfID->AutoSize = true;
- this->label_Glb_ManfID->Location = System::Drawing::Point(29, 37);
- this->label_Glb_ManfID->Name = L"label_Glb_ManfID";
- this->label_Glb_ManfID->Size = System::Drawing::Size(51, 13);
- this->label_Glb_ManfID->TabIndex = 1;
- this->label_Glb_ManfID->Text = L"Manf. ID:";
- //
- // groupBox_CalculatedData
- //
- this->groupBox_CalculatedData->Controls->Add(this->label_Stopped);
- this->groupBox_CalculatedData->Controls->Add(this->label_Distance);
- this->groupBox_CalculatedData->Controls->Add(this->label_Calc_DistanceDisplay);
- this->groupBox_CalculatedData->Controls->Add(this->label_Calc_waitToggle);
- this->groupBox_CalculatedData->Controls->Add(this->label_Calc_Speed);
- this->groupBox_CalculatedData->Controls->Add(this->label_Calc_SpeedDisplay);
- this->groupBox_CalculatedData->Controls->Add(this->label_Calc_TotEventCountDisplay);
- this->groupBox_CalculatedData->Controls->Add(this->label_Calc_TotEventCount);
- this->groupBox_CalculatedData->Controls->Add(this->label_Calc_ElapsedSecsDisplay);
- this->groupBox_CalculatedData->Controls->Add(this->label_Calc_ElpTime);
- this->groupBox_CalculatedData->Location = System::Drawing::Point(3, 3);
- this->groupBox_CalculatedData->Name = L"groupBox_CalculatedData";
- this->groupBox_CalculatedData->Size = System::Drawing::Size(232, 101);
- this->groupBox_CalculatedData->TabIndex = 17;
- this->groupBox_CalculatedData->TabStop = false;
- this->groupBox_CalculatedData->Text = L"Calculated Data";
- //
- // label_Distance
- //
- this->label_Distance->AutoSize = true;
- this->label_Distance->Location = System::Drawing::Point(114, 37);
- this->label_Distance->Name = L"label_Distance";
- this->label_Distance->Size = System::Drawing::Size(72, 13);
- this->label_Distance->TabIndex = 9;
- this->label_Distance->Text = L"Distance(km):";
- //
- // label_Calc_DistanceDisplay
- //
- this->label_Calc_DistanceDisplay->AutoSize = true;
- this->label_Calc_DistanceDisplay->Location = System::Drawing::Point(188, 37);
- this->label_Calc_DistanceDisplay->Name = L"label_Calc_DistanceDisplay";
- this->label_Calc_DistanceDisplay->Size = System::Drawing::Size(16, 13);
- this->label_Calc_DistanceDisplay->TabIndex = 10;
- this->label_Calc_DistanceDisplay->Text = L"---";
- //
- // label_Calc_waitToggle
- //
- this->label_Calc_waitToggle->AutoSize = true;
- this->label_Calc_waitToggle->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 8.25F, System::Drawing::FontStyle::Italic,
- System::Drawing::GraphicsUnit::Point, static_cast<System::Byte>(0)));
- this->label_Calc_waitToggle->Location = System::Drawing::Point(27, 16);
- this->label_Calc_waitToggle->Name = L"label_Calc_waitToggle";
- this->label_Calc_waitToggle->Size = System::Drawing::Size(177, 13);
- this->label_Calc_waitToggle->TabIndex = 8;
- this->label_Calc_waitToggle->Text = L"Waiting for page toggle to change...";
- //
- // label_Calc_Speed
- //
- this->label_Calc_Speed->AutoSize = true;
- this->label_Calc_Speed->Location = System::Drawing::Point(2, 37);
- this->label_Calc_Speed->Name = L"label_Calc_Speed";
- this->label_Calc_Speed->Size = System::Drawing::Size(68, 13);
- this->label_Calc_Speed->TabIndex = 1;
- this->label_Calc_Speed->Text = L"Speed (kph):";
- //
- // label_Calc_SpeedDisplay
- //
- this->label_Calc_SpeedDisplay->AutoSize = true;
- this->label_Calc_SpeedDisplay->Location = System::Drawing::Point(76, 37);
- this->label_Calc_SpeedDisplay->Name = L"label_Calc_SpeedDisplay";
- this->label_Calc_SpeedDisplay->Size = System::Drawing::Size(16, 13);
- this->label_Calc_SpeedDisplay->TabIndex = 3;
- this->label_Calc_SpeedDisplay->Text = L"---";
- //
- // label_Calc_TotEventCountDisplay
- //
- this->label_Calc_TotEventCountDisplay->AutoSize = true;
- this->label_Calc_TotEventCountDisplay->Location = System::Drawing::Point(122, 57);
- this->label_Calc_TotEventCountDisplay->Name = L"label_Calc_TotEventCountDisplay";
- this->label_Calc_TotEventCountDisplay->Size = System::Drawing::Size(16, 13);
- this->label_Calc_TotEventCountDisplay->TabIndex = 2;
- this->label_Calc_TotEventCountDisplay->Text = L"---";
- //
- // label_Calc_TotEventCount
- //
- this->label_Calc_TotEventCount->AutoSize = true;
- this->label_Calc_TotEventCount->Location = System::Drawing::Point(20, 57);
- this->label_Calc_TotEventCount->Name = L"label_Calc_TotEventCount";
- this->label_Calc_TotEventCount->Size = System::Drawing::Size(96, 13);
- this->label_Calc_TotEventCount->TabIndex = 0;
- this->label_Calc_TotEventCount->Text = L"Total Event Count:";
- //
- // label_Calc_ElapsedSecsDisplay
- //
- this->label_Calc_ElapsedSecsDisplay->AutoSize = true;
- this->label_Calc_ElapsedSecsDisplay->Location = System::Drawing::Point(122, 79);
- this->label_Calc_ElapsedSecsDisplay->Name = L"label_Calc_ElapsedSecsDisplay";
- this->label_Calc_ElapsedSecsDisplay->Size = System::Drawing::Size(16, 13);
- this->label_Calc_ElapsedSecsDisplay->TabIndex = 7;
- this->label_Calc_ElapsedSecsDisplay->Text = L"---";
- //
- // label_Calc_ElpTime
- //
- this->label_Calc_ElpTime->AutoSize = true;
- this->label_Calc_ElpTime->Location = System::Drawing::Point(1, 79);
- this->label_Calc_ElpTime->Name = L"label_Calc_ElpTime";
- this->label_Calc_ElpTime->Size = System::Drawing::Size(115, 13);
- this->label_Calc_ElpTime->TabIndex = 0;
- this->label_Calc_ElpTime->Text = L"Total Elapsed Time (s):";
- //
- // label_Sim_WheelCircumferenceConst
- //
- this->label_Sim_WheelCircumferenceConst->AutoSize = true;
- this->label_Sim_WheelCircumferenceConst->Location = System::Drawing::Point(16, 112);
- this->label_Sim_WheelCircumferenceConst->Name = L"label_Sim_WheelCircumferenceConst";
- this->label_Sim_WheelCircumferenceConst->Size = System::Drawing::Size(132, 13);
- this->label_Sim_WheelCircumferenceConst->TabIndex = 55;
- this->label_Sim_WheelCircumferenceConst->Text = L"Wheel Circumference (cm)";
- //
- // label_Stopped
- //
- this->label_Stopped->AutoSize = true;
- this->label_Stopped->Font = (gcnew System::Drawing::Font(L"Microsoft Sans Serif", 8.25F, System::Drawing::FontStyle::Bold, System::Drawing::GraphicsUnit::Point,
- static_cast<System::Byte>(0)));
- this->label_Stopped->ForeColor = System::Drawing::Color::Red;
- this->label_Stopped->Location = System::Drawing::Point(163, 66);
- this->label_Stopped->Name = L"label_Stopped";
- this->label_Stopped->Size = System::Drawing::Size(54, 13);
- this->label_Stopped->TabIndex = 21;
- this->label_Stopped->Text = L"Stopped";
- //
- // BikeSpeedDisplay
- //
- this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
- this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
- this->ClientSize = System::Drawing::Size(794, 351);
- this->Controls->Add(this->panel_Display);
- this->Controls->Add(this->panel_Settings);
- this->Name = L"BikeSpeedDisplay";
- this->Text = L"BikeSpeedDisplay";
- this->panel_Display->ResumeLayout(false);
- this->panel_Display->PerformLayout();
- this->panel_Settings->ResumeLayout(false);
- this->panel_Settings->PerformLayout();
- (cli::safe_cast<System::ComponentModel::ISupportInitialize^ >(this->numericUpDown_Sim_WheelCircumference))->EndInit();
- this->groupBox2->ResumeLayout(false);
- this->groupBox2->PerformLayout();
- this->groupBox_CalculatedData->ResumeLayout(false);
- this->groupBox_CalculatedData->PerformLayout();
- this->ResumeLayout(false);
- }
- #pragma endregion
- };
|