text
stringlengths
3
1.18M
package org.dodgybits.shuffle.web.client; import java.util.ArrayList; import java.util.Date; import org.dodgybits.shuffle.web.client.command.GetTasksCommand; import org.dodgybits.shuffle.web.client.command.SaveTaskCommand; import org.dodgybits.shuffle.web.client.formatter.ActionDateFormatter; import org.dodgybits.shu...
package org.dodgybits.shuffle.web.client; import com.google.gwt.core.client.GWT; import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.resources.client.CssResource; import com.google.gwt.uibinder.client.UiBinder; import com.google.gwt.uibinder.client.UiField; import com.google.gwt.uibinder.client.Ui...
package org.dodgybits.shuffle.web.client; import gwtupload.client.IUploader; import gwtupload.client.SingleUploader; import org.dodgybits.shuffle.web.client.gin.ShuffleGinjector; import com.google.gwt.core.client.EntryPoint; import com.google.gwt.core.client.GWT; import com.google.gwt.resources.client.ClientBundle; ...
package org.dodgybits.shuffle.web.client.model; import java.io.Serializable; @SuppressWarnings("serial") public class KeyValue<T> implements Serializable { private String mKey; @SuppressWarnings("unused") private KeyValue() { // required for GWT serialization } public KeyValue(String key) { mKey = key; }...
package org.dodgybits.shuffle.web.client.model; import java.io.Serializable; @SuppressWarnings("serial") public class ContextValue implements Serializable { private KeyValue<ContextValue> mKeyValue; private String mName; @SuppressWarnings("unused") private ContextValue() { // required for GWT serialization }...
package org.dodgybits.shuffle.web.client.model; import java.io.Serializable; public class LoginInfo implements Serializable { private boolean loggedIn = false; private String loginUrl; private String logoutUrl; private String emailAddress; private String nickname; public boolean isLoggedIn() { retur...
package org.dodgybits.shuffle.web.client.model; public enum BooleanSelection { IncludeIfTrue, IncludeIfFalse, IncludeAll }
package org.dodgybits.shuffle.web.client.model; import java.io.Serializable; import java.util.ArrayList; @SuppressWarnings("serial") public class ValueSelection<T> implements Serializable { static enum SelectionType { All, Some, None } private SelectionType mType; private ArrayList<KeyVal...
package org.dodgybits.shuffle.web.client.model; import java.io.Serializable; @SuppressWarnings("serial") public class ProjectValue implements Serializable { private KeyValue<ProjectValue> mKeyValue; private String mName; private KeyValue<ContextValue> mDefaultContextId; @SuppressWarnings("unused") private Proj...
package org.dodgybits.shuffle.web.client.model; import java.io.Serializable; @SuppressWarnings("serial") public class TaskOrdering implements Serializable { }
package org.dodgybits.shuffle.web.client.model; import java.io.Serializable; import java.util.ArrayList; import java.util.Date; @SuppressWarnings("serial") public class TaskValue implements Serializable { private KeyValue<TaskValue> mKeyValue; private String mTitle; private String mDetails; private KeyValue<Proje...
package org.dodgybits.shuffle.web.client.model; import java.io.Serializable; @SuppressWarnings("serial") public class TaskFilter implements Serializable { public ValueSelection<ContextValue> contexts; public ValueSelection<ProjectValue> projects; public BooleanSelection isComplete; public boolean only...
package org.dodgybits.shuffle.web.server.service; import org.dodgybits.shuffle.web.client.model.LoginInfo; import org.dodgybits.shuffle.web.client.service.LoginService; import com.google.appengine.api.users.User; import com.google.appengine.api.users.UserService; import com.google.appengine.api.users.UserServiceFacto...
package org.dodgybits.shuffle.web.server.service; import gwtupload.server.UploadAction; import gwtupload.server.exceptions.UploadActionException; import java.util.List; import java.util.logging.Logger; import javax.servlet.http.HttpServletRequest; import org.apache.commons.fileupload.FileItem; import org.dodgybits....
package org.dodgybits.shuffle.web.server.service; import java.util.ArrayList; import java.util.Date; import java.util.List; import java.util.Random; import javax.jdo.PersistenceManager; import javax.jdo.Query; import org.dodgybits.shuffle.web.client.model.TaskFilter; import org.dodgybits.shuffle.web.client.model.Tas...
package org.dodgybits.shuffle.web.server.persistence; import java.util.ArrayList; import java.util.List; import javax.jdo.JDOHelper; import javax.jdo.PersistenceManager; import javax.jdo.PersistenceManagerFactory; import org.dodgybits.shuffle.web.client.model.KeyValue; import com.google.appengine.api.datastore.Key;...
package org.dodgybits.shuffle.web.server.persistence; import javax.servlet.*; import java.io.IOException; /** * Ensures we properly release persistence resources even in * the face of exceptions. */ public class PersistenceFilter implements javax.servlet.Filter { public void destroy() { } publi...
package org.dodgybits.shuffle.web.server.model; import static org.dodgybits.shuffle.web.server.persistence.JdoUtils.toKey; import static org.dodgybits.shuffle.web.server.persistence.JdoUtils.toKeyValue; import java.io.Serializable; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.Identi...
package org.dodgybits.shuffle.web.server.model; import static org.dodgybits.shuffle.web.server.persistence.JdoUtils.toKey; import static org.dodgybits.shuffle.web.server.persistence.JdoUtils.toKeyValue; import java.io.Serializable; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.annotations.Identi...
package org.dodgybits.shuffle.web.server.model; import static org.dodgybits.shuffle.web.server.persistence.JdoUtils.toKey; import static org.dodgybits.shuffle.web.server.persistence.JdoUtils.toKeys; import static org.dodgybits.shuffle.web.server.persistence.JdoUtils.toKeyValue; import static org.dodgybits.shuffle.web....
package command; public interface ICommand { public void command(String cmd); public String info(); public void setNextChain(ICommand nextChain); }
package se.robertfoss.ChanImageBrowser; import android.os.Handler; import android.os.Message; import android.widget.ProgressBar; public class ProgressBarHandler extends Handler{ ProgressBar pb; public ProgressBarHandler(ProgressBar pb) { super(); this.pb = pb; } @Override public void handleMessage(Messa...
package se.robertfoss.ChanImageBrowser; import java.io.File; import java.util.ArrayList; import java.util.LinkedList; import android.content.Context; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.BitmapFactory.Options; import android.util.Log; import android...
package se.robertfoss.ChanImageBrowser; import java.io.File; import se.robertfoss.MultiTouch.TouchImageView; import android.app.Activity; import android.content.res.Configuration; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.BitmapFactory.Options; import and...
package se.robertfoss.ChanImageBrowser; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.lang.ref.WeakReference; import java.util.ArrayList; import se.robertfoss.ChanImageBrowser.Fetch...
package se.robertfoss.ChanImageBrowser; import java.io.File; import android.os.Bundle; import android.os.Handler; import android.os.Message; import android.util.Log; import android.widget.ProgressBar; public class ImageHandler extends Handler{ ImageAdapter ia; public ImageHandler(ImageAdapter ia) { super(); ...
package se.robertfoss.ChanImageBrowser.Fetcher; import java.util.ArrayList; import android.util.Log; public class ThreadFetcher extends HTMLFetcher { private FetcherManager manager; private boolean isDone; private boolean isPaused; private String imageRegex; private int imageRegexTruncateIndex; pri...
package se.robertfoss.ChanImageBrowser.Fetcher; import java.util.ArrayList; import java.util.HashMap; import java.util.LinkedList; import se.robertfoss.ChanImageBrowser.ImageHandler; import se.robertfoss.ChanImageBrowser.Viewer; import android.os.AsyncTask; import android.os.Process; import android.util.Log...
package se.robertfoss.ChanImageBrowser.Fetcher; import java.io.IOException; import java.util.ArrayList; import java.util.Date; import android.util.Log; public class IndexFetcher extends HTMLFetcher { private FetcherManager manager; private boolean isDone; private boolean isPaused; private final sta...
package se.robertfoss.ChanImageBrowser.Fetcher; import java.io.File; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; import java.net.HttpURLConnection; import java.net.URL; import android.graphics.Bi...
package se.robertfoss.ChanImageBrowser.Fetcher; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.net.URL; import java.net.URLConnection; import android.util.Log; public abstract class HTMLFetcher extends Thread{ /** Call...
package se.robertfoss.ChanImageBrowser.Fetcher; import java.util.ArrayList; import java.util.HashMap; import android.util.Log; import dk.brics.automaton.AutomatonMatcher; import dk.brics.automaton.RegExp; import dk.brics.automaton.RunAutomaton; import se.robertfoss.ChanImageBrowser.Viewer; public clas...
package se.robertfoss.MultiTouch; import android.view.MotionEvent; public class EclairMotionEvent extends WrapMotionEvent { protected EclairMotionEvent(MotionEvent event) { super(event); } public float getX(int pointerIndex) { return event.getX(pointerIndex); } public fl...
package se.robertfoss.MultiTouch; import java.io.File; import android.content.Context; import android.graphics.Bitmap; import android.graphics.Matrix; import android.graphics.PointF; import android.util.AttributeSet; import android.util.FloatMath; import android.util.Log; import android.view.MotionEvent; import andro...
package se.robertfoss.MultiTouch; import android.view.MotionEvent; public class WrapMotionEvent { protected MotionEvent event; protected WrapMotionEvent(MotionEvent event) { this.event = event; } static public WrapMotionEvent wrap(MotionEvent event) { try { ...
/*CorpsServo * Designed to extend the capabilities of servos * to use acutally degrees, and joystick input * unfinished. * Wasted time on this because I didnt read the java doc * READ THE JAVA DOCS!!! */ package team4188_2013; import edu.wpi.first.wpilibj.Servo; /** * * @author Tobore Tasker */ public cla...
package team4188_2013; import edu.wpi.first.wpilibj.GenericHID; import edu.wpi.first.wpilibj.Joystick; public class CorpsJoystick extends Joystick { private boolean[] prevState; private boolean[] toggleState; private boolean wasDead = false; private final int numberOfAxes, throttleAxis; ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188_2013; import edu.wpi.first.wpilibj.PIDOutput; import edu.wpi.first.wpilibj.RobotDrive; import edu.wpi.first.wpilibj.SpeedController; import edu.wpi.first.wpilibj.smartdashboard.*; /** * ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188_2013.commands; import edu.wpi.first.wpilibj.command.Command; import team4188_2013.Robot; /** *@author Tobore Tasker */ public class RampUp extends Command { public RampUp() { // Use re...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188_2013.commands; import edu.wpi.first.wpilibj.command.Command; import team4188_2013.Robot; /** *@author Tobore Tasker * Do not use this, use ramp up */ public class QuarterSpeed extends Command { ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188_2013.commands; import edu.wpi.first.wpilibj.command.Command; import team4188_2013.Robot; /** * * @author Tobore Tasker */ public class DisableCompressor extends Command{ public DisableCompres...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188_2013.commands; import edu.wpi.first.wpilibj.command.Command; import team4188_2013.Robot; /** * *@author Tobore Tasker * attempt to fix jaguar shutting down in autonomous * do not use this, use ramp ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188_2013.commands; import edu.wpi.first.wpilibj.command.Command; import team4188_2013.Robot; /** * * @author Tobore Tasker */ public class AutoShooterOn extends Command { public AutoShooterOn() {...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188_2013.commands; import edu.wpi.first.wpilibj.command.Command; import team4188_2013.Robot; /** *@author Tobore Tasker */ public class TurnOnWheels extends Command { public TurnOnWheels() { ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188_2013.commands; import edu.wpi.first.wpilibj.command.Command; import team4188_2013.Robot; /** * * @author Tobore Tasker */ public class EnableCompressor extends Command { public EnableCompress...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188_2013.commands; import edu.wpi.first.wpilibj.command.Command; import edu.wpi.first.wpilibj.Timer; /** * @author Erin King */ public class Wait extends Command { private double time; ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188_2013; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; /** * @author Erin King * modifications by David Rush 2012 Mar 12 */ public class CorpsLog { private static final b...
package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.SimpleRobot; import edu.wpi.first.wpilibj.camera.AxisCameraException; import edu.wpi.first.wpilibj.Timer; import edu.wpi.first.wpilibj.camera.AxisCamera; import edu.wpi.first.wpilibj.image.*; import edu.wpi.first.wpilibj.image.NIVision.MeasurementT...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ /** * * @author toboretasker */ public class TestEncoder extends CommandBase { public TestEncoder() { // Use requires() here to declare subsystem dependencies // eg. requires(chassis); } ...
package team4188; import edu.wpi.first.wpilibj.buttons.Button; import edu.wpi.first.wpilibj.buttons.JoystickButton; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.buttons.JoystickButton; import team4188.commands.*; /** * This class is the glue that binds the controls on the physical operator * ...
/*CorpsServo * Designed to extend the capabilities of servos * to use acutally degrees, and joystick input */ package team4188; import edu.wpi.first.wpilibj.Servo; /** * * @author Tobore Tasker */ public class CorpsServo extends Servo{ double low, high, range, position; /*Create instance of Cor...
/** * CorpsJoystick is an extension of the standard Joystick class written to * handle input from the Joysticks connected to the Columbus Alliance Team 4188 * Driver Station. This class adds functionality specifically for the Columbus * Corps's Driver Station. There is a single class instance for each joystick ...
/*----------------------------------------------------------------------------*/ /* Copyright (c) FIRST 2008. 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...
package team4188; /** * The RobotMap is a mapping from the ports sensors and actuators are wired into * to a variable name. This provides flexibility changing wiring, makes checking * the wiring easier and significantly reduces the number of magic numbers * floating around. */ public class RobotMap { public s...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188; import edu.wpi.first.wpilibj.PIDOutput; import edu.wpi.first.wpilibj.RobotDrive; import edu.wpi.first.wpilibj.SpeedController; /** * @author Erin */ public class CorpsRobotDrive exten...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.commands; import team4188.RobotMap; /** * * @author toboretasker */ public class FieldOrientOn extends CommandBase { public FieldOrientOn() { // Use requires() here to declare subsy...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.commands; import team4188.RobotMap; /** * * @author Sarah */ public class FieldOrientOff extends CommandBase { public FieldOrientOff() { // Use requires() here to dec...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.commands; /** * * @author toboretasker */ public class Shoot extends CommandBase { public Shoot() { // Use requires() here to declare subsystem dependencies requires(shooter)...
package team4188.commands; import edu.wpi.first.wpilibj.command.Command; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; import team4188.OI; import team4188.subsystems.*; /** * The base for all commands. All atomic commands should subclass CommandBase. * CommandBase stores creates and stores each contro...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.commands; /** * * @author toboretasker */ public class ResetGyro extends CommandBase { boolean reset; public ResetGyro() { // Use requires() here to declare subsystem dependencies ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.commands; import team4188.RobotMap; import team4188.commands.CommandBase; /** * * @author Alexander Nordin */ public class ManualDrive extends CommandBase { double direction=0; ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.commands; import edu.wpi.first.wpilibj.image.ParticleAnalysisReport; import team4188.subsystems.*; import team4188.commands.*; import team4188.*; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboa...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.commands; /** * * @author toboretasker */ public class TestEncoder extends CommandBase { double value = 0.0; public TestEncoder() { // Use requires() here to declare subsy...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.commands; import edu.wpi.first.wpilibj.Timer; /** * * @author Sarah */ public class FrisbeePush extends CommandBase { boolean shot; public FrisbeePush() { requires(sho...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.commands; import edu.wpi.first.wpilibj.image.ParticleAnalysisReport; import team4188.subsystems.*; import team4188.commands.*; import team4188.*; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboa...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.commands; /** * * @author toboretasker */ public class ShooterOn extends CommandBase { public ShooterOn() { // Use requires() here to declare subsystem dependencies requires...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.commands; /** * * @author toboretasker */ public class ShooterOff extends CommandBase { public ShooterOff() { // Use requires() here to declare subsystem dependencies require...
package team4188.commands; /** * * @author Sarah */ public class TurnXDegrees extends CommandBase { private double angle; private boolean isAimed; public TurnXDegrees(double angle) { requires(drivetrain); this.angle=angle; System.out.println("im in the constructor")...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.commands; import team4188.OI; import team4188.CorpsServo; import team4188.subsystems.Vision; /** * * @author toboretasker */ public class ManualServo extends CommandBase { private double throttle...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.commands; /** * * @author toboretasker */ public class ManualAim extends CommandBase { public ManualAim() { // Use requires() here to declare subsystem dependencies requires...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.subsystems; import edu.wpi.first.wpilibj.*; import edu.wpi.first.wpilibj.can.CANTimeoutException; import edu.wpi.first.wpilibj.command.Subsystem; import team4188.CorpsLog; import team4188.Corp...
package team4188.subsystems; import edu.wpi.first.wpilibj.camera.AxisCamera; import edu.wpi.first.wpilibj.camera.AxisCameraException; import edu.wpi.first.wpilibj.command.Subsystem; import edu.wpi.first.wpilibj.image.*; import edu.wpi.first.wpilibj.image.NIVision.MeasurementType; import edu.wpi.first.wpilibj.image.NIV...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.subsystems; import edu.wpi.first.wpilibj.command.Subsystem; import edu.wpi.first.wpilibj.*; import team4188.RobotMap; /** * * @author toboretasker */ public class Climber extends Subsystem { pri...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.subsystems; import edu.wpi.first.wpilibj.command.Subsystem; /** * * @author toboretasker */ public class FrisbeeRetriever extends Subsystem { // Put methods for controlling this subsystem //...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.subsystems; import edu.wpi.first.wpilibj.*; import edu.wpi.first.wpilibj.can.CANTimeoutException; import edu.wpi.first.wpilibj.command.Subsystem; import team4188.RobotMap; import team4188.commands.*; /*...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.subsystems; import edu.wpi.first.wpilibj.command.Subsystem; import edu.wpi.first.wpilibj.Counter; import edu.wpi.first.wpilibj.DigitalInput; import team4188.RobotMap; import team4188.commands.TestEncode...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.subsystems; import team4188.RobotMap; import team4188.commands.*; import edu.wpi.first.wpilibj.command.Subsystem; import edu.wpi.first.wpilibj.*; import edu.wpi.first.wpilibj.can.CANTimeoutException; imp...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.subsystems; import edu.wpi.first.wpilibj.*; import edu.wpi.first.wpilibj.command.Subsystem; import team4188.CorpsServo; import team4188.RobotMap; /** * * @author toboretasker */ public class Servo ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; /** * @author Erin * modifications by David Rush 2012 Mar 12 */ public class CorpsLog { private static final boolean SMA...
/*----------------------------------------------------------------------------*/ /* Copyright (c) FIRST 2008. 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...
package team4188; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.buttons.JoystickButton; import team4188.commands.BasicAutonomous; import team4188.commands.CorpsJoystick; import team4188.commands.spinDegreesGyro; /** * This class is the glue that binds the controls on the physical ope...
package team4188; /** * The RobotMap is a mapping from the ports sensors and actuators are wired into * to a variable name. This provides flexibility changing wiring, makes checking * the wiring easier and significantly reduces the number of magic numbers * floating around. */ public class RobotMap { ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.commands; /** * * @author Alexander Nordin */ public class MoveRight extends CommandBase { private double Timeout; public MoveRight(double time) { Timeout=time; ...
package team4188.commands; import edu.wpi.first.wpilibj.command.Command; import team4188.OI; import team4188.subsystems.Drivetrain; /** * The base for all commands. All atomic commands should subclass CommandBase. * CommandBase stores creates and stores each control system. To access a * subsystem elsew...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.commands; /** * * @author Alexander Nordin */ public class DriveBack extends CommandBase { private double Timeout; public DriveBack(double time) { Timeout=time; ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.commands; import team4188.RobotMap; /** * * @author Alexander Nordin */ public class spinDegrees extends CommandBase { private double degree; public spinDegrees(double degrees)...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.commands; import team4188.RobotMap; /** * * @author Alexander Nordin */ public class DriveWithJoystick extends CommandBase { double direction=0; public DriveWithJoystick() { ...
package team4188.commands; import edu.wpi.first.wpilibj.GenericHID; import edu.wpi.first.wpilibj.Joystick; public class CorpsJoystick extends Joystick { private boolean[] prevState; private boolean[] toggleState; private boolean wasDead = false; private final int numberOfAxes, throttleAxis; ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.commands; /** * * @author Alexander Nordin */ public class Stop extends CommandBase { private double Timeout; public Stop(double time) { Timeout=time; requires(d...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.commands; /** * * @author Alexander Nordin */ public class driveStraight extends CommandBase { private double Timeout; public driveStraight(double timeout) { Timeout=ti...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.commands; /** * * @author Alexander Nordin */ public class Spin extends CommandBase { private double Timeout; public Spin(double time) { Timeout=time; requires(d...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.commands; /** * * @author Alexander Nordin */ public class MoveLeft extends CommandBase { private double Timeout; public MoveLeft(double time) { Timeout=time; requir...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.commands; /** * * @author Alexander Nordin */ public class spinDegreesGyro extends CommandBase { private double degree; private double degreeChecker; private double initialDe...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.commands; import edu.wpi.first.wpilibj.command.CommandGroup; /** * * @author Alexander Nordin */ public class BasicAutonomous extends CommandGroup { public BasicAutonomous() {...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package team4188.subsystems; import edu.wpi.first.wpilibj.*; import edu.wpi.first.wpilibj.can.CANTimeoutException; import edu.wpi.first.wpilibj.command.Subsystem; import team4188.RobotMap; import team4188.comman...
/*----------------------------------------------------------------------------*/ /* Copyright (c) FIRST 2008. 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...
package edu.wpi.first.wpilibj.templates; import edu.wpi.first.wpilibj.Joystick; import edu.wpi.first.wpilibj.buttons.Button; import edu.wpi.first.wpilibj.buttons.DigitalIOButton; import edu.wpi.first.wpilibj.buttons.JoystickButton; /** * This class is the glue that binds the controls on the physical operat...
package edu.wpi.first.wpilibj.templates; /** * The RobotMap is a mapping from the ports sensors and actuators are wired into * to a variable name. This provides flexibility changing wiring, makes checking * the wiring easier and significantly reduces the number of magic numbers * floating around. */ publi...
package edu.wpi.first.wpilibj.templates.commands; import edu.wpi.first.wpilibj.command.Command; import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard; import edu.wpi.first.wpilibj.templates.OI; import edu.wpi.first.wpilibj.templates.subsystems.Drivetrain; /** * The base for all commands. All atomic co...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package edu.wpi.first.wpilibj.templates.commands; import edu.wpi.first.wpilibj.GenericHID; import edu.wpi.first.wpilibj.templates.subsystems.Drivetrain; import edu.wpi.first.wpilibj.templates.commands.*; import...