core / com.acmerobotics.roadrunner.drive / TankKinematics / robotToWheelAccelerations

robotToWheelAccelerations

@JvmStatic fun robotToWheelAccelerations(robotPoseAcceleration: Pose2d, trackWidth: Double): List<Double>

Computes the wheel accelerations corresponding to robotPoseAcceleration given trackWidth.

Parameters

robotPoseAcceleration - velocity of the robot in its reference frame

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