pid_filter Struct Reference

#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


Detailed Description

this is the pid_filter structure

Definition at line 32 of file pid.h.


Field Documentation

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().

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().

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().

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().

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().

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().

In saturation levels

Definition at line 44 of file pid.h.

Referenced by pid_do_filter(), pid_get_max_in(), and pid_set_maximums().

Integral saturation levels

Definition at line 45 of file pid.h.

Referenced by pid_do_filter(), pid_get_max_I(), and pid_set_maximums().

Out saturation levels

Definition at line 46 of file pid.h.

Referenced by pid_do_filter(), pid_get_max_out(), and pid_set_maximums().

previous integral parameter

Definition at line 48 of file pid.h.

Referenced by pid_do_filter(), pid_get_value_I(), and pid_reset().

previous derivate parameter

Definition at line 49 of file pid.h.

Referenced by pid_do_filter(), pid_get_value_D(), and pid_reset().

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().


The documentation for this struct was generated from the following file:

Generated on Fri Mar 12 06:32:30 2010 for AVR by  doxygen 1.5.6