2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
initialize_odometry_command.h
Go to the documentation of this file.
1
4
5#pragma once
6
7#include <frc/geometry/Pose2d.h>
8#include <frc2/command/CommandBase.h>
9#include <frc2/command/CommandHelper.h>
10
12
13class InitializeOdometryCommand : public frc2::CommandHelper<frc2::CommandBase, InitializeOdometryCommand> {
14 public:
15 InitializeOdometryCommand(SwerveDriveSubsystem* pDrive, frc::Pose2d initialPose);
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 frc::Pose2d m_initialPose;
28};
Definition initialize_odometry_command.h:13
void Execute() override
Definition initialize_odometry_command.cpp:18
frc::Pose2d m_initialPose
Definition initialize_odometry_command.h:27
void End(bool interrupted) override
Definition initialize_odometry_command.cpp:21
void Initialize() override
Definition initialize_odometry_command.cpp:13
bool IsFinished() override
Definition initialize_odometry_command.cpp:24
SwerveDriveSubsystem * m_pDrive
Definition initialize_odometry_command.h:26
Subsystem for controlling the swerve drivetrain of the robot.
Definition swerve_drive_subsystem.h:56