Last active
May 15, 2017 21:07
-
-
Save maxchehab/682cda29255aceedb4089fec76c7b77f 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 java.util.ArrayList; | |
import java.util.List; | |
import org.opencv.core.Core; | |
import org.opencv.core.Mat; | |
import org.opencv.core.Point; | |
import org.opencv.core.Scalar; | |
import org.opencv.imgproc.Imgproc; | |
import edu.wpi.cscore.CvSink; | |
import edu.wpi.cscore.CvSource; | |
import edu.wpi.cscore.UsbCamera; | |
import edu.wpi.first.wpilibj.CameraServer; | |
import edu.wpi.first.wpilibj.IterativeRobot; | |
import edu.wpi.first.wpilibj.Joystick; | |
import edu.wpi.first.wpilibj.RobotDrive; | |
import edu.wpi.first.wpilibj.Spark; | |
import edu.wpi.first.wpilibj.Victor; | |
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 { | |
@Override | |
public void teleopPeriodic() { | |
/*Allowing the robot to drive using the stick as input | |
* | |
* We make the x-axis negative to inverse the stick (So it feels good) | |
* */ | |
} | |
/** | |
* 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