core / com.acmerobotics.roadrunner.control / PIDFController / update

update

@JvmOverloads fun update(position: Double, velocity: Double = 0.0, acceleration: Double = 0.0, currentTimestamp: Double = System.nanoTime() / 1e9): Double

Run a single iteration of the controller.

Parameters

position - current measured position (feedback)

velocity - feedforward velocity

acceleration - feedforward acceleration

currentTimestamp - timestamp for the above parameters (intendend for simulation)