Package frc.robot.commands
Class PathCommand
java.lang.Object
edu.wpi.first.wpilibj2.command.Command
frc.robot.commands.PathCommand
- All Implemented Interfaces:
edu.wpi.first.util.sendable.Sendable
public class PathCommand
extends edu.wpi.first.wpilibj2.command.Command
-
Nested Class Summary
Nested classes/interfaces inherited from class edu.wpi.first.wpilibj2.command.Command
edu.wpi.first.wpilibj2.command.Command.InterruptionBehavior
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final double
static final edu.wpi.first.math.trajectory.TrapezoidProfile.Constraints
edu.wpi.first.math.controller.ProfiledPIDController
edu.wpi.first.math.controller.ProfiledPIDController
edu.wpi.first.math.controller.ProfiledPIDController
Fields inherited from class edu.wpi.first.wpilibj2.command.Command
m_requirements
-
Constructor Summary
ConstructorsConstructorDescriptionPathCommand
(SwerveSubsystem swerveSubsystem, double x, double y, double angle) -
Method Summary
Methods inherited from class edu.wpi.first.wpilibj2.command.Command
addRequirements, alongWith, andThen, andThen, asProxy, beforeStarting, beforeStarting, cancel, deadlineWith, finallyDo, finallyDo, getInterruptionBehavior, getName, getRequirements, getSubsystem, handleInterrupt, hasRequirement, ignoringDisable, initialize, initSendable, isFinished, isScheduled, onlyIf, onlyWhile, raceWith, repeatedly, runsWhenDisabled, schedule, setName, setSubsystem, unless, until, withInterruptBehavior, withName, withTimeout
-
Field Details
-
kMaxSpeedPerSecondSquared
public static final double kMaxSpeedPerSecondSquared -
kThetaControllerConstraints
public static final edu.wpi.first.math.trajectory.TrapezoidProfile.Constraints kThetaControllerConstraints -
snapController
public edu.wpi.first.math.controller.ProfiledPIDController snapController -
xController
public edu.wpi.first.math.controller.ProfiledPIDController xController -
yController
public edu.wpi.first.math.controller.ProfiledPIDController yController
-
-
Constructor Details
-
PathCommand
-
-
Method Details
-
execute
public void execute()- Overrides:
execute
in classedu.wpi.first.wpilibj2.command.Command
-
end
public void end(boolean interrupted) - Overrides:
end
in classedu.wpi.first.wpilibj2.command.Command
-