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

#include <balance_charging_station.h>

Inheritance diagram for BalanceChargingStation:

Public Member Functions

 BalanceChargingStation (SwerveDriveSubsystem *drive, units::degree_t approachAngle, units::degree_t robotYaw)
 
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_approachForward
 
const int m_initialPitchSign
 
frc2::CommandPtr m_commands
 Commands to execute.
 

Detailed Description

Constructor & Destructor Documentation

◆ BalanceChargingStation()

BalanceChargingStation::BalanceChargingStation ( SwerveDriveSubsystem drive,
units::degree_t  approachAngle,
units::degree_t  robotYaw 
)

Member Function Documentation

◆ End()

void BalanceChargingStation::End ( bool  interrupted)
override

◆ Execute()

void BalanceChargingStation::Execute ( )
override

◆ Initialize()

void BalanceChargingStation::Initialize ( )
override

◆ IsFinished()

bool BalanceChargingStation::IsFinished ( )
override

Member Data Documentation

◆ m_approachAngle

const units::degree_t BalanceChargingStation::m_approachAngle
private

Angle of drive direction relative to field-centric.

◆ m_approachForward

const bool BalanceChargingStation::m_approachForward
private

◆ m_commands

frc2::CommandPtr BalanceChargingStation::m_commands
private

Commands to execute.

◆ m_initialPitchSign

const int BalanceChargingStation::m_initialPitchSign
private

◆ m_pDrive

SwerveDriveSubsystem* BalanceChargingStation::m_pDrive
private

Raw pointer to swerve drive subsystem object.

◆ m_robotYawAngle

units::degree_t BalanceChargingStation::m_robotYawAngle
private

Robot orientation.


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