コード例 #1
0
ファイル: BodyForm.cs プロジェクト: chobabo/IidaLabVy446
        private void button1_Click(object sender, EventArgs e)
        {
            this.serialConnect = new CombineBody.SerialConnect(
                this.PortTxtBox.Text,
                Convert.ToInt32(this.BaudRateTxtBox.Text),
                Convert.ToInt32(this.DataBitsTxtBox.Text)
                );

            this.BodyTimer.Interval = Convert.ToInt32(this.IntervalTxtBox.Text);
            this.BodyTimer.Enabled = true;
        }
コード例 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            this.serialConnect = new CombineBody.SerialConnect(
                this.PortTxtBox.Text,
                Convert.ToInt32(this.BaudRateTxtBox.Text),
                Convert.ToInt32(this.DataBitsTxtBox.Text)
                );

            this.BodyTimer.Interval = Convert.ToInt32(this.IntervalTxtBox.Text);
            this.BodyTimer.Enabled  = true;
        }
コード例 #3
0
        /// <summary>
        /// Connect Combine Body using RS-232C
        /// </summary>
        private void CombineBodyConnect()
        {
            if (this.BodyReadCheckBox.Checked == false)
            {
                this._bodySerialConnect = new CombineBody.SerialConnect(
                    this.BodyPortTxtBox.Text,
                    Convert.ToInt32(this.BodyBaudRateTxtBox.Text),
                    Convert.ToInt32(this.BodyDatabitsTxtBox.Text)
                    );

                if (this.BodySaveCheckBox.Checked == true)
                {
                    this._bodyFile = new CombineBody.File(
                        this.BodySaveCheckBox.Checked,
                        this.BodyReadCheckBox.Checked
                        );
                }
            }
            else
            {
                this._bodyFile = new CombineBody.File(
                    this.BodySaveCheckBox.Checked,
                    this.BodyReadCheckBox.Checked
                    );
            }

            if (this.BodyModelComboBox.SelectedIndex == 0)
            {
                this._vy50 = new CombineBody.Vy50();
            }

            if (this.BodyModelComboBox.SelectedIndex == 1)
            {
                this._vy446 = new CombineBody.Vy446();
            }

            if (this.BodyWgs84ToCartesianCheckBox.Checked == true)
            {
                this.offLineInit = false;
                this.offLineMapX = 0.0;
                this.offLineMapY = 0.0;

                this._cgps = new Cgps(5, 1);

                this._offLineGraph = new FieldMap.Graph();
                this._offLineGraph.CreateGraph(zg2);
            }
        }