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

#include <drive_over_charging_station.h>

Inheritance diagram for DriveOverChargingStation:

Public Member Functions

 DriveOverChargingStation (SwerveDriveSubsystem *drive, units::degree_t approachAngle, units::degree_t robotYaw, bool extraDrive=true)
 
void Initialize () override
 
void Execute () override
 
void End (bool interrupted) override
 
bool IsFinished () override
 

Private Attributes

SwerveDriveSubsystemm_pDrive
 Raw pointer to swerve drive subsystem object.
 
const units::degree_t m_approachAngle
 Angle of drive direction relative to field-centric.
 
units::degree_t m_robotYawAngle
 Robot orientation.
 
const bool m_extraDrive
 
const bool m_approachForward
 
const int m_initialPitchSign
 
frc2::CommandPtr m_commands
 Commands to execute.
 

Detailed Description

Constructor & Destructor Documentation

◆ DriveOverChargingStation()

DriveOverChargingStation::DriveOverChargingStation ( SwerveDriveSubsystem drive,
units::degree_t  approachAngle,
units::degree_t  robotYaw,
bool  extraDrive = true 
)

Member Function Documentation

◆ End()

void DriveOverChargingStation::End ( bool  interrupted)
override

◆ Execute()

void DriveOverChargingStation::Execute ( )
override

◆ Initialize()

void DriveOverChargingStation::Initialize ( )
override

◆ IsFinished()

bool DriveOverChargingStation::IsFinished ( )
override

Member Data Documentation

◆ m_approachAngle

const units::degree_t DriveOverChargingStation::m_approachAngle
private

Angle of drive direction relative to field-centric.

◆ m_approachForward

const bool DriveOverChargingStation::m_approachForward
private

◆ m_commands

frc2::CommandPtr DriveOverChargingStation::m_commands
private

Commands to execute.

◆ m_extraDrive

const bool DriveOverChargingStation::m_extraDrive
private

◆ m_initialPitchSign

const int DriveOverChargingStation::m_initialPitchSign
private

◆ m_pDrive

SwerveDriveSubsystem* DriveOverChargingStation::m_pDrive
private

Raw pointer to swerve drive subsystem object.

◆ m_robotYawAngle

units::degree_t DriveOverChargingStation::m_robotYawAngle
private

Robot orientation.


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