2022-Robot
Robot code for 2022 FRC Season by Argos, FRC team #1756
Loading...
Searching...
No Matches
DriveToLocation Class Reference

#include <drive_to_location.h>

Inheritance diagram for DriveToLocation:

Public Member Functions

 DriveToLocation (SwerveDriveSubsystem *drive, const frc::Pose2d source, const units::degree_t sourceAngle, const frc::Pose2d destination, const units::degree_t destAngle, const frc::TrapezoidProfile< units::inches >::Constraints linearConstraints, const frc::TrapezoidProfile< units::degrees >::Constraints rotationalConstraints)
 
void Initialize () override
 
void Execute () override
 
void End (bool interrupted) override
 
bool IsFinished () override
 

Private Attributes

SwerveDriveSubsystemm_pDrive
 
const frc::Pose2d m_source
 
const units::degree_t m_sourceAngle
 
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
 

Detailed Description

Constructor & Destructor Documentation

◆ DriveToLocation()

DriveToLocation::DriveToLocation ( SwerveDriveSubsystem drive,
const frc::Pose2d  source,
const units::degree_t  sourceAngle,
const frc::Pose2d  destination,
const units::degree_t  destAngle,
const frc::TrapezoidProfile< units::inches >::Constraints  linearConstraints,
const frc::TrapezoidProfile< units::degrees >::Constraints  rotationalConstraints 
)

Member Function Documentation

◆ End()

void DriveToLocation::End ( bool  interrupted)
override

◆ Execute()

void DriveToLocation::Execute ( )
override

◆ Initialize()

void DriveToLocation::Initialize ( )
override

◆ IsFinished()

bool DriveToLocation::IsFinished ( )
override

Member Data Documentation

◆ m_destAngle

const units::degree_t DriveToLocation::m_destAngle
private

◆ m_destination

const frc::Pose2d DriveToLocation::m_destination
private

◆ m_linearConstraints

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

◆ m_pDrive

SwerveDriveSubsystem* DriveToLocation::m_pDrive
private

◆ m_rotationalConstraints

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

◆ m_source

const frc::Pose2d DriveToLocation::m_source
private

◆ m_sourceAngle

const units::degree_t DriveToLocation::m_sourceAngle
private

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