Generates a PID controller with parameters K_p, K_d and K_i
Dependents: locomotion_pid_action_refactor_EMG
Diff: controller.h
- Revision:
- 0:229271adbb37
diff -r 000000000000 -r 229271adbb37 controller.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/controller.h Mon Oct 16 09:41:19 2017 +0000 @@ -0,0 +1,16 @@ +#ifndef CONTROLLER_H +#define CONTROLLER_H + +#include "mbed.h" + +class controller { +public: + controller(float k_p, float k_d, float k_i); + float control(float e_pos, float e_der, float e_int); + +private: + float k_p; + float k_d; + float k_i; + }; +#endif \ No newline at end of file