blob: f339b95a8457d7a9fb6d08e53abd5fea755f0838 [file] [log] [blame]
Austin Schuh812d0d12021-11-04 20:16:48 -07001// Copyright (c) FIRST and other WPILib contributors.
2// Open Source Software; you can modify and/or share it under the terms of
3// the WPILib BSD license file in the root directory of this project.
Brian Silverman8fce7482020-01-05 13:18:21 -08004
5#include <frc/TimedRobot.h>
6
7class MyRobot : public frc::TimedRobot {
8 /**
9 * This function is run when the robot is first started up and should be
10 * used for any initialization code.
11 */
12 void RobotInit() override {}
13
14 /**
15 * This function is run once each time the robot enters autonomous mode
16 */
17 void AutonomousInit() override {}
18
19 /**
20 * This function is called periodically during autonomous
21 */
22 void AutonomousPeriodic() override {}
23
24 /**
25 * This function is called once each time the robot enters tele-operated mode
26 */
27 void TeleopInit() override {}
28
29 /**
30 * This function is called periodically during operator control
31 */
32 void TeleopPeriodic() override {}
33
34 /**
35 * This function is called periodically during test mode
36 */
37 void TestPeriodic() override {}
38
39 /**
40 * This function is called periodically during all modes
41 */
42 void RobotPeriodic() override {}
43};
44
Austin Schuh812d0d12021-11-04 20:16:48 -070045int main() {
46 return frc::StartRobot<MyRobot>();
47}