2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
balance_charging_station.h
Go to the documentation of this file.
1
4
5#pragma once
6
7#include <frc2/command/CommandBase.h>
8#include <frc2/command/CommandHelper.h>
9#include <frc2/command/SequentialCommandGroup.h>
10
12
13class BalanceChargingStation : public frc2::CommandHelper<frc2::CommandBase, BalanceChargingStation> {
14 public:
15 BalanceChargingStation(SwerveDriveSubsystem* drive, units::degree_t approachAngle, units::degree_t robotYaw);
16
17 void Initialize() override;
18
19 void Execute() override;
20
21 void End(bool interrupted) override;
22
23 bool IsFinished() override;
24
25 private:
27 const units::degree_t m_approachAngle;
28 units::degree_t m_robotYawAngle;
31 frc2::CommandPtr m_commands;
32};
Definition balance_charging_station.h:13
bool IsFinished() override
Definition balance_charging_station.cpp:104
void Initialize() override
Definition balance_charging_station.cpp:87
void Execute() override
Definition balance_charging_station.cpp:92
units::degree_t m_robotYawAngle
Robot orientation.
Definition balance_charging_station.h:28
void End(bool interrupted) override
Definition balance_charging_station.cpp:97
const units::degree_t m_approachAngle
Angle of drive direction relative to field-centric.
Definition balance_charging_station.h:27
SwerveDriveSubsystem * m_pDrive
Raw pointer to swerve drive subsystem object.
Definition balance_charging_station.h:26
const bool m_approachForward
Definition balance_charging_station.h:29
frc2::CommandPtr m_commands
Commands to execute.
Definition balance_charging_station.h:31
const int m_initialPitchSign
Definition balance_charging_station.h:30
Subsystem for controlling the swerve drivetrain of the robot.
Definition swerve_drive_subsystem.h:56