/// <summary> /// 运动到垂直姿态 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void button_tovertical_Click(object sender, EventArgs e) { double time = decimal.ToDouble(numericUpDown_time.Value); int n = decimal.ToInt32(numericUpDown_addnum.Value); robot1.GoVertical(n, time); }