7#include <frc/geometry/Pose2d.h>
8#include <frc2/command/CommandBase.h>
9#include <frc2/command/CommandHelper.h>
10#include <units/angle.h>
11#include <units/velocity.h>
17class DriveToPosition :
public frc2::CommandHelper<frc2::CommandBase, DriveToPosition> {
20 const frc::Pose2d source,
21 const units::degree_t sourceAngle,
22 const frc::Pose2d destination,
23 const units::degree_t destAngle,
24 const frc::TrapezoidProfile<units::inches>::Constraints linearConstraints,
25 const frc::TrapezoidProfile<units::degrees>::Constraints rotationalConstraints,
26 const units::feet_per_second_t initialVelocity = 0_fps,
27 const units::feet_per_second_t finalVelocity = 0_fps);
33 void End(
bool interrupted)
override;
Definition drive_to_position.h:17
const frc::Pose2d m_source
Definition drive_to_position.h:39
const frc::TrapezoidProfile< units::degrees >::Constraints m_rotationalConstraints
Definition drive_to_position.h:44
const units::degree_t m_sourceAngle
Definition drive_to_position.h:40
const frc::TrapezoidProfile< units::inches >::Constraints m_linearConstraints
Definition drive_to_position.h:43
const units::degree_t m_destAngle
Definition drive_to_position.h:42
void End(bool interrupted) override
Definition drive_to_position.cpp:43
bool IsFinished() override
Definition drive_to_position.cpp:50
const units::feet_per_second_t m_initialVelocity
Definition drive_to_position.h:45
void Execute() override
Definition drive_to_position.cpp:38
void Initialize() override
Definition drive_to_position.cpp:31
SwerveDriveSubsystem * m_pDrive
Definition drive_to_position.h:38
const units::feet_per_second_t m_finalVelocity
Definition drive_to_position.h:46
const frc::Pose2d m_destination
Definition drive_to_position.h:41
Subsystem for controlling the swerve drivetrain of the robot.
Definition swerve_drive_subsystem.h:56