2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
drive_over_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 DriveOverChargingStation : public frc2::CommandHelper<frc2::CommandBase, DriveOverChargingStation> {
14 public:
16 units::degree_t approachAngle,
17 units::degree_t robotYaw,
18 bool extraDrive = true);
19
20 void Initialize() override;
21
22 void Execute() override;
23
24 void End(bool interrupted) override;
25
26 bool IsFinished() override;
27
28 private:
30 const units::degree_t m_approachAngle;
31 units::degree_t m_robotYawAngle;
32 const bool m_extraDrive;
35 frc2::CommandPtr m_commands;
36};
Definition drive_over_charging_station.h:13
const units::degree_t m_approachAngle
Angle of drive direction relative to field-centric.
Definition drive_over_charging_station.h:30
void End(bool interrupted) override
Definition drive_over_charging_station.cpp:88
const bool m_extraDrive
Definition drive_over_charging_station.h:32
void Initialize() override
Definition drive_over_charging_station.cpp:78
SwerveDriveSubsystem * m_pDrive
Raw pointer to swerve drive subsystem object.
Definition drive_over_charging_station.h:29
const bool m_approachForward
Definition drive_over_charging_station.h:33
frc2::CommandPtr m_commands
Commands to execute.
Definition drive_over_charging_station.h:35
const int m_initialPitchSign
Definition drive_over_charging_station.h:34
void Execute() override
Definition drive_over_charging_station.cpp:83
bool IsFinished() override
Definition drive_over_charging_station.cpp:95
units::degree_t m_robotYawAngle
Robot orientation.
Definition drive_over_charging_station.h:31
Subsystem for controlling the swerve drivetrain of the robot.
Definition swerve_drive_subsystem.h:56