Last active
April 21, 2017 21:06
-
-
Save maxchehab/12552743c664208c3fb09c0b3f749ccf to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package org.usfirst.frc.team8080.robot; | |
import edu.wpi.first.wpilibj.IterativeRobot; | |
import edu.wpi.first.wpilibj.Joystick; | |
import edu.wpi.first.wpilibj.RobotDrive; | |
import edu.wpi.first.wpilibj.livewindow.LiveWindow; | |
/** | |
* The VM is configured to automatically run this class, and to call the | |
* functions corresponding to each mode, as described in the IterativeRobot | |
* documentation. If you change the name of this class or the package after | |
* creating this project, you must also update the manifest file in the resource | |
* directory. | |
*/ | |
public class Robot extends IterativeRobot { | |
RobotDrive robot = new RobotDrive(0,1,2,3); | |
Joystick stick = new Joystick(0); | |
@Override | |
public void teleopPeriodic() { | |
robot.arcadeDrive(stick); | |
} | |
/** | |
* This function is run when the robot is first started up and should be | |
* used for any initialization code. | |
*/ | |
@Override | |
public void robotInit() { | |
} | |
/** | |
* This function is run once each time the robot enters autonomous mode | |
*/ | |
@Override | |
public void autonomousInit() { | |
} | |
/** | |
* This function is called periodically during autonomous | |
*/ | |
@Override | |
public void autonomousPeriodic() { | |
} | |
/** | |
* This function is called once each time the robot enters tele-operated | |
* mode | |
*/ | |
@Override | |
public void teleopInit() { | |
} | |
/** | |
* This function is called periodically during operator control | |
*/ | |
/** | |
* This function is called periodically during test mode | |
*/ | |
@Override | |
public void testPeriodic() { | |
LiveWindow.run(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment