Package frc.robot.commands
Class ArcadeDriveCommand
- java.lang.Object
-
- edu.wpi.first.wpilibj2.command.CommandBase
-
- frc.robot.commands.ArcadeDriveCommand
-
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable
,edu.wpi.first.wpilibj2.command.Command
public class ArcadeDriveCommand extends edu.wpi.first.wpilibj2.command.CommandBase
-
-
Constructor Summary
Constructors Constructor Description ArcadeDriveCommand(DriveTrainSubsystem subsystem, java.util.function.DoubleSupplier forwardInput, java.util.function.DoubleSupplier rotInput, java.util.function.BooleanSupplier partyModeInput, java.util.function.BooleanSupplier precisionModeInput)
Constructor for the ArcadeDriveCommand class
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
end(boolean interrupted)
void
execute()
void
initialize()
boolean
isFinished()
-
Methods inherited from class edu.wpi.first.wpilibj2.command.CommandBase
addRequirements, getName, getRequirements, getSubsystem, initSendable, setName, setSubsystem, withName
-
-
-
-
Constructor Detail
-
ArcadeDriveCommand
public ArcadeDriveCommand(DriveTrainSubsystem subsystem, java.util.function.DoubleSupplier forwardInput, java.util.function.DoubleSupplier rotInput, java.util.function.BooleanSupplier partyModeInput, java.util.function.BooleanSupplier precisionModeInput)
Constructor for the ArcadeDriveCommand class- Parameters:
subsystem
- The DriveTrain subsystemforwardInput
- Forward input. Positive value will move the robot forward.rotInput
- Rotation input. Positive values will rotate the robot clockwise.partyModeInput
- Speed mofifier input. If this boolean is true, the speed of the motors will change.
-
-