/// <summary> /// Sets the elbow angle /// </summary> /// <param name="angle">Angle in degrees (0 corresponds to the position calibrated when following the Lynxmotion mounting instructions)</param> public void setElbow_Angle(double angle) { ElbowServo.setPulseWidth((short)(angle * (Servo.MAX_PULSE_WIDTH - Servo.MIN_PULSE_WIDTH) / 180 + Servo.MIN_PULSE_WIDTH)); }
/// <summary> /// Sets the elbow 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 setElbow_F(float value) { ElbowServo.setPulseWidth((short)(value * (Servo.MAX_PULSE_WIDTH - Servo.MIN_PULSE_WIDTH) + Servo.MIN_PULSE_WIDTH)); }
/// <summary> /// Sets the elbow pulse width /// </summary> /// <param name="pulse_width">Pulse width in µs</param> public void setElbow_PW(short pulse_width) { ElbowServo.setPulseWidth(pulse_width); }