コード例 #1
0
ファイル: Form1.cs プロジェクト: eivimoe/Snow_Blower
        // Set chute rotation
        private void btnRotation_Click(object sender, EventArgs e)
        {
            string tx = RXWINDOW.Text;

            I_comPort.Write("sd_" + tx);
            Reset();
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: eivimoe/Snow_Blower
        private void goForward()
        {
            string tx = txtVel.Text;

            if (tx == string.Empty)
            {
                tx = "100";
            }
            I_comPort.Write("mf_" + tx);
        }
コード例 #3
0
ファイル: Form1.cs プロジェクト: eivimoe/Snow_Blower
        private void goLeft()
        {
            string tx = txtVel.Text;

            if (tx == string.Empty)
            {
                tx = "100";
            }
            I_comPort.Write("ml_" + tx);
        }
コード例 #4
0
ファイル: Form1.cs プロジェクト: eivimoe/Snow_Blower
        private void RunSnowBlower()
        {
            string tx = RXWINDOW.Text;

            if (tx == string.Empty)
            {
                tx = "100";
            }
            I_comPort.Write("sr_" + tx);
            Reset();
        }
コード例 #5
0
ファイル: Form1.cs プロジェクト: eivimoe/Snow_Blower
 private void StopSnowBlower()
 {
     I_comPort.Write("ss_");
     Reset();
 }
コード例 #6
0
ファイル: Form1.cs プロジェクト: eivimoe/Snow_Blower
 private void btnStopBrush_Click(object sender, EventArgs e)
 {
     I_comPort.Write("bs_");
     Reset();
 }
コード例 #7
0
ファイル: Form1.cs プロジェクト: eivimoe/Snow_Blower
 // Reset snowblower
 private void btnReset_Click(object sender, EventArgs e)
 {
     Reset();
     I_comPort.Write("sR_");
 }
コード例 #8
0
ファイル: Form1.cs プロジェクト: eivimoe/Snow_Blower
 private void FullStop()
 {
     I_comPort.Write("ms_");
     Reset();
 }