You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Johan Vandegriff edited this page Dec 15, 2016
·
1 revision
ControlLoop defines an interface for control loops such as a PID controller or a proportional controller. The computeCorrection function takes a target value, or setPoint, and an actual value, or input. It computes the power necessary for a motor or other output to bring the input closer to the setPoint.
The initialize() function is meant to reset the persistent (stored between loop cycles) variables. It should be called when the controller has been off for a while.
packageftc.electronvolts.util;
/** * This file was made by the electronVolts, FTC team 7393 * * An interface that allows for any type of control loop to be used * @see PIDController */publicinterfaceControlLoop {
doublecomputeCorrection(doublesetPoint, doubleinput);
voidinitialize();
}