Skip to main content
Version: 5.0.x {stable}

PID speed and PID position closed loop driver mode

If one of these bits are specified in the requested motor mode, PID loop is activated. We call these as "extended" modes.

BitDecNameReference value
416Speed looprref
532Position looppref
examples

Driver mode = 17:
The speed PID loop is active.
The motor is driven in voltage mode (17 - 16 = 1)

Driver mode = 34:
The position PID loop is active.
The motor is driven in current mode (34 - 32 = 2)

PID schema

Parameters

For /driver/pid_speed and /driver/pid_pos : both folders contain the settings for the corresponding PID regulator.

P

Proportional term for the PID regulator

I

Integral term for the PID regulator

D

Derivative term for the PID regulator

Td

Time constant for the input filter for the D term