[examples] Add missing TestInit method to GettingStarted Example (#3039)

This commit is contained in:
sciencewhiz
2021-01-02 22:00:25 -08:00
committed by GitHub
parent e45a0f6ce2
commit 1fd09593cf
2 changed files with 6 additions and 0 deletions

View File

@@ -39,6 +39,8 @@ class Robot : public frc::TimedRobot {
m_robotDrive.ArcadeDrive(m_stick.GetY(), m_stick.GetX());
}
void TestInit() override {}
void TestPeriodic() override {}
private:

View File

@@ -57,6 +57,10 @@ public class Robot extends TimedRobot {
m_robotDrive.arcadeDrive(m_stick.getY(), m_stick.getX());
}
/** This function is called once each time the robot enters test mode. */
@Override
public void testInit() {}
/** This function is called periodically during test mode. */
@Override
public void testPeriodic() {}