2019-07-15 18:09:47 -07:00
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
/* Copyright (c) 2018-2019 FIRST. All Rights Reserved. */
|
|
|
|
|
/* Open Source Software - may be modified and shared by FRC teams. The code */
|
|
|
|
|
/* must be accompanied by the FIRST BSD license file in the root directory of */
|
|
|
|
|
/* the project. */
|
|
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
|
|
|
|
|
#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:
|
|
|
|
|
void RobotInit();
|
|
|
|
|
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
|
|
|
};
|