Project

General

Profile

Statistics
| Branch: | Revision:

root / control / pid_test.cpp @ 71780e9c

History | View | Annotate | Download (265 Bytes)

1
#include "pid_control.h"
2
#include <stdio.h>
3

    
4
int main()
5
{
6
  PID_control* meow = new PID_control(.07, .01, .7, 5);
7
  float result = 1;
8
  for(int counter = 0; counter < 100; counter++)
9
  {
10
    result = meow->pid(result);
11
    printf("%f\t", result);
12
  }
13
  return 0;
14
}