core / com.acmerobotics.roadrunner.drive / SwerveKinematics / robotToModuleAngularVelocities

robotToModuleAngularVelocities

@JvmStatic @JvmOverloads fun robotToModuleAngularVelocities(robotPoseVelocity: Pose2d, robotPoseAcceleration: Pose2d, trackWidth: Double, wheelBase: Double = trackWidth): List<Double>

Computes the module angular velocities corresponding to robotPoseAcceleration given the provided trackWidth and wheelBase.

Parameters

robotPoseAcceleration - velocity of the robot in its reference frame

trackWidth - lateral distance between pairs of wheels on different sides of the robot

wheelBase - distance between pairs of wheels on the same side of the robot