[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

@@ -4,7 +4,7 @@
#include "Robot.h"
void Robot::RobotInit() {
Robot::Robot() {
// Default to a length of 60, start empty output
// Length is expensive to set, so only set it once, then just update data
m_led.SetLength(kLength);

View File

@@ -12,7 +12,7 @@
class Robot : public frc::TimedRobot {
public:
void RobotInit() override;
Robot();
void RobotPeriodic() override;
private: