RoboJDETM v2.0

com.ridgesoft.robotics
Interface Controller

All Known Implementing Classes:
PIDController

public interface Controller

Generic feedback-based controller interface.


Method Summary
 float control(float target, float sample)
          Calculates the controller output given a target and current sample of the controlled variable.
 

Method Detail

control

float control(float target,
              float sample)
Calculates the controller output given a target and current sample of the controlled variable.

Invoke this method at a regular interval to calculate updates to the controller output.

Parameters:
target - target value of the sampled quantity
sample - value of most recent sample
Returns:
controller ouput

RoboJDETM v2.0

Copyright (c) 2003-2009 RidgeSoft, LLC. All rights reserved.
www.ridgesoft.com