예제 #1
0
        private void rdRaCtrlRight_CheckedChanged(object sender, EventArgs e)
        {
            if (iSerial == null)
            {
                return;
            }

            BoxdorferCommand theCommand;
            if (rdRaCtrlRight.Checked)
            {
                theCommand = new BoxdorferCommand(BoxdorferSerial.writeRightOn);
            }
            else
            {
                theCommand = new BoxdorferCommand(BoxdorferSerial.writeRightOff);
            }
            iSerial.AddCommand(theCommand);
        }
예제 #2
0
        private void chkRaTracking_CheckedChanged(object sender, EventArgs e)
        {
            if (iSerial == null)
            {
                return;
            }

            BoxdorferCommand theCommand;
            if (chkRaTracking.Checked)
            {
                theCommand = new BoxdorferCommand(BoxdorferSerial.writeOnOn);
            }
            else
            {
                theCommand = new BoxdorferCommand(BoxdorferSerial.writeOnOff);
            }
            iSerial.AddCommand(theCommand);
        }
예제 #3
0
        private void btnRaGotoStop_Click(object sender, EventArgs e)
        {
            if (iSerial == null)
            {
                return;
            }

            BoxdorferCommand theCommand;
            theCommand = new BoxdorferCommand(BoxdorferSerial.writeRaGotoStop);
            iSerial.AddCommand(theCommand);
        }
예제 #4
0
        private void btnResetCurrPos_Click(object sender, EventArgs e)
        {
            if (iSerial == null)
            {
                return;
            }

            BoxdorferCommand theCommand = new BoxdorferCommand(BoxdorferSerial.resetRaCurrentPos);

            iSerial.AddCommand(theCommand);
            raCurrentPos.Read(iSerial);
        }
예제 #5
0
        private void btnRaGotoStart_Click(object sender, EventArgs e)
        {
            if (iSerial == null)
            {
                return;
            }

            raTargetPos.Write(iSerial);
            BoxdorferCommand theCommand;
            theCommand = new BoxdorferCommand(BoxdorferSerial.writeRaGotoStart);
            iSerial.AddCommand(theCommand);
        }