Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
        private void btnRaGotoStop_Click(object sender, EventArgs e)
        {
            if (iSerial == null)
            {
                return;
            }

            BoxdorferCommand theCommand;
            theCommand = new BoxdorferCommand(BoxdorferSerial.writeRaGotoStop);
            iSerial.AddCommand(theCommand);
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
        }