Skip to content

Commit

Permalink
inital commit
Browse files Browse the repository at this point in the history
  • Loading branch information
babbitt committed Jan 30, 2018
0 parents commit 3fbcb29
Show file tree
Hide file tree
Showing 11 changed files with 142 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .classpath
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>
18 changes: 18 additions & 0 deletions .project
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>
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# R2018
Binary file added bin/org/usfirst/frc/team334/robot/OI.class
Binary file not shown.
Binary file added bin/org/usfirst/frc/team334/robot/Robot.class
Binary file not shown.
Binary file added bin/org/usfirst/frc/team334/robot/RobotMap.class
Binary file not shown.
4 changes: 4 additions & 0 deletions build.properties
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
30 changes: 30 additions & 0 deletions build.xml
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>
6 changes: 6 additions & 0 deletions src/org/usfirst/frc/team334/robot/OI.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

package org.usfirst.frc.team334.robot;

public class OI {

}
62 changes: 62 additions & 0 deletions src/org/usfirst/frc/team334/robot/Robot.java
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() {
}
}
11 changes: 11 additions & 0 deletions src/org/usfirst/frc/team334/robot/RobotMap.java
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 {
}

0 comments on commit 3fbcb29

Please sign in to comment.