Example #1
0
        private void setServoPositionMenuItem_Click(object sender, EventArgs e)
        {
            ServoPositionDialog dialog = new ServoPositionDialog();

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                host.Send((char)CRemoteBrainMessage.SERVO + "#" + dialog.ServoNumber + " P" + dialog.Position + "\r", true);
            }
        }
Example #2
0
        private void setServoPositionMenuItem_Click(object sender, EventArgs e)
        {
            ServoPositionDialog dialog = new ServoPositionDialog();

            if(dialog.ShowDialog() == DialogResult.OK)
                host.Send((char)CRemoteBrainMessage.SERVO + "#" + dialog.ServoNumber + " P" + dialog.Position + "\r", true);
        }