2024-Robot
Robot code for 2024 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
climber_homing_command.h
Go to the documentation of this file.
1
4
5#pragma once
6
9#include <frc2/command/Command.h>
10#include <frc2/command/CommandHelper.h>
12
13class ClimberHomingCommand : public frc2::CommandHelper<frc2::Command, ClimberHomingCommand> {
14 public:
15 explicit ClimberHomingCommand(ClimberSubsystem& subsystem, const argos_lib::RobotInstance instance);
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:
28 std::chrono::time_point<std::chrono::steady_clock> m_startTime;
30};
Definition climber_homing_command.h:13
std::chrono::time_point< std::chrono::steady_clock > m_startTime
Definition climber_homing_command.h:28
bool IsFinished() override
Definition climber_homing_command.cpp:49
ClimberSubsystem & m_climberSubsystem
Definition climber_homing_command.h:26
const argos_lib::RobotInstance m_instance
Definition climber_homing_command.h:29
argos_lib::Debouncer m_climberMovingDebounce
Definition climber_homing_command.h:27
void Execute() override
Definition climber_homing_command.cpp:26
void Initialize() override
Definition climber_homing_command.cpp:18
void End(bool interrupted) override
Definition climber_homing_command.cpp:38
Definition climber_subsystem.h:13
Definition debouncer.h:14
RobotInstance
Differentiates between practice robot and competition robot.
Definition config_types.h:13