fixed broken PID
This commit is contained in:
13
PID.h
13
PID.h
@@ -22,19 +22,10 @@
|
||||
|
||||
#include "sidservo.h"
|
||||
|
||||
typedef struct {
|
||||
PIDpar_t gain; // PID gains
|
||||
double prev_error; // Previous error
|
||||
double integral; // Integral term
|
||||
double *pidIarray; // array for Integral
|
||||
struct timespec prevT; // time of previous correction
|
||||
size_t pidIarrSize; // it's size
|
||||
size_t curIidx; // and index of current element
|
||||
} PIDController_t;
|
||||
|
||||
/*
|
||||
PIDController_t *pid_create(const PIDpar_t *gain, size_t Iarrsz);
|
||||
void pid_clear(PIDController_t *pid);
|
||||
void pid_delete(PIDController_t **pid);
|
||||
double pid_calculate(PIDController_t *pid, double error, double dt);
|
||||
|
||||
*/
|
||||
mcc_errcodes_t correct2(const coordval_pair_t *target);
|
||||
|
||||
Reference in New Issue
Block a user