blob: ff066d88441200f16f4de03350e620caac2caf4d [file] [log] [blame]
Brian Silverman41cdd3e2019-01-19 19:48:58 -08001/*----------------------------------------------------------------------------*/
2/* Copyright (c) 2016-2018 FIRST. All Rights Reserved. */
3/* Open Source Software - may be modified and shared by FRC teams. The code */
4/* must be accompanied by the FIRST BSD license file in the root directory of */
5/* the project. */
6/*----------------------------------------------------------------------------*/
7
8#include <frc/TimedRobot.h>
9
10class MyRobot : public frc::TimedRobot {
11 /**
12 * This function is run when the robot is first started up and should be
13 * used for any initialization code.
14 */
15 void RobotInit() override {}
16
17 /**
18 * This function is run once each time the robot enters autonomous mode
19 */
20 void AutonomousInit() override {}
21
22 /**
23 * This function is called periodically during autonomous
24 */
25 void AutonomousPeriodic() override {}
26
27 /**
28 * This function is called once each time the robot enters tele-operated mode
29 */
30 void TeleopInit() override {}
31
32 /**
33 * This function is called periodically during operator control
34 */
35 void TeleopPeriodic() override {}
36
37 /**
38 * This function is called periodically during test mode
39 */
40 void TestPeriodic() override {}
41
42 /**
43 * This function is called periodically during all modes
44 */
45 void RobotPeriodic() override {}
46};
47
48int main() { return frc::StartRobot<MyRobot>(); }