Project

General

Profile

Revision 7741ab09

ID7741ab09ee53490124c3fda719f2fc1f64efaabd

Added by Priya about 12 years ago

Added a time thing to PID control

View differences:

control/pid_control.h
9 9

  
10 10
    void change_goal(float goal);
11 11

  
12
    float pid(float input);
12
    float pid(float input, double time);
13 13

  
14 14
  private:
15 15
    float k_p;
......
19 19
    float set_config;
20 20
    float error;
21 21
    float prev_error;
22
    double prev_time;
22 23

  
23 24
    float P_err;
24 25
    float I_err;

Also available in: Unified diff