add missing files
This commit is contained in:
14
pid.h
Normal file
14
pid.h
Normal file
@@ -0,0 +1,14 @@
|
||||
struct pid{
|
||||
// Controller gains
|
||||
float kP;
|
||||
float kI;
|
||||
float kD;
|
||||
|
||||
// State variables
|
||||
float lastError;
|
||||
float integral;
|
||||
};
|
||||
|
||||
float pid_step(volatile struct pid* controller, float dt, float error);
|
||||
void init_pid(volatile struct pid* controller, float p, float i, float d);
|
||||
|
||||
Reference in New Issue
Block a user