Austin Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame^] | 1 | // 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 Silverman | 8fce748 | 2020-01-05 13:18:21 -0800 | [diff] [blame] | 4 | |
| 5 | #include <frc/TimedRobot.h> |
| 6 | |
| 7 | class 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 Schuh | 812d0d1 | 2021-11-04 20:16:48 -0700 | [diff] [blame^] | 45 | int main() { |
| 46 | return frc::StartRobot<MyRobot>(); |
| 47 | } |