mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
[examples] Prepare for RobotInit deprecation by updating examples (#6623)
Co-authored-by: Tyler Veness <calcmogul@gmail.com>
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
#include <frc/shuffleboard/Shuffleboard.h>
|
||||
#include <units/pressure.h>
|
||||
|
||||
void Robot::RobotInit() {
|
||||
Robot::Robot() {
|
||||
// Publish elements to shuffleboard.
|
||||
frc::ShuffleboardTab& tab = frc::Shuffleboard::GetTab("Pneumatics");
|
||||
tab.Add("Single Solenoid", m_solenoid);
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
|
||||
class Robot : public frc::TimedRobot {
|
||||
public:
|
||||
void RobotInit() override;
|
||||
Robot();
|
||||
void TeleopPeriodic() override;
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user