get Target Speeds
Method to generate a ChassisSpeeds object from a desired X, Y, and Rotational velocity.
Return
The generated ChassisSpeeds object.
Parameters
v Forward
The desired forward velocity of the robot.
v Side
The desired side velocity of the robot.
angle
The desired rotational velocity of the robot.
fun getTargetSpeeds(vForward: Double, vSide: Double, headingX: Double, headingY: Double): ChassisSpeeds
Method to generate a ChassisSpeeds object from a desired X, Y, and angle X and Y components.
Return
The generated ChassisSpeeds object.
Parameters
v Forward
The desired forward velocity of the robot.
v Side
The desired side velocity of the robot.
heading X
The desired X component of the angle.
heading Y
The desired Y component of the angle.