2022-12-31 16:18:43 -05:00
|
|
|
// Copyright (c) FIRST and other WPILib contributors.
|
|
|
|
|
// Open Source Software; you can modify and/or share it under the terms of
|
|
|
|
|
// the WPILib BSD license file in the root directory of this project.
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <optional>
|
|
|
|
|
|
|
|
|
|
#include <frc/TimedRobot.h>
|
|
|
|
|
#include <frc2/command/CommandPtr.h>
|
|
|
|
|
|
|
|
|
|
#include "RobotContainer.h"
|
|
|
|
|
|
|
|
|
|
class Robot : public frc::TimedRobot {
|
|
|
|
|
public:
|
2024-07-17 11:22:39 +08:00
|
|
|
Robot();
|
2022-12-31 16:18:43 -05:00
|
|
|
void RobotPeriodic() override;
|
|
|
|
|
void DisabledInit() override;
|
|
|
|
|
void DisabledPeriodic() override;
|
|
|
|
|
void DisabledExit() override;
|
|
|
|
|
void AutonomousInit() override;
|
|
|
|
|
void AutonomousPeriodic() override;
|
|
|
|
|
void AutonomousExit() override;
|
|
|
|
|
void TeleopInit() override;
|
|
|
|
|
void TeleopPeriodic() override;
|
|
|
|
|
void TeleopExit() override;
|
|
|
|
|
void TestInit() override;
|
|
|
|
|
void TestPeriodic() override;
|
|
|
|
|
void TestExit() override;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
std::optional<frc2::CommandPtr> m_autonomousCommand;
|
|
|
|
|
|
|
|
|
|
RobotContainer m_container;
|
|
|
|
|
};
|