Page 1 of 1

Velocity control feedforward term

Posted: Wed Nov 14, 2018 2:29 pm
by questioner
Is there a feedforward term in the velocity PID controller? Is it simply proportional to the commanded velocity? I want to control a motor driving a gravity-loaded joint. Adding a fixed positive or negative feedforward value to the PID output depending on the direction of desired motion will allow me to work with one set of PID gains for motion in both directions. But I don't see any way to add a feedforward term in the UI.

Re: Velocity control feedforward term

Posted: Mon Nov 26, 2018 10:24 am
by Basicmicro Support
Yes, it is the QPPS value. The Roboclaw uses the QPPS value to determine the correct feedforward value automatically(you dont enter it other than setting the QPPS. QPPS is just the maximum speed of the motor in encoder counts per second. The simplest way to determine it is to run the motor at 100% duty and read out the speed.

Note that the autotuner will determine a reasonable QPPS setting automatically.