calculate

fun calculate(velocity: Double, acceleration: Double = 0.0): Double(source)

Calculates the feedforward output for a desired velocity and acceleration.

Return

The feedforward output value.

Parameters

velocity

The desired velocity.

acceleration

The desired acceleration (defaults to 0.0 for constant velocity).


fun <U : Unit<U>> calculate(state: MotionState<U>): Double(source)

Calculates the feedforward output from a MotionState.

Return

the feedforward output

Parameters

state

the target motion state containing velocity and acceleration