DeepSpace  2019
PIDController.h
Go to the documentation of this file.
1 /*----------------------------------------------------------------------------*/
2 /* Copyright (c) 2018 FIRST. All Rights Reserved. */
3 /* Open Source Software - may be modified and shared by FRC teams. The code */
4 /* must be accompanied by the FIRST BSD license file in the root directory of */
5 /* the project. */
6 /*----------------------------------------------------------------------------*/
7 
8 #pragma once
9 
10 #include "RobotMap.h"
11 
12 namespace rr{
13  class PIDController {
14  public:
15  PIDController(double kp, double ki, double kd);
16  double Feed(double input, double current);
17 
18  private:
19  double kp, ki, kd;
20  double p, i, d;
22  double lastOutput;
23  };
24 }
double Feed(double input, double current)
PIDController(double kp, double ki, double kd)