Included Controllers
Homeostasis provides a few different types of controllers, all of which with their own utility.
PID Control
BasicPID
// creation of the PID object
PIDCoefficients coefficients = new PIDCoefficients(Kp,Ki,Kd);
BasicPID controller = new BasicPID(coefficients);
// usage of the PID
while (true) {
double output = controller.calculate(targetPosition, measuredPosition);
}PIDEx
// creation of the PID object
PIDCoefficientsEx coefficients = new PIDCoefficientsEx(Kp,Ki,Kd,integralSumMax
stability_thresh,
lowPassGain);
// usage of the PID
PIDEx controller = new PIDEx(coefficients);
while (true) {
double output = controller.calculate(targetPosition, measuredPosition);
}Full State Feedback Control
FullStateFeedback
Bang Bang Control
BangBang
Dealing with Angles
Feedforward Control
BasicFeedforward
FeedforwardEx
No Control
Last updated
Was this helpful?
