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

#include <shooter_subsystem.h>

Inheritance diagram for ShooterSubsystem:

Public Member Functions

 ShooterSubsystem (const argos_lib::RobotInstance robotInstance)
 
void Periodic () override
 
void Shoot (double speed)
 
void Shoot ()
 
void StopShoot ()
 
void Feed (double speed, bool force=false)
 
void Disable ()
 
void ShooterGoToSpeed (units::turns_per_second_t speed)
 
bool IsNotePresent ()
 
bool ReadyToShoot ()
 
void NoteDetectionOverride (bool override)
 
void SetTrapMode (bool trapMode)
 
void SetAmpMode (bool ampMode)
 
bool ShooterAtSpeed ()
 
void SetFeedingShotActive (bool val)
 
bool IsFeedingShotActive ()
 

Private Attributes

ctre::phoenix6::hardware::TalonFX m_primaryMotor
 
ctre::phoenix6::hardware::TalonFX m_secondaryMotor
 
ctre::phoenix::motorcontrol::can::TalonSRX m_feedMotor
 
argos_lib::RobotInstance m_robotInstance
 
ctre::phoenix6::controls::VelocityVoltage m_velocityControl
 
bool m_trapMode
 
bool m_ampMode
 
bool m_isFeederShotActive
 true if we currently want to do a feeding shot
 

Detailed Description

Constructor & Destructor Documentation

◆ ShooterSubsystem()

ShooterSubsystem::ShooterSubsystem ( const argos_lib::RobotInstance  robotInstance)
explicit

Member Function Documentation

◆ Disable()

void ShooterSubsystem::Disable ( )

◆ Feed()

void ShooterSubsystem::Feed ( double  speed,
bool  force = false 
)

◆ IsFeedingShotActive()

bool ShooterSubsystem::IsFeedingShotActive ( )
inline

◆ IsNotePresent()

bool ShooterSubsystem::IsNotePresent ( )

◆ NoteDetectionOverride()

void ShooterSubsystem::NoteDetectionOverride ( bool  override)

◆ Periodic()

void ShooterSubsystem::Periodic ( )
override

◆ ReadyToShoot()

bool ShooterSubsystem::ReadyToShoot ( )

◆ SetAmpMode()

void ShooterSubsystem::SetAmpMode ( bool  ampMode)

◆ SetFeedingShotActive()

void ShooterSubsystem::SetFeedingShotActive ( bool  val)
inline

◆ SetTrapMode()

void ShooterSubsystem::SetTrapMode ( bool  trapMode)

◆ Shoot() [1/2]

void ShooterSubsystem::Shoot ( )

◆ Shoot() [2/2]

void ShooterSubsystem::Shoot ( double  speed)

◆ ShooterAtSpeed()

bool ShooterSubsystem::ShooterAtSpeed ( )

◆ ShooterGoToSpeed()

void ShooterSubsystem::ShooterGoToSpeed ( units::turns_per_second_t  speed)

◆ StopShoot()

void ShooterSubsystem::StopShoot ( )

Member Data Documentation

◆ m_ampMode

bool ShooterSubsystem::m_ampMode
private

◆ m_feedMotor

ctre::phoenix::motorcontrol::can::TalonSRX ShooterSubsystem::m_feedMotor
private

◆ m_isFeederShotActive

bool ShooterSubsystem::m_isFeederShotActive
private

true if we currently want to do a feeding shot

◆ m_primaryMotor

ctre::phoenix6::hardware::TalonFX ShooterSubsystem::m_primaryMotor
private

◆ m_robotInstance

argos_lib::RobotInstance ShooterSubsystem::m_robotInstance
private

◆ m_secondaryMotor

ctre::phoenix6::hardware::TalonFX ShooterSubsystem::m_secondaryMotor
private

◆ m_trapMode

bool ShooterSubsystem::m_trapMode
private

◆ m_velocityControl

ctre::phoenix6::controls::VelocityVoltage ShooterSubsystem::m_velocityControl
private

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