@@ -0,0 +1,2511 @@
+/*----------------------------------------------------------------------------*/%0A/* Copyright (c) FIRST 2008. All Rights Reserved.                             */%0A/* Open Source Software - may be modified and shared by FRC teams. The code   */%0A/* must be accompanied by the FIRST BSD license file in the root directory of */%0A/* the project.                                                               */%0A/*----------------------------------------------------------------------------*/%0A%0Apackage edu.wpi.first.wpilibj.templates;%0A%0A%0Aimport edu.wpi.first.wpilibj.DoubleSolenoid;%0Aimport edu.wpi.first.wpilibj.SimpleRobot;%0Aimport edu.wpi.first.wpilibj.Solenoid;%0Aimport edu.wpi.first.wpilibj.Timer;%0Aimport edu.wpi.first.wpilibj.Joystick;%0Aimport edu.wpi.first.wpilibj.Relay;%0A/**%0A * The VM is configured to automatically run this class, and to call the%0A * functions corresponding to each mode, as described in the SimpleRobot%0A * documentation. If you change the name of this class or the package after%0A * creating this project, you must also update the manifest file in the resource%0A * directory.%0A */%0Apublic class RobotTemplate extends SimpleRobot %7B%0A    //This function is called once each time the robot enters autonomous mode.%0A    Joystick joystick = new Joystick(0);%0A    //Solenoid solenoid = new Solenoid(1);%0A    //DoubleSolenoid doublesolenoid = new DoubleSolenoid(1,2);%0A    //Relay relay = new Relay(1);%0A    public void autonomous() %7B%0A        while(true)%7B%0A            /*solenoid.set(true);%0A            Timer.delay(2.0);%0A            solenoid.set(false);%0A            Timer.delay(2.0);*/%0A            boolean buttonvalue = joystick.getRawButton(1);%0A            System.out.print(buttonvalue);%0A            /*doublesolenoid.set(DoubleSolenoid.Value.kOff);%0A            Timer.delay(2.0);%0A            doublesolenoid.set(DoubleSolenoid.Value.kForward);%0A            Timer.delay(2.0);%0A            doublesolenoid.set(DoubleSolenoid.Value.kReverse);%0A            Timer.delay(2.0);*/%0A            /*relay.set(Relay.Value.kForward);%0A            Timer.delay(2.0);%0A            relay.set(Relay.Value.kOff);%0A            Timer.delay(2.0);%0A            relay.set(Relay.Value.kReverse);%0A            Timer.delay(2.0);%0A            relay.set(Relay.Value.kOn);*/%0A        %7D%0A    %7D%0A%0A    /**%0A     * This function is called once each time the robot enters operator control.%0A     */%0A    public void operatorControl() %7B%0A%0A    %7D%0A%0A    /**%0A     * This function is called once each time the robot enters test mode.%0A     */%0A    public void test() %7B%0A%0A    %7D%0A%7D%0A

add java