/// <summary> /// Create a new instance of TurningPID with the supplied PIDF struct. /// </summary> /// <param name="values">The PIDF values to use.</param> public TurningPID(PIDF values) : this(values.kP, values.kI, values.kD, values.kF) { }
/// <summary> /// Creates a new instance of EncoderPID with the supplied speed controller and PIDF values. /// </summary> /// <param name="speedController">Speed controller to use, such as <c>CANTalon</c> or <c>Spark</c></param> /// <param name="encoder">Encoder for measuring positional data.</param> /// <param name="values">The PIDF values to use.</param> public EncoderPID(ISpeedController speedController, Encoder encoder, PIDF values) : this(speedController, encoder, values.kP, values.kI, values.kD, values.kF) { }