Exemple #1
0
        private void btnAutoMoveToPosition_Click(object sender, EventArgs e)
        {
            this.Enabled = false;

            // let's automatically move to a specified position with motor-group1...
            if (Handset.AutoMoveToPosition(200, VirtualHandset.MotorGroup.MotorGroup1) < 0)
            {
                MessageBox.Show("Could not automatically move to position!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            }

            this.Enabled = true;
        }