2020-12-26 14:12:05 -08: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.
|
2019-08-25 23:55:59 -04:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2025-11-07 19:57:55 -05:00
|
|
|
#include <wpi/commands2/Command.hpp>
|
|
|
|
|
#include <wpi/opmode/TimedRobot.hpp>
|
2019-08-25 23:55:59 -04:00
|
|
|
|
2025-11-07 19:56:21 -05:00
|
|
|
#include "RobotContainer.hpp"
|
2019-08-25 23:55:59 -04:00
|
|
|
|
|
|
|
|
class Robot : public frc::TimedRobot {
|
|
|
|
|
public:
|
2024-07-17 11:22:39 +08:00
|
|
|
Robot();
|
2019-08-25 23:55:59 -04:00
|
|
|
void RobotPeriodic() override;
|
|
|
|
|
void DisabledInit() override;
|
|
|
|
|
void DisabledPeriodic() override;
|
|
|
|
|
void AutonomousInit() override;
|
|
|
|
|
void AutonomousPeriodic() override;
|
|
|
|
|
void TeleopInit() override;
|
|
|
|
|
void TeleopPeriodic() override;
|
|
|
|
|
void TestPeriodic() override;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
// Have it null by default so that if testing teleop it
|
|
|
|
|
// doesn't have undefined behavior and potentially crash.
|
|
|
|
|
frc2::Command* m_autonomousCommand = nullptr;
|
|
|
|
|
|
|
|
|
|
RobotContainer m_container;
|
|
|
|
|
};
|