#include <drive_to_position.h>
|
| DriveToPosition (SwerveDriveSubsystem *drive, const frc::Pose2d source, const units::degree_t sourceAngle, const frc::Pose2d destination, const units::degree_t destAngle, const frc::TrapezoidProfile< units::inches >::Constraints linearConstraints, const frc::TrapezoidProfile< units::degrees >::Constraints rotationalConstraints, const units::feet_per_second_t initialVelocity=0_fps, const units::feet_per_second_t finalVelocity=0_fps) |
|
void | Initialize () override |
|
void | Execute () override |
|
void | End (bool interrupted) override |
|
bool | IsFinished () override |
|
- 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.
◆ DriveToPosition()
DriveToPosition::DriveToPosition |
( |
SwerveDriveSubsystem * |
drive, |
|
|
const frc::Pose2d |
source, |
|
|
const units::degree_t |
sourceAngle, |
|
|
const frc::Pose2d |
destination, |
|
|
const units::degree_t |
destAngle, |
|
|
const frc::TrapezoidProfile< units::inches >::Constraints |
linearConstraints, |
|
|
const frc::TrapezoidProfile< units::degrees >::Constraints |
rotationalConstraints, |
|
|
const units::feet_per_second_t |
initialVelocity = 0_fps , |
|
|
const units::feet_per_second_t |
finalVelocity = 0_fps |
|
) |
| |
- 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 DriveToPosition::End |
( |
bool |
interrupted | ) |
|
|
override |
◆ Execute()
void DriveToPosition::Execute |
( |
| ) |
|
|
override |
◆ Initialize()
void DriveToPosition::Initialize |
( |
| ) |
|
|
override |
◆ IsFinished()
bool DriveToPosition::IsFinished |
( |
| ) |
|
|
override |
◆ m_destAngle
const units::degree_t DriveToPosition::m_destAngle |
|
private |
◆ m_destination
const frc::Pose2d DriveToPosition::m_destination |
|
private |
◆ m_finalVelocity
const units::feet_per_second_t DriveToPosition::m_finalVelocity |
|
private |
◆ m_initialVelocity
const units::feet_per_second_t DriveToPosition::m_initialVelocity |
|
private |
◆ m_linearConstraints
const frc::TrapezoidProfile<units::inches>::Constraints DriveToPosition::m_linearConstraints |
|
private |
◆ m_pDrive
◆ m_rotationalConstraints
const frc::TrapezoidProfile<units::degrees>::Constraints DriveToPosition::m_rotationalConstraints |
|
private |
◆ m_source
const frc::Pose2d DriveToPosition::m_source |
|
private |
◆ m_sourceAngle
const units::degree_t DriveToPosition::m_sourceAngle |
|
private |
The documentation for this class was generated from the following files: