#include <drive_by_time_command.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.
◆ DriveByTimeCommand()
| DriveByTimeCommand::DriveByTimeCommand |
( |
SwerveDriveSubsystem & |
swerveDrive, |
|
|
units::degree_t |
robotYaw, |
|
|
double |
percentSpeed, |
|
|
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 DriveByTimeCommand::End |
( |
bool |
interrupted | ) |
|
|
override |
◆ Execute()
| void DriveByTimeCommand::Execute |
( |
| ) |
|
|
override |
◆ Initialize()
| void DriveByTimeCommand::Initialize |
( |
| ) |
|
|
override |
◆ IsFinished()
| bool DriveByTimeCommand::IsFinished |
( |
| ) |
|
|
override |
◆ m_driveTime
| units::millisecond_t DriveByTimeCommand::m_driveTime |
|
private |
◆ m_percentSpeed
| double DriveByTimeCommand::m_percentSpeed |
|
private |
◆ m_robotYaw
| units::degree_t DriveByTimeCommand::m_robotYaw |
|
private |
◆ m_startTime
| std::chrono::time_point<std::chrono::high_resolution_clock> DriveByTimeCommand::m_startTime |
|
private |
◆ m_swerveDrive
The documentation for this class was generated from the following files: