jaron.autopilot
Class Stabilization

java.lang.Object
  extended by jaron.autopilot.Stabilization

public class Stabilization
extends java.lang.Object

The Stabilization class provides a PID controller algorithm.

Since:
1.2
Version:
1.2
Author:
jarontec gmail com

Nested Class Summary
static class Stabilization.PID
          The PID class provides the PID gains and holds the current state of the PID controller.
 
Constructor Summary
Stabilization()
           
 
Method Summary
static double updatePID(Stabilization.PID pid, double error)
          Updates the PID controller according to the settings and the states that are provided via the pid parameter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Stabilization

public Stabilization()
Method Detail

updatePID

public static double updatePID(Stabilization.PID pid,
                               double error)
Updates the PID controller according to the settings and the states that are provided via the pid parameter.

Parameters:
pid - PID settings and current PID state
error - the difference between the target value and the current value
Returns:
the proposed correction value to reach the target value