#include <auto_aim_command.h>
|
| std::optional< AimParams > | GetAimParams () |
| | Read latest vision targets from vision subsystem and generate parameters useful for aiming.
|
| |
| std::optional< units::degree_t > | GetAdjustmentOffset (const std::optional< AimParams > ¶ms) |
| | Calculate angle offset to aim toward vision target.
|
| |
| bool | Aimed (const std::optional< AimParams > ¶ms) |
| | Check if robot is currently aimed at vision target.
|
| |
| bool | Aim (const std::optional< AimParams > ¶ms) |
| | Aim at vision target.
|
| |
| void | SetOperatorFeedback (const std::optional< AimParams > ¶ms) |
| | Set LEDs and vibration based on aiming status.
|
| |
- 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.
◆ AutoAimCommand()
- 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.
◆ Aim()
| bool AutoAimCommand::Aim |
( |
const std::optional< AimParams > & |
params | ) |
|
|
private |
Aim at vision target.
- Parameters
-
| params | Aiming parameters generated from vision subsystem |
- Returns
- true indicates robot is aimed, false if not aimed or no target found
◆ Aimed()
| bool AutoAimCommand::Aimed |
( |
const std::optional< AimParams > & |
params | ) |
|
|
private |
Check if robot is currently aimed at vision target.
- Parameters
-
| params | Aiming parameters generated from vision subsystem |
- Returns
- true indicates robot is aimed, false if not aimed or no target found
◆ End()
| void AutoAimCommand::End |
( |
bool |
interrupted | ) |
|
|
override |
◆ Execute()
| void AutoAimCommand::Execute |
( |
| ) |
|
|
override |
◆ GetAdjustmentOffset()
| std::optional< units::degree_t > AutoAimCommand::GetAdjustmentOffset |
( |
const std::optional< AimParams > & |
params | ) |
|
|
private |
Calculate angle offset to aim toward vision target.
- Parameters
-
| params | Aiming parameters generated from vision subsystem |
- Returns
- std::nullopt if no target found, otherwise offset angle
◆ GetAimParams()
Read latest vision targets from vision subsystem and generate parameters useful for aiming.
- Returns
- std::nullopt if no target found, otherwise parameters for aiming to vision target
◆ Initialize()
| void AutoAimCommand::Initialize |
( |
| ) |
|
|
override |
◆ IsFinished()
| bool AutoAimCommand::IsFinished |
( |
| ) |
|
|
override |
◆ SetOperatorFeedback()
| void AutoAimCommand::SetOperatorFeedback |
( |
const std::optional< AimParams > & |
params | ) |
|
|
private |
Set LEDs and vibration based on aiming status.
- Parameters
-
| params | Aiming parameters generated from vision subsystem |
◆ m_aimedDebouncer
◆ m_endWhenAimed
| bool AutoAimCommand::m_endWhenAimed |
|
private |
◆ m_pControllers
◆ m_pElevator
◆ m_pLeds
◆ m_pShooter
◆ m_pSwerveDrive
◆ m_pVision
◆ m_startTime
| std::chrono::time_point<std::chrono::steady_clock> AutoAimCommand::m_startTime |
|
private |
The documentation for this class was generated from the following files: