示例#1
0
 /// <summary>
 /// Sets the wrist rotate angle
 /// </summary>
 /// <param name="angle">Angle in degrees (0 corresponds to the position calibrated when following the Lynxmotion mounting instructions)</param>
 public void setWristRotate_Angle(double angle)
 {
     WristRotateServo.setPulseWidth((short)(angle * (Servo.MAX_PULSE_WIDTH - Servo.MIN_PULSE_WIDTH) / 180 + Servo.MIN_PULSE_WIDTH));
 }
示例#2
0
 /// <summary>
 /// Sets the wrist rotate angle
 /// </summary>
 /// <param name="value">Value from 0.0 to 1.0, with 0.0 corresponding to MIN_PULSE_WIDTH and 1.0 to MAX_PULSE_WIDTH</param>
 public void setWristRotate_F(float value)
 {
     WristRotateServo.setPulseWidth((short)(value * (Servo.MAX_PULSE_WIDTH - Servo.MIN_PULSE_WIDTH) + Servo.MIN_PULSE_WIDTH));
 }
示例#3
0
 /// <summary>
 /// Sets the wrist rotate pulse width
 /// </summary>
 /// <param name="pulse_width">Pulse width in µs</param>
 public void setWristRotate_PW(short pulse_width)
 {
     WristRotateServo.setPulseWidth(pulse_width);
 }