Project

General

Profile

Statistics
| Branch: | Revision:

root / control / pid_test.cpp @ master

History | View | Annotate | Download (276 Bytes)

1 71780e9c Priya
#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 7741ab09 Priya
    result = meow->pid(result, counter+1);
11 71780e9c Priya
    printf("%f\t", result);
12
  }
13
  return 0;
14
}