7#include <frc/geometry/Pose2d.h>
8#include <frc2/command/CommandBase.h>
9#include <frc2/command/CommandHelper.h>
15class DriveToLocation :
public frc2::CommandHelper<frc2::CommandBase, DriveToLocation> {
18 const frc::Pose2d source,
19 const units::degree_t sourceAngle,
20 const frc::Pose2d destination,
21 const units::degree_t destAngle,
22 const frc::TrapezoidProfile<units::inches>::Constraints linearConstraints,
23 const frc::TrapezoidProfile<units::degrees>::Constraints rotationalConstraints);
29 void End(
bool interrupted)
override;
Definition: drive_to_location.h:15
void Execute() override
Definition: drive_to_location.cpp:34
const frc::Pose2d m_source
Definition: drive_to_location.h:35
void End(bool interrupted) override
Definition: drive_to_location.cpp:39
void Initialize() override
Definition: drive_to_location.cpp:27
const units::degree_t m_destAngle
Definition: drive_to_location.h:38
bool IsFinished() override
Definition: drive_to_location.cpp:44
const frc::TrapezoidProfile< units::inches >::Constraints m_linearConstraints
Definition: drive_to_location.h:39
SwerveDriveSubsystem * m_pDrive
Definition: drive_to_location.h:34
const frc::TrapezoidProfile< units::degrees >::Constraints m_rotationalConstraints
Definition: drive_to_location.h:40
const frc::Pose2d m_destination
Definition: drive_to_location.h:37
const units::degree_t m_sourceAngle
Definition: drive_to_location.h:36
Subsystem for controlling the swerve drivetrain of the robot.
Definition: swerve_drive_subsystem.h:50