Example #1
0
 /// <summary>
 /// Sets the wrist angle
 /// </summary>
 /// <param name="angle">Angle in degrees (0 corresponds to the position calibrated when following the Lynxmotion mounting instructions)</param>
 public void setWrist_Angle(double angle)
 {
     WristServo.setPulseWidth((short)(angle * (Servo.MAX_PULSE_WIDTH - Servo.MIN_PULSE_WIDTH) / 180 + Servo.MIN_PULSE_WIDTH));
 }
Example #2
0
 /// <summary>
 /// Sets the wrist 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 setWrist_F(float value)
 {
     WristServo.setPulseWidth((short)(value * (Servo.MAX_PULSE_WIDTH - Servo.MIN_PULSE_WIDTH) + Servo.MIN_PULSE_WIDTH));
 }
Example #3
0
 /// <summary>
 /// Sets the wrist pulse width
 /// </summary>
 /// <param name="pulse_width">Pulse width in µs</param>
 public void setWrist_PW(short pulse_width)
 {
     WristServo.setPulseWidth(pulse_width);
 }