declare and initiate client socket
authorCindy Zhang <cindyzyx9@gmail.com>
Wed, 17 Feb 2016 23:58:06 +0000 (15:58 -0800)
committerCindy Zhang <cindyzyx9@gmail.com>
Wed, 17 Feb 2016 23:58:06 +0000 (15:58 -0800)
src/org/usfirst/frc/team3501/robot/Robot.java

index 80d786762994a72067d56a36d2d4c8ce7d1cb29e..1545a81bfb915599168c0e03afae490341981205 100644 (file)
@@ -1,5 +1,8 @@
 package org.usfirst.frc.team3501.robot;
 
+import java.io.IOException;
+import java.net.Socket;
+
 import org.usfirst.frc.team3501.robot.Constants.Defense;
 import org.usfirst.frc.team3501.robot.subsystems.DefenseArm;
 import org.usfirst.frc.team3501.robot.subsystems.DriveTrain;
@@ -25,10 +28,18 @@ public class Robot extends IterativeRobot {
   // Sendable Choosers send a drop down menu to the Smart Dashboard.
   SendableChooser positionChooser;
   SendableChooser positionOneDefense, positionTwoDefense, positionThreeDefense,
-      positionFourDefense, positionFiveDefense;
+  positionFourDefense, positionFiveDefense;
+
+  Socket beagleBone;
 
   @Override
   public void robotInit() {
+    try {
+      beagleBone = new Socket("10.35.1.20", 1024);
+    } catch (IOException e) {
+      System.out.println(e);
+    }
+
     driveTrain = new DriveTrain();
     oi = new OI();