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

#include <auto_position_aim_command.h>

Inheritance diagram for AutoPositionAimCommand:

Public Member Functions

 AutoPositionAimCommand (ShooterSubsystem *shootSys, frc::Pose2d shootingPosition)
 
void Initialize () override
 
void Execute () override
 
void End (bool interrupted) override
 
bool IsFinished () override
 

Private Member Functions

units::degree_t GetOffsetAngle (frc::Translation2d curPos, frc::Translation2d target)
 
units::degree_t GetAngleToPoint (frc::Translation2d curPos, frc::Translation2d target)
 
units::degree_t GetTurretAngleToTarget (frc::Pose2d curRobotPos, frc::Translation2d target)
 

Private Attributes

ShooterSubsystemm_pShooter
 
frc::Pose2d m_shootingPosition
 
argos_lib::Debouncer m_threshDebounce
 
std::chrono::time_point< std::chrono::steady_clock > m_startTime
 When the command began. More...
 

Detailed Description

Constructor & Destructor Documentation

◆ AutoPositionAimCommand()

AutoPositionAimCommand::AutoPositionAimCommand ( ShooterSubsystem shootSys,
frc::Pose2d  shootingPosition 
)
explicit

Member Function Documentation

◆ End()

void AutoPositionAimCommand::End ( bool  interrupted)
override

◆ Execute()

void AutoPositionAimCommand::Execute ( )
override

◆ GetAngleToPoint()

units::degree_t AutoPositionAimCommand::GetAngleToPoint ( frc::Translation2d  curPos,
frc::Translation2d  target 
)
private

◆ GetOffsetAngle()

units::degree_t AutoPositionAimCommand::GetOffsetAngle ( frc::Translation2d  curPos,
frc::Translation2d  target 
)
private

◆ GetTurretAngleToTarget()

units::degree_t AutoPositionAimCommand::GetTurretAngleToTarget ( frc::Pose2d  curRobotPos,
frc::Translation2d  target 
)
private

◆ Initialize()

void AutoPositionAimCommand::Initialize ( )
override

◆ IsFinished()

bool AutoPositionAimCommand::IsFinished ( )
override

Member Data Documentation

◆ m_pShooter

ShooterSubsystem* AutoPositionAimCommand::m_pShooter
private

◆ m_shootingPosition

frc::Pose2d AutoPositionAimCommand::m_shootingPosition
private

◆ m_startTime

std::chrono::time_point<std::chrono::steady_clock> AutoPositionAimCommand::m_startTime
private

When the command began.

◆ m_threshDebounce

argos_lib::Debouncer AutoPositionAimCommand::m_threshDebounce
private

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