C# Class CSharpRoboticsLib.ControlSystems.SimplePID

Simpler form of PID logic
Inheritance: IMotionController
Show file Open project: shockwave4488/CSharpRoboticsLib

Public Methods

Method Description
Get ( double currentPoint ) : double

Gets the value of the PID loop, using the point given as the input for the proportional value

ResetIntegral ( ) : void

Reset the integral value.

SimplePID ( double p, double i, double d ) : System

Creates a new SimplePID object

SimplePID ( double p, double i, double d, double min, double max ) : System

Creates a new instance of the SimplePID class

Method Details

Get() public method

Gets the value of the PID loop, using the point given as the input for the proportional value
public Get ( double currentPoint ) : double
currentPoint double current point of the system as read by a sensor
return double

ResetIntegral() public method

Reset the integral value.
public ResetIntegral ( ) : void
return void

SimplePID() public method

Creates a new SimplePID object
public SimplePID ( double p, double i, double d ) : System
p double Proportional Constant
i double Integral Constant
d double Derivative Constant
return System

SimplePID() public method

Creates a new instance of the SimplePID class
public SimplePID ( double p, double i, double d, double min, double max ) : System
p double Proportional constant
i double Integral Constant
d double Derivative Constant
min double Minimum allowed output of the PID loop
max double Maximum allowed output of the PID loop
return System