setWeightedDrivePower

fun setWeightedDrivePower(drivePower: Pose2d, xWeight: Double = 1.0, yWeight: Double = 1.0, headingWeight: Double = 1.0)

Scales drivePower so that the commanded powers are all within [-1.0, 1.0].