Package frc.robot.subsystems
Class DrivetrainControls
java.lang.Object
frc.robot.subsystems.DrivetrainControls
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleSpeed multiplier used for scaling controller inputs (0, 1]. -
Constructor Summary
ConstructorsConstructorDescriptionDrivetrainControls(CommandSwerveDrivetrain drivetrain) Creates a new DrivetrainControls. -
Method Summary
Modifier and TypeMethodDescriptionsetSpeedMultiplierCommand(Supplier<Double> speedMultiplier) Sets the controller speed multiplier.
-
Field Details
-
brake
-
point
-
speedMultiplier
public double speedMultiplierSpeed multiplier used for scaling controller inputs (0, 1].
-
-
Constructor Details
-
DrivetrainControls
Creates a new DrivetrainControls.- Parameters:
drivetrain- The Drivetrain to control.
-
-
Method Details
-
setSpeedMultiplierCommand
Sets the controller speed multiplier. Resets the multiplier when canceled.- Parameters:
speedMultiplier- Multiplier to set (0, 1].- Returns:
- Command to run.
-