2023-Robot
Robot code for 2023 FRC season by Argos, FRC team #1756
Loading...
Searching...
No Matches
Robot.h
Go to the documentation of this file.
1
4
5#pragma once
6
8#include <frc/DriverStation.h>
9#include <frc/TimedRobot.h>
10#include <frc2/command/CommandPtr.h>
11
12#include <optional>
13
14#include "RobotContainer.h"
15
16class Robot : public frc::TimedRobot {
17 public:
18 Robot();
19 void RobotInit() override;
20 void RobotPeriodic() override;
21 void DisabledInit() override;
22 void DisabledPeriodic() override;
23 void AutonomousInit() override;
24 void AutonomousPeriodic() override;
25 void TeleopInit() override;
26 void TeleopPeriodic() override;
27 void TestPeriodic() override;
28 void SimulationInit() override;
29 void SimulationPeriodic() override;
30
31 private:
32 // Have it empty by default so that if testing teleop it
33 // doesn't have undefined behavior and potentially crash.
34 frc2::Command* m_pAutonomousCommand;
35 frc::DriverStation::Alliance m_lastAlliance;
36
39};
Definition RobotContainer.h:51
Definition Robot.h:16
void SimulationInit() override
Definition Robot.cpp:94
void SimulationPeriodic() override
Definition Robot.cpp:99
void AutonomousInit() override
Definition Robot.cpp:53
void TeleopPeriodic() override
Definition Robot.cpp:84
argos_lib::Debouncer m_connectedToFieldDebouncer
Definition Robot.h:38
Robot()
Definition Robot.cpp:10
void RobotInit() override
Definition Robot.cpp:12
frc2::Command * m_pAutonomousCommand
Definition Robot.h:34
void DisabledInit() override
Definition Robot.cpp:43
void DisabledPeriodic() override
Definition Robot.cpp:47
frc::DriverStation::Alliance m_lastAlliance
Definition Robot.h:35
void RobotPeriodic() override
Definition Robot.cpp:24
void TeleopInit() override
Definition Robot.cpp:66
void AutonomousPeriodic() override
Definition Robot.cpp:64
RobotContainer m_container
Definition Robot.h:37
void TestPeriodic() override
Definition Robot.cpp:89
Definition debouncer.h:14