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-07-15 18:09:47 -07:00
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
2019-11-05 21:33:09 -08:00
|
|
|
#include <atomic>
|
|
|
|
|
|
2019-07-15 18:09:47 -07:00
|
|
|
#include <frc/RobotBase.h>
|
|
|
|
|
|
|
|
|
|
class Robot : public frc::RobotBase {
|
|
|
|
|
public:
|
2024-07-17 11:22:39 +08:00
|
|
|
Robot();
|
2019-07-15 18:09:47 -07:00
|
|
|
void Disabled();
|
|
|
|
|
void Autonomous();
|
|
|
|
|
void Teleop();
|
|
|
|
|
void Test();
|
|
|
|
|
|
|
|
|
|
void StartCompetition() override;
|
2019-11-05 21:33:09 -08:00
|
|
|
void EndCompetition() override;
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
|
std::atomic<bool> m_exit{false};
|
2019-07-15 18:09:47 -07:00
|
|
|
};
|