#include <pid.h>
Data Fields | |
int16_t | gain_P |
int16_t | gain_I |
int16_t | gain_D |
uint8_t | out_shift |
uint8_t | derivate_nb_samples |
uint8_t | index |
int32_t | prev_samples [PID_DERIVATE_FILTER_MAX_SIZE] |
int32_t | max_in |
int32_t | max_I |
int32_t | max_out |
int32_t | integral |
int32_t | prev_D |
int32_t | prev_out |
Definition at line 32 of file pid.h.
int16_t pid_filter::gain_P |
Gain of Proportionnal module
Definition at line 34 of file pid.h.
Referenced by pid_do_filter(), pid_get_gain_P(), pid_init(), and pid_set_gains().
int16_t pid_filter::gain_I |
Gain of Integral module
Definition at line 35 of file pid.h.
Referenced by pid_do_filter(), pid_get_gain_I(), and pid_set_gains().
int16_t pid_filter::gain_D |
Gain of Derivate module
Definition at line 36 of file pid.h.
Referenced by pid_do_filter(), pid_get_gain_D(), and pid_set_gains().
uint8_t pid_filter::out_shift |
big common divisor for output
Definition at line 38 of file pid.h.
Referenced by pid_do_filter(), pid_get_out_shift(), and pid_set_out_shift().
uint8_t pid_filter::derivate_nb_samples |
sample count for derivate filter
Definition at line 40 of file pid.h.
Referenced by pid_do_filter(), pid_get_derivate_filter(), pid_init(), and pid_set_derivate_filter().
uint8_t pid_filter::index |
index in circular buffer below
Definition at line 41 of file pid.h.
Referenced by pid_do_filter(), and pid_get_value_in().
int32_t pid_filter::prev_samples[PID_DERIVATE_FILTER_MAX_SIZE] |
previous in (circular buf)
Definition at line 42 of file pid.h.
Referenced by pid_do_filter(), pid_get_value_in(), and pid_reset().
int32_t pid_filter::max_in |
In saturation levels
Definition at line 44 of file pid.h.
Referenced by pid_do_filter(), pid_get_max_in(), and pid_set_maximums().
int32_t pid_filter::max_I |
Integral saturation levels
Definition at line 45 of file pid.h.
Referenced by pid_do_filter(), pid_get_max_I(), and pid_set_maximums().
int32_t pid_filter::max_out |
Out saturation levels
Definition at line 46 of file pid.h.
Referenced by pid_do_filter(), pid_get_max_out(), and pid_set_maximums().
int32_t pid_filter::integral |
previous integral parameter
Definition at line 48 of file pid.h.
Referenced by pid_do_filter(), pid_get_value_I(), and pid_reset().
int32_t pid_filter::prev_D |
previous derivate parameter
Definition at line 49 of file pid.h.
Referenced by pid_do_filter(), pid_get_value_D(), and pid_reset().
int32_t pid_filter::prev_out |
previous out command (for debug only)
Definition at line 50 of file pid.h.
Referenced by pid_do_filter(), pid_get_value_out(), and pid_reset().