[examples] Prepare for RobotInit deprecation by updating examples (#6623)

Co-authored-by: Tyler Veness <calcmogul@gmail.com>
This commit is contained in:
Jade
2024-07-17 11:22:39 +08:00
committed by GitHub
parent f62a055608
commit 57fa388724
156 changed files with 260 additions and 355 deletions

View File

@@ -11,8 +11,7 @@ public class Robot extends TimedRobot {
* This function is run when the robot is first started up and should be used for any
* initialization code.
*/
@Override
public void robotInit() {}
public Robot() {}
/** This function is run once each time the robot enters autonomous mode. */
@Override

View File

@@ -5,11 +5,12 @@
#include <frc/TimedRobot.h>
class Robot : public frc::TimedRobot {
public:
/**
* This function is run when the robot is first started up and should be
* used for any initialization code.
*/
void RobotInit() override {}
Robot() {}
/**
* This function is run once each time the robot enters autonomous mode