integrateToVel

fun integrateToVel(dt: Time, initial: ChassisVelocities = ChassisVelocities.zero): ChassisVelocities(source)

Uses kinematic integration to compute a new velocity given a time step and initial velocity.

Performs Euler integration: \(\mathbf{v}_{new} = \mathbf{v}_0 + \mathbf{a} \cdot \Delta t\)

Return

the integrated velocity after time dt

Parameters

dt

time step

initial

initial velocity; defaults to zero