2022-03-03 23:29:46 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
// This structure provides information on the internal member data of
|
|
|
|
// a PID. It provides an abstract way to pass PID information around,
|
|
|
|
// useful for logging and sending mavlink messages.
|
|
|
|
|
|
|
|
// It is also used to pass PID information into controllers...
|
|
|
|
|
|
|
|
struct AP_PIDInfo {
|
|
|
|
float target;
|
|
|
|
float actual;
|
|
|
|
float error;
|
|
|
|
float P;
|
|
|
|
float I;
|
|
|
|
float D;
|
|
|
|
float FF;
|
|
|
|
float Dmod;
|
|
|
|
float slew_rate;
|
2023-09-12 16:51:54 -03:00
|
|
|
bool limit;
|
|
|
|
bool PD_limit;
|
2022-03-03 23:29:46 -04:00
|
|
|
};
|