setWeightedDrivePower

public final Unit setWeightedDrivePower(Pose2d drivePower, Double xWeight, Double yWeight, Double headingWeight)
public final Unit setWeightedDrivePower(Pose2d drivePower, Double xWeight, Double yWeight)
public final Unit setWeightedDrivePower(Pose2d drivePower, Double xWeight)
public final Unit setWeightedDrivePower(Pose2d drivePower)

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