Generates a PID controller with parameters K_p, K_d and K_i

Dependents:   locomotion_pid_action_refactor_EMG

controller.h

Committer:
tvlogman
Date:
2017-10-16
Revision:
0:229271adbb37

File content as of revision 0:229271adbb37:

#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