set PIDFCoefficients
open fun setPIDFCoefficients(@NonNull mode: DcMotor.RunMode, @NonNull pidfCoefficients: PIDFCoefficients)
This method is a superset enhancement to setPIDCoefficients. Note this will construct a new PIDF controller for use in the rtp
or rue
RunModes as per the Motor class, or set an existing PIDF controller coefficients if it already exists.
Parameters
mode
either RUN_USING_ENCODER or RUN_TO_POSITION
pidf Coefficients
the new coefficients to use when in that mode on this motor