2018-03-05 22:06:40 -08:00
|
|
|
/*----------------------------------------------------------------------------*/
|
|
|
|
|
/* Copyright (c) 2017-2018 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
|
|
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
|
|
|
|
|
|
#include <SmartDashboard/SendableChooser.h>
|
|
|
|
|
#include <TimedRobot.h>
|
|
|
|
|
|
|
|
|
|
class Robot : public frc::TimedRobot {
|
2018-05-13 17:09:56 -07:00
|
|
|
public:
|
|
|
|
|
void RobotInit() override;
|
2018-06-10 20:16:54 -07:00
|
|
|
void RobotPeriodic() override;
|
2018-05-13 17:09:56 -07:00
|
|
|
void AutonomousInit() override;
|
|
|
|
|
void AutonomousPeriodic() override;
|
|
|
|
|
void TeleopInit() override;
|
|
|
|
|
void TeleopPeriodic() override;
|
|
|
|
|
void TestPeriodic() override;
|
2018-03-05 22:06:40 -08:00
|
|
|
|
2018-05-13 17:09:56 -07:00
|
|
|
private:
|
|
|
|
|
frc::SendableChooser<std::string> m_chooser;
|
|
|
|
|
const std::string kAutoNameDefault = "Default";
|
|
|
|
|
const std::string kAutoNameCustom = "My Auto";
|
|
|
|
|
std::string m_autoSelected;
|
2018-03-05 22:06:40 -08:00
|
|
|
};
|