예제 #1
0
 /// <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)
 {
 }
예제 #2
0
 /// <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)
 {
 }