updatePosition

public void updatePosition(double update)

This can be used to update the filtered PIDF's current position when inputting a current position and a target position to calculate error. This will update the error from the current position to the target position specified.

Parameters

update

This is the current position.