Added in LiveWindow initialization code, and the network tables

dependecies for WPILibJ. - Fredric Silberberg

Change-Id: I776096385dc13db64c9eb2adbe0397b632057adf
This commit is contained in:
Jonathan Leitschuh
2014-05-22 15:42:56 -04:00
parent 609fbfd8f6
commit 8599830490
2 changed files with 13 additions and 0 deletions

View File

@@ -14,6 +14,11 @@
<artifactId>wpilibJavaFinal</artifactId>
<version>0.1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>edu.wpi.first.wpilib.networktables.java</groupId>
<artifactId>NetworkTables</artifactId>
<version>0.1.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
@@ -77,6 +82,12 @@
<version>0.1.0-SNAPSHOT</version>
<type>jar</type>
</artifactItem>
<artifactItem>
<groupId>edu.wpi.first.wpilib.networktables.java</groupId>
<artifactId>NetworkTables</artifactId>
<version>0.1.0-SNAPSHOT</version>
<type>jar</type>
</artifactItem>
<artifactItem>
<groupId>junit</groupId>
<artifactId>junit</artifactId>

View File

@@ -10,6 +10,7 @@ import org.junit.BeforeClass;
import edu.wpi.first.wpilibj.DriverStation;
import edu.wpi.first.wpilibj.communication.FRCNetworkCommunicationsLibrary;
import edu.wpi.first.wpilibj.livewindow.LiveWindow;
/**
* This class serves as a superclass for all tests that involve the hardware on
@@ -41,6 +42,7 @@ public abstract class AbstractComsSetup {
FRCNetworkCommunicationsLibrary.FRCNetworkCommunicationReserve();
FRCNetworkCommunicationsLibrary
.FRCNetworkCommunicationObserveUserProgramStarting();
LiveWindow.setEnabled(false);
System.out.println("Started coms");
// Wait until the robot is enabled before starting the tests