mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-21 01:01:43 +00:00
Initial checkin of unified hierarchy of WPILib 2015
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
//============================================================================
|
||||
// Name : Robot.cpp
|
||||
// Author :
|
||||
// Version :
|
||||
// Copyright :
|
||||
// Description : Hello World in C++, Ansi-style
|
||||
//============================================================================
|
||||
|
||||
//============================================================================
|
||||
// Name : Robot.cpp
|
||||
// Author :
|
||||
// Version :
|
||||
// Copyright :
|
||||
// Description : Hello World in C++, Ansi-style
|
||||
//============================================================================
|
||||
|
||||
#include "WPILib.h"
|
||||
|
||||
class Robot : public IterativeRobot {
|
||||
private:
|
||||
LiveWindow *lw;
|
||||
|
||||
virtual void RobotInit() {
|
||||
lw = LiveWindow::GetInstance();
|
||||
}
|
||||
|
||||
virtual void AutonomousInit() {
|
||||
|
||||
}
|
||||
|
||||
virtual void AutonomousPeriodic() {
|
||||
|
||||
}
|
||||
|
||||
virtual void TeleopInit() {
|
||||
|
||||
}
|
||||
|
||||
virtual void TeleopPeriodic() {
|
||||
|
||||
}
|
||||
|
||||
virtual void TestPeriodic() {
|
||||
lw->Run();
|
||||
}
|
||||
};
|
||||
|
||||
START_ROBOT_CLASS(Robot);
|
||||
Reference in New Issue
Block a user