![]() |
STM32F769IDiscovery
1.00
uDANTE Audio Networking with STM32F7 DISCO board
|
Functions | |
| void | arm_pid_init_f32 (arm_pid_instance_f32 *S, int32_t resetStateFlag) |
| Initialization function for the floating-point PID Control. More... | |
| void | arm_pid_init_q15 (arm_pid_instance_q15 *S, int32_t resetStateFlag) |
| Initialization function for the Q15 PID Control. More... | |
| void | arm_pid_init_q31 (arm_pid_instance_q31 *S, int32_t resetStateFlag) |
| Initialization function for the Q31 PID Control. More... | |
| void | arm_pid_reset_f32 (arm_pid_instance_f32 *S) |
| Reset function for the floating-point PID Control. More... | |
| void | arm_pid_reset_q15 (arm_pid_instance_q15 *S) |
| Reset function for the Q15 PID Control. More... | |
| void | arm_pid_reset_q31 (arm_pid_instance_q31 *S) |
| Reset function for the Q31 PID Control. More... | |
A Proportional Integral Derivative (PID) controller is a generic feedback control loop mechanism widely used in industrial control systems. A PID controller is the most commonly used type of feedback controller.
This set of functions implements (PID) controllers for Q15, Q31, and floating-point data types. The functions operate on a single sample of data and each call to the function returns a single processed value. S points to an instance of the PID control data structure. in is the input sample value. The functions return the output value.
y[n] = y[n-1] + A0 * x[n] + A1 * x[n-1] + A2 * x[n-2] A0 = Kp + Ki + Kd A1 = (-Kp ) - (2 * Kd ) A2 = Kd
Kp is proportional constant, Ki is Integral constant and Kd is Derivative constant
| void arm_pid_init_f32 | ( | arm_pid_instance_f32 * | S, |
| int32_t | resetStateFlag | ||
| ) |
Initialization function for the floating-point PID Control.
| [in,out] | *S | points to an instance of the PID structure. |
| [in] | resetStateFlag | flag to reset the state. 0 = no change in state & 1 = reset the state. |
resetStateFlag specifies whether to set state to zero or not. A0, A1 A2 using the proportional gain( Kp), integral gain( Ki) and derivative gain( Kd) also sets the state variables to all zeros. Definition at line 62 of file arm_pid_init_f32.c.
| void arm_pid_init_q15 | ( | arm_pid_instance_q15 * | S, |
| int32_t | resetStateFlag | ||
| ) |
Initialization function for the Q15 PID Control.
| [in,out] | *S | points to an instance of the Q15 PID structure. |
| [in] | resetStateFlag | flag to reset the state. 0 = no change in state 1 = reset the state. |
resetStateFlag specifies whether to set state to zero or not. A0, A1 A2 using the proportional gain( Kp), integral gain( Ki) and derivative gain( Kd) also sets the state variables to all zeros. Definition at line 61 of file arm_pid_init_q15.c.
| void arm_pid_init_q31 | ( | arm_pid_instance_q31 * | S, |
| int32_t | resetStateFlag | ||
| ) |
Initialization function for the Q31 PID Control.
| [in,out] | *S | points to an instance of the Q31 PID structure. |
| [in] | resetStateFlag | flag to reset the state. 0 = no change in state 1 = reset the state. |
resetStateFlag specifies whether to set state to zero or not. A0, A1 A2 using the proportional gain( Kp), integral gain( Ki) and derivative gain( Kd) also sets the state variables to all zeros. Definition at line 61 of file arm_pid_init_q31.c.
| void arm_pid_reset_f32 | ( | arm_pid_instance_f32 * | S | ) |
Reset function for the floating-point PID Control.
| [in] | *S | Instance pointer of PID control data structure. |
Definition at line 55 of file arm_pid_reset_f32.c.
| void arm_pid_reset_q15 | ( | arm_pid_instance_q15 * | S | ) |
Reset function for the Q15 PID Control.
| [in] | *S | Instance pointer of PID control data structure. |
Definition at line 55 of file arm_pid_reset_q15.c.
| void arm_pid_reset_q31 | ( | arm_pid_instance_q31 * | S | ) |
Reset function for the Q31 PID Control.
| [in] | *S | Instance pointer of PID control data structure. |
Definition at line 55 of file arm_pid_reset_q31.c.
1.8.11