Ejemplo n.º 1
0
        private void btnRaGotoStop_Click(object sender, EventArgs e)
        {
            if (iSerial == null)
            {
                return;
            }

            BoxdorferCommand theCommand;

            theCommand = new BoxdorferCommand(BoxdorferSerial.writeRaGotoStop);
            iSerial.AddCommand(theCommand);
        }
Ejemplo n.º 2
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);
        }
Ejemplo n.º 3
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);
        }
Ejemplo n.º 4
0
        private void rdRaCtrlLeft_CheckedChanged(object sender, EventArgs e)
        {
            if (iSerial == null)
            {
                return;
            }

            BoxdorferCommand theCommand;

            if (rdRaCtrlLeft.Checked)
            {
                theCommand = new BoxdorferCommand(BoxdorferSerial.writeLeftOn);
            }
            else
            {
                theCommand = new BoxdorferCommand(BoxdorferSerial.writeLeftOff);
            }
            iSerial.AddCommand(theCommand);
        }
Ejemplo n.º 5
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);
        }