#include <drive_by_time_vision.h>
- Copyright
- Copyright (c) Argos FRC Team 1756. Open Source Software; you can modify and/or share it under the terms of the license file in the root directory of this project.
◆ 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
-
| swerveDrive | swerve drive subsystem |
| robotYaw | Desired heading relative to field |
| percentSpeed | Desired percent speed of drivetrain |
| driveTime | Time to drive along vector |
- Copyright
- Copyright (c) Argos FRC Team 1756. Open Source Software; you can modify and/or share it under the terms of the license file in the root directory of this project.
◆ End()
| void DriveByTimeVisionCommand::End |
( |
bool | interrupted | ) |
|
|
override |
◆ Execute()
| void DriveByTimeVisionCommand::Execute |
( |
| ) |
|
|
override |
◆ Initialize()
| void DriveByTimeVisionCommand::Initialize |
( |
| ) |
|
|
override |
◆ IsFinished()
| bool DriveByTimeVisionCommand::IsFinished |
( |
| ) |
|
|
override |
◆ LeftAlignment
| bool DriveByTimeVisionCommand::LeftAlignment |
|
private |
◆ m_autoAimDebouncer
◆ 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
◆ m_visionSubsystem
The documentation for this class was generated from the following files: