8#include <frc/smartdashboard/SmartDashboard.h>
9#include <frc2/command/CommandBase.h>
10#include <frc2/command/CommandHelper.h>
11#include <frc2/command/CommandPtr.h>
12#include <frc2/command/InstantCommand.h>
26class ScoreConeCommand :
public frc2::CommandHelper<frc2::CommandBase, ScoreConeCommand> {
34 void End(
bool interrupted)
override;
40 units::inch_t xOffset,
41 units::inch_t zOffset) {
42 frc::SmartDashboard::PutNumber(
"(GetRelativePose) Init(X)", units::inch_t(initPosition.X()).to<
double>());
43 frc::SmartDashboard::PutNumber(
"(GetRelativePose) Init(Y)", units::inch_t(initPosition.Y()).to<
double>());
44 frc::Translation2d returnPos = frc::Translation2d{initPosition.X() + xOffset, initPosition.Y() + zOffset};
45 frc::SmartDashboard::PutNumber(
"(GetRelativePose) Relative Pose Calculated(X)",
46 units::inch_t(returnPos.X()).to<
double>());
47 frc::SmartDashboard::PutNumber(
"(GetRelativePose) Relative Pose Calculated(Y)",
48 units::inch_t(returnPos.Y()).to<
double>());
Definition bash_guard_subsystem.h:14
Definition intake_subsystem.h:17
Definition lifter_subsystem.h:26
Definition score_cone_command.h:26
frc2::CommandPtr m_allCommands
Definition score_cone_command.h:57
frc2::InstantCommand m_retractIntake
Definition score_cone_command.h:56
bool IsFinished() override
Definition score_cone_command.cpp:79
void Execute() override
Definition score_cone_command.cpp:59
static frc::Translation2d GetRelativePose(const frc::Translation2d &initPosition, units::inch_t xOffset, units::inch_t zOffset)
Definition score_cone_command.h:39
void Initialize() override
Definition score_cone_command.cpp:23
LifterSubsystem & m_lifter
Definition score_cone_command.h:52
void End(bool interrupted) override
Definition score_cone_command.cpp:71
IntakeSubsystem & m_intake
Definition score_cone_command.h:53
BashGuardSubsystem & m_bash
Definition score_cone_command.h:54