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

#include <drive_by_time_vision.h>

Inheritance diagram for DriveByTimeVisionCommand:

Public Member Functions

 DriveByTimeVisionCommand (SwerveDriveSubsystem &swerveDrive, VisionSubsystem &visionSubsystem, bool leftAlignment, units::millisecond_t driveTime)
 Constructs DriveByTimeCommand that drives by a vector with angle robotYaw and power percentSpeed for driveTime milliseconds.
 
void Initialize () override
 
void Execute () override
 
void End (bool interrupted) override
 
bool IsFinished () override
 

Private Attributes

SwerveDriveSubsystemm_swerveDrive
 
VisionSubsystemm_visionSubsystem
 
bool LeftAlignment
 
units::millisecond_t m_driveTime
 
std::chrono::time_point< std::chrono::high_resolution_clock > m_startTime
 
argos_lib::Debouncer m_autoAimDebouncer
 

Detailed Description

Constructor & Destructor Documentation

◆ DriveByTimeVisionCommand()

DriveByTimeVisionCommand::DriveByTimeVisionCommand ( SwerveDriveSubsystem & swerveDrive,
VisionSubsystem & visionSubsystem,
bool leftAlignment,
units::millisecond_t driveTime )

Constructs DriveByTimeCommand that drives by a vector with angle robotYaw and power percentSpeed for driveTime milliseconds.

Parameters
swerveDriveswerve drive subsystem
robotYawDesired heading relative to field
percentSpeedDesired percent speed of drivetrain
driveTimeTime to drive along vector

Member Function Documentation

◆ End()

void DriveByTimeVisionCommand::End ( bool interrupted)
override

◆ Execute()

void DriveByTimeVisionCommand::Execute ( )
override

◆ Initialize()

void DriveByTimeVisionCommand::Initialize ( )
override

◆ IsFinished()

bool DriveByTimeVisionCommand::IsFinished ( )
override

Member Data Documentation

◆ LeftAlignment

bool DriveByTimeVisionCommand::LeftAlignment
private

◆ m_autoAimDebouncer

argos_lib::Debouncer DriveByTimeVisionCommand::m_autoAimDebouncer
private

◆ m_driveTime

units::millisecond_t DriveByTimeVisionCommand::m_driveTime
private

◆ m_startTime

std::chrono::time_point<std::chrono::high_resolution_clock> DriveByTimeVisionCommand::m_startTime
private

◆ m_swerveDrive

SwerveDriveSubsystem& DriveByTimeVisionCommand::m_swerveDrive
private

◆ m_visionSubsystem

VisionSubsystem& DriveByTimeVisionCommand::m_visionSubsystem
private

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