Pid

PID #

PID (Proportional-Integral-Derivative) Controller Component

This component implements a PID controller, which is used to minimize the error between a desired setpoint and the actual process variable. The PID algorithm calculates an output value based on the proportional, integral, and derivative terms of the error. It is widely used in control systems for applications such as motor speed control, temperature regulation, and more.

Pins #

NameDescription
pos_ext_cmdcmd in (rad)
pos_fbfeedback in (rad)
pos_errorerror out (rad)
vel_ext_cmdcmd in (rad/s)
vel_fbfeedback in (rad/s)
vel_cmdcmd out (rad/s)
vel_errorerror out (rad/s)
acc_ext_cmdcmd in (rad/s^2)
acc_cmdcmd out (rad/s^2)
acc_cmd_lpcmd out (rad/s^2)
acc_cmd_hpcmd out (rad/s^2)
torque_ext_cmdcmd in (Nm)
fb_torque_cmdfeedback cmd out (Nm)
ff_torque_cmdfeedforward cmd out (Nm)
torque_cmdcmd out (Nm)
torque_sum
en
pos_en
vel_en
pos_bw(1/s)
vel_bw(1/s)
vel_d
vel_g
torque_g
scale
j_lpf
acc_g
j_motmotor inertia (kgm^2)
f(Nm)
d(Nm/rad/s)
j_syssystem inertia(kgm^2)
o(Nm)
max_vel(rad/s)
neg_min_vel(rad/s)
max_acc(rad/s^2)
max_torque(Nm)
neg_min_torque(Nm)
vel_sat
torque_sat
sat(s)

References #

Source: .c File