Class DrivetrainControls

java.lang.Object
frc.robot.subsystems.DrivetrainControls

public class DrivetrainControls extends Object
  • Field Details

  • Constructor Details

    • DrivetrainControls

      public DrivetrainControls(CommandSwerveDrivetrain drivetrain)
      Creates a new DrivetrainControls.
      Parameters:
      drivetrain - The Drivetrain to control.
  • Method Details

    • setSpeedMultiplierCommand

      public Command setSpeedMultiplierCommand(Supplier<Double> speedMultiplier)
      Sets the controller speed multiplier. Resets the multiplier when canceled.
      Parameters:
      speedMultiplier - Multiplier to set (0, 1].
      Returns:
      Command to run.