2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
DriveToPositionAbsolute Class Reference

#include <drive_to_position_absolute.h>

Inheritance diagram for DriveToPositionAbsolute:

Public Member Functions

 DriveToPositionAbsolute (SwerveDriveSubsystem *drive, const frc::Pose2d destination, const units::degree_t destAngle, const frc::TrapezoidProfile< units::inches >::Constraints linearConstraints, const frc::TrapezoidProfile< units::degrees >::Constraints rotationalConstraints, const units::feet_per_second_t initialVelocity=0_fps, const units::feet_per_second_t finalVelocity=0_fps)
 
void Initialize () override
 
void Execute () override
 
void End (bool interrupted) override
 
bool IsFinished () override
 

Private Attributes

SwerveDriveSubsystemm_pDrive
 
const frc::Pose2d m_destination
 
const units::degree_t m_destAngle
 
const frc::TrapezoidProfile< units::inches >::Constraints m_linearConstraints
 
const frc::TrapezoidProfile< units::degrees >::Constraints m_rotationalConstraints
 
const units::feet_per_second_t m_initialVelocity
 
const units::feet_per_second_t m_finalVelocity
 

Detailed Description

Constructor & Destructor Documentation

◆ DriveToPositionAbsolute()

DriveToPositionAbsolute::DriveToPositionAbsolute ( SwerveDriveSubsystem drive,
const frc::Pose2d  destination,
const units::degree_t  destAngle,
const frc::TrapezoidProfile< units::inches >::Constraints  linearConstraints,
const frc::TrapezoidProfile< units::degrees >::Constraints  rotationalConstraints,
const units::feet_per_second_t  initialVelocity = 0_fps,
const units::feet_per_second_t  finalVelocity = 0_fps 
)

Member Function Documentation

◆ End()

void DriveToPositionAbsolute::End ( bool  interrupted)
override

◆ Execute()

void DriveToPositionAbsolute::Execute ( )
override

◆ Initialize()

void DriveToPositionAbsolute::Initialize ( )
override

◆ IsFinished()

bool DriveToPositionAbsolute::IsFinished ( )
override

Member Data Documentation

◆ m_destAngle

const units::degree_t DriveToPositionAbsolute::m_destAngle
private

◆ m_destination

const frc::Pose2d DriveToPositionAbsolute::m_destination
private

◆ m_finalVelocity

const units::feet_per_second_t DriveToPositionAbsolute::m_finalVelocity
private

◆ m_initialVelocity

const units::feet_per_second_t DriveToPositionAbsolute::m_initialVelocity
private

◆ m_linearConstraints

const frc::TrapezoidProfile<units::inches>::Constraints DriveToPositionAbsolute::m_linearConstraints
private

◆ m_pDrive

SwerveDriveSubsystem* DriveToPositionAbsolute::m_pDrive
private

◆ m_rotationalConstraints

const frc::TrapezoidProfile<units::degrees>::Constraints DriveToPositionAbsolute::m_rotationalConstraints
private

The documentation for this class was generated from the following files: