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

#include <bash_guard_subsystem.h>

Inheritance diagram for BashGuardSubsystem:

Public Member Functions

 BashGuardSubsystem (argos_lib::RobotInstance instance)
 
void SetExtensionSpeed (double speed)
 Sets bash guard extension speed.
 
void SetExtensionLength (units::inch_t length)
 
void Periodic () override
 
void UpdateBashGuardHome ()
 
bool IsBashGuardHomed ()
 
bool IsBashGuardManualOverride ()
 
void SetBashGuardManualOverride (bool overrideState)
 
units::inch_t GetBashGuardExtension ()
 
bool IsBashGuardMoving ()
 
bool IsBashGuardMPComplete ()
 
void SetHomeFailed (bool failed)
 
bool GetHomeFailed ()
 
ctre::phoenix::motion::BufferedTrajectoryPointStream & GetMPStream ()
 
void StopMotionProfile ()
 
void StartMotionProfile (size_t streamSize)
 
void Disable ()
 
void Stop ()
 
int GetMotorMPBufferCount ()
 
units::inch_t DecomposeBashExtension (const BashGuardPosition &positionEnum)
 

Private Member Functions

void EnableBashGuardSoftLimits ()
 
void DisableBashGuardSoftLimits ()
 

Private Attributes

WPI_TalonFX m_bashGuard
 
argos_lib::NTMotorPIDTuner m_bashTuner
 
bool m_bashGuardManualOverride
 
bool m_bashGuardHomed
 
bool m_bashHomeFailed
 
ctre::phoenix::motion::BufferedTrajectoryPointStream m_bashStream
 

Constructor & Destructor Documentation

◆ BashGuardSubsystem()

BashGuardSubsystem::BashGuardSubsystem ( argos_lib::RobotInstance  instance)
explicit

Member Function Documentation

◆ DecomposeBashExtension()

units::inch_t BashGuardSubsystem::DecomposeBashExtension ( const BashGuardPosition positionEnum)

◆ Disable()

void BashGuardSubsystem::Disable ( )

◆ DisableBashGuardSoftLimits()

void BashGuardSubsystem::DisableBashGuardSoftLimits ( )
private

◆ EnableBashGuardSoftLimits()

void BashGuardSubsystem::EnableBashGuardSoftLimits ( )
private

◆ GetBashGuardExtension()

units::inch_t BashGuardSubsystem::GetBashGuardExtension ( )

◆ GetHomeFailed()

bool BashGuardSubsystem::GetHomeFailed ( )

◆ GetMotorMPBufferCount()

int BashGuardSubsystem::GetMotorMPBufferCount ( )

◆ GetMPStream()

ctre::phoenix::motion::BufferedTrajectoryPointStream & BashGuardSubsystem::GetMPStream ( )

◆ IsBashGuardHomed()

bool BashGuardSubsystem::IsBashGuardHomed ( )
Warning
If homing failed, this could still return true

◆ IsBashGuardManualOverride()

bool BashGuardSubsystem::IsBashGuardManualOverride ( )

◆ IsBashGuardMoving()

bool BashGuardSubsystem::IsBashGuardMoving ( )

◆ IsBashGuardMPComplete()

bool BashGuardSubsystem::IsBashGuardMPComplete ( )

◆ Periodic()

void BashGuardSubsystem::Periodic ( )
override

Will be called periodically whenever the CommandScheduler runs.

◆ SetBashGuardManualOverride()

void BashGuardSubsystem::SetBashGuardManualOverride ( bool  overrideState)

◆ SetExtensionLength()

void BashGuardSubsystem::SetExtensionLength ( units::inch_t  length)

◆ SetExtensionSpeed()

void BashGuardSubsystem::SetExtensionSpeed ( double  speed)

Sets bash guard extension speed.

Parameters
speeddouble, on the interval [-1, 1]

◆ SetHomeFailed()

void BashGuardSubsystem::SetHomeFailed ( bool  failed)

◆ StartMotionProfile()

void BashGuardSubsystem::StartMotionProfile ( size_t  streamSize)

◆ Stop()

void BashGuardSubsystem::Stop ( )

◆ StopMotionProfile()

void BashGuardSubsystem::StopMotionProfile ( )

◆ UpdateBashGuardHome()

void BashGuardSubsystem::UpdateBashGuardHome ( )

Member Data Documentation

◆ m_bashGuard

WPI_TalonFX BashGuardSubsystem::m_bashGuard
private

◆ m_bashGuardHomed

bool BashGuardSubsystem::m_bashGuardHomed
private

◆ m_bashGuardManualOverride

bool BashGuardSubsystem::m_bashGuardManualOverride
private

◆ m_bashHomeFailed

bool BashGuardSubsystem::m_bashHomeFailed
private

◆ m_bashStream

ctre::phoenix::motion::BufferedTrajectoryPointStream BashGuardSubsystem::m_bashStream
private

◆ m_bashTuner

argos_lib::NTMotorPIDTuner BashGuardSubsystem::m_bashTuner
private

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