예제 #1
0
        // Set chute rotation
        private void btnRotation_Click(object sender, EventArgs e)
        {
            string tx = RXWINDOW.Text;

            I_comPort.Write("sd_" + tx);
            Reset();
        }
예제 #2
0
        private void goForward()
        {
            string tx = txtVel.Text;

            if (tx == string.Empty)
            {
                tx = "100";
            }
            I_comPort.Write("mf_" + tx);
        }
예제 #3
0
        private void goLeft()
        {
            string tx = txtVel.Text;

            if (tx == string.Empty)
            {
                tx = "100";
            }
            I_comPort.Write("ml_" + tx);
        }
예제 #4
0
        private void RunSnowBlower()
        {
            string tx = RXWINDOW.Text;

            if (tx == string.Empty)
            {
                tx = "100";
            }
            I_comPort.Write("sr_" + tx);
            Reset();
        }
예제 #5
0
 private void StopSnowBlower()
 {
     I_comPort.Write("ss_");
     Reset();
 }
예제 #6
0
 private void btnStopBrush_Click(object sender, EventArgs e)
 {
     I_comPort.Write("bs_");
     Reset();
 }
예제 #7
0
 // Reset snowblower
 private void btnReset_Click(object sender, EventArgs e)
 {
     Reset();
     I_comPort.Write("sR_");
 }
예제 #8
0
 private void FullStop()
 {
     I_comPort.Write("ms_");
     Reset();
 }