Motor Factory
Constructors
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Functions
Link copied to clipboard
Created an encoder association with this motor
Link copied to clipboard
fun pairEncoder(motor: KMotor, encoderFactory: EncoderFactory): MotorFactory
Content copied to clipboard
Pair this motor's encoder with another motor's encoder
Link copied to clipboard
fun withMotionProfileControl( pidGains: PIDGains, ffGains: FFGains, constraints: MotionConstraints, allowedPositionError: Double, disabledPosition: Double? = null): MotorFactory
Content copied to clipboard
Enable motion profile control in the motor
Link copied to clipboard
fun withPositionControl( pidGains: PIDGains, ffGains: FFGains, allowedPositionError: Double, disabledPosition: Double? = null, bounds: Bounds = Bounds()): MotorFactory
Content copied to clipboard
Enable position PID control in the motor
Link copied to clipboard
Add a static feedforward term to the motor. This is included in motor power calculatiosn regardless of motor mode (e.g. a motor with MotorControlModes.OPEN_LOOP with still calculate static feedforward). Used to deal with motor problems.
Link copied to clipboard
fun withVelocityControl( pidGains: PIDGains, kF: Double, allowedVelocityError: Double): MotorFactory
Content copied to clipboard
Enable velocity PID control in the motor