-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 3fbcb29
Showing
11 changed files
with
142 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<classpath> | ||
<classpathentry kind="src" path="src"/> | ||
<classpathentry kind="var" path="wpilib" sourcepath="wpilib.sources"/> | ||
<classpathentry kind="var" path="networktables" sourcepath="ntcore.sources"/> | ||
<classpathentry kind="var" path="opencv" sourcepath="opencv.sources"/> | ||
<classpathentry kind="var" path="cscore" sourcepath="cscore.sources"/> | ||
<classpathentry kind="var" path="wpiutil" sourcepath="wpiutil.sources"/> | ||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/> | ||
<classpathentry kind="output" path="bin"/> | ||
</classpath> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<projectDescription> | ||
<name>R2018</name> | ||
<comment></comment> | ||
<projects> | ||
</projects> | ||
<buildSpec> | ||
<buildCommand> | ||
<name>org.eclipse.jdt.core.javabuilder</name> | ||
<arguments> | ||
</arguments> | ||
</buildCommand> | ||
</buildSpec> | ||
<natures> | ||
<nature>org.eclipse.jdt.core.javanature</nature> | ||
<nature>edu.wpi.first.wpilib.plugins.core.nature.FRCProjectNature</nature> | ||
</natures> | ||
</projectDescription> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
# R2018 |
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Project specific information | ||
package=org.usfirst.frc.team334.robot | ||
robot.class=${package}.Robot | ||
simulation.world.file=/usr/share/frcsim/worlds/GearsBotDemo.world |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<project name="FRC Deployment" default="deploy"> | ||
|
||
<!-- | ||
The following properties can be defined to override system level | ||
settings. These should not be touched unless you know what you're | ||
doing. The primary use is to override the wpilib version when | ||
working with older robots that can't compile with the latest | ||
libraries. | ||
--> | ||
|
||
<!-- By default the system version of WPI is used --> | ||
<!-- <property name="version" value=""/> --> | ||
|
||
<!-- By default the system team number is used --> | ||
<!-- <property name="team-number" value=""/> --> | ||
|
||
<!-- By default the target is set to 10.TE.AM.2 --> | ||
<!-- <property name="target" value=""/> --> | ||
|
||
<!-- Any other property in build.properties can also be overridden. --> | ||
|
||
<property file="${user.home}/wpilib/wpilib.properties"/> | ||
<property file="build.properties"/> | ||
<property file="${user.home}/wpilib/java/${version}/ant/build.properties"/> | ||
|
||
<import file="${wpilib.ant.dir}/build.xml"/> | ||
|
||
</project> |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
package org.usfirst.frc.team334.robot; | ||
|
||
public class OI { | ||
|
||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
|
||
package org.usfirst.frc.team334.robot; | ||
|
||
import edu.wpi.first.wpilibj.TimedRobot; | ||
import edu.wpi.first.wpilibj.command.Command; | ||
import edu.wpi.first.wpilibj.command.Scheduler; | ||
import edu.wpi.first.wpilibj.smartdashboard.SendableChooser; | ||
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; | ||
|
||
public class Robot extends TimedRobot { | ||
public static OI m_oi; | ||
|
||
Command m_autonomousCommand; | ||
SendableChooser<Command> m_chooser = new SendableChooser<>(); | ||
|
||
@Override | ||
public void robotInit() { | ||
m_oi = new OI(); | ||
SmartDashboard.putData("Auto mode", m_chooser); | ||
} | ||
|
||
@Override | ||
public void disabledInit() { | ||
|
||
} | ||
|
||
@Override | ||
public void disabledPeriodic() { | ||
Scheduler.getInstance().run(); | ||
} | ||
|
||
@Override | ||
public void autonomousInit() { | ||
m_autonomousCommand = m_chooser.getSelected(); | ||
|
||
|
||
if (m_autonomousCommand != null) { | ||
m_autonomousCommand.start(); | ||
} | ||
} | ||
|
||
@Override | ||
public void autonomousPeriodic() { | ||
Scheduler.getInstance().run(); | ||
} | ||
|
||
@Override | ||
public void teleopInit() { | ||
if (m_autonomousCommand != null) { | ||
m_autonomousCommand.cancel(); | ||
} | ||
} | ||
|
||
@Override | ||
public void teleopPeriodic() { | ||
Scheduler.getInstance().run(); | ||
} | ||
|
||
@Override | ||
public void testPeriodic() { | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/*----------------------------------------------------------------------------*/ | ||
/* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */ | ||
/* Open Source Software - may be modified and shared by FRC teams. The code */ | ||
/* must be accompanied by the FIRST BSD license file in the root directory of */ | ||
/* the project. */ | ||
/*----------------------------------------------------------------------------*/ | ||
|
||
package org.usfirst.frc.team334.robot; | ||
|
||
public class RobotMap { | ||
} |