set PIDCoefficients
open fun setPIDCoefficients(@NonNull mode: DcMotor.RunMode, @NonNull pidCoefficients: PIDCoefficients)
Sets the PID control coefficients for one of the PID modes of this motor. Note this will construct a new PID controller for use in the rtp
or rue
RunModes as per the Motor class.
Parameters
mode
either RUN_USING_ENCODER or RUN_TO_POSITION
pid Coefficients
the new coefficients to use when in that mode on this motor