text
stringlengths
3
1.18M
package com.ly.oa.model.admin; import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.EqualsBuilder; /** * CartRepair Base Java Bean, base class for the.oa.model, mapped directly to database table * * Avoid ch...
package com.ly.oa.model.admin; import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.EqualsBuilder; /** * GoodsApply Base Java Bean, base class for the.oa.model, mapped directly to database table * * Avoid ch...
package com.ly.oa.model.admin; import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.EqualsBuilder; /** * Car Base Java Bean, base class for the.oa.model, mapped directly to database table * * Avoid changing ...
package com.ly.oa.model.admin; import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.EqualsBuilder; /** * Book Base Java Bean, base class for the.oa.model, mapped directly to database table * * Avoid changing...
package com.ly.oa.model.info; import java.util.Date; public class Notice { //公告属性:公告ID号、发布人、发布标题、发布内容、生效日期、失效日期、当前状态 private long noticeId; private String postName; private String noticeTitle; private String noticeContent; private Date effectiveDate; private Date expirationDate; //状态:1表示正式发布0表示草稿 ...
package com.ly.oa.model.info; import com.ly.core.model.BaseModel; public class InMessage extends BaseModel { public static final Short FLAG_READ =1; public static final Short FLAG_UNREAD = 0; private Long receiveId; // private Long messageId; private ShortMessage shortMessage; private Long userId; ...
package com.ly.oa.model.info; import java.util.Date; import java.util.HashSet; import java.util.Set; import com.ly.core.model.BaseModel; public class ShortMessage extends BaseModel { private Long messageId; private String content; private Long senderId; private String sender; private Short msgTyp...
package com.ly.oa.model.info; import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.EqualsBuilder; /** * News Base Java Bean, base class for the.oa.model, mapped directly to database table * * Avoid changing ...
package com.ly.oa.model.task; import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.EqualsBuilder; /** * CalendarPlan Base Java Bean, base class for the.oa.model, mapped directly to database table * * Avoid c...
package com.ly.oa.model.task; import java.text.SimpleDateFormat; /** * 用于显示今日日程的信息 * @author csx * */ public class PlanInfo { private Long planId; private String content; private String durationTime; private String status; private String urgent; public Long getPlanId() { return planI...
package com.ly.oa.model.task; import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.EqualsBuilder; /** * Appointment Base Java Bean, base class for the.oa.model, mapped directly to database table * * Avoid ch...
package com.ly.oa.model.task; import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.EqualsBuilder; /** * PlanType Base Java Bean, base class for the.oa.model, mapped directly to database table * * Avoid chang...
package com.ly.oa.model.task; import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.EqualsBuilder; /** * WorkPlan Base Java Bean, base class for the.oa.model, mapped directly to database table * * Avoid chang...
package com.ly.oa.model.document; import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.EqualsBuilder; /** * DocPrivilege Base Java Bean, base class for the.oa.model, mapped directly to database table * * Avo...
package com.ly.oa.model.document; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.EqualsBuilder; import ...
package com.ly.oa.model.document; import java.util.HashSet; import java.util.Set; import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.EqualsBuilder; /** * DocFolder Base Java Bean, base class for the.oa.mode...
package com.ly.oa.model.communicate; import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.EqualsBuilder; /** * MailFolder Base Java Bean, base class for the.oa.model, mapped directly to database table * * Av...
package com.ly.oa.model.communicate; import java.util.HashSet; import java.util.Set; import org.apache.commons.lang.builder.EqualsBuilder; import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.commons.lang.builder.ToStringBuilder; import com.ly.oa.model.system.AppUser; import com.ly.oa....
package com.ly.oa.model.communicate; import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.EqualsBuilder; /** * MailBox Base Java Bean, base class for the.oa.model, mapped directly to database table * * Avoid...
package com.ly.oa.model.communicate; import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.EqualsBuilder; /** * PhoneGroup Base Java Bean, base class for the.oa.model, mapped directly to database table * * Av...
package com.ly.oa.model.communicate; import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.EqualsBuilder; /** * PhoneBook Base Java Bean, base class for the.oa.model, mapped directly to database table * * Avo...
/* */ package com.ly.oa.model.personal; /* */ /* */ import com.ly.core.model.BaseModel; /* */ import com.ly.oa.model.system.AppUser; /* */ import java.util.Date; /* */ import org.apache.commons.lang.builder.EqualsBuilder; /* */ import org.apache.commons.lang.builder.HashCodeBuilder; ...
/* */ package com.ly.oa.model.personal; /* */ /* */ import java.text.SimpleDateFormat; import java.util.Date; import org.apache.commons.lang.builder.EqualsBuilder; import org.apache.commons.lang.builder.HashCodeBuilder; import org.apache.commons.lang.builder.ToStringBuilder; import com.google.gs...
/* */ package com.ly.oa.model.personal; /* */ /* */ import com.ly.core.model.BaseModel; /* */ import java.util.Date; /* */ import org.apache.commons.lang.builder.EqualsBuilder; /* */ import org.apache.commons.lang.builder.HashCodeBuilder; /* */ import org.apache.commons.lang.builder.T...
/* */ package com.ly.oa.model.personal; /* */ /* */ public class DutySystemSections /* */ { /* */ private String day0; /* */ private String day1; /* */ private String day2; /* */ private String day3; /* */ private String day4; /* */ private String day5; /* ...
/* */ package com.ly.oa.model.personal; /* */ /* */ import com.ly.core.model.BaseModel; /* */ import com.ly.oa.model.system.AppUser; /* */ import java.util.Date; /* */ import org.apache.commons.lang.builder.EqualsBuilder; /* */ import org.apache.commons.lang.builder.HashCodeBuilder; ...
/* */ package com.ly.oa.model.personal; /* */ /* */ import com.ly.core.model.BaseModel; /* */ import java.text.SimpleDateFormat; /* */ import java.util.Date; /* */ import org.apache.commons.lang.builder.EqualsBuilder; /* */ import org.apache.commons.lang.builder.HashCodeBuilder; /* ...
/* */ package com.ly.oa.model.personal; /* */ /* */ import com.ly.core.model.BaseModel; /* */ import org.apache.commons.lang.builder.EqualsBuilder; /* */ import org.apache.commons.lang.builder.HashCodeBuilder; /* */ import org.apache.commons.lang.builder.ToStringBuilder; /* */ /* ...
package com.dao.impl; import java.util.List; import com.dao.TreeDao; public class TreeDaoImpl extends UniversalDaoImpl implements TreeDao { @Override public List getListByType(int type, boolean enabled) { String sql; if (enabled) sql = "select code,parent_code,name,isLeaf,enabled from tree where ...
package com.dao.impl; import java.util.List; import com.dao.OrgDao; public class OrgDaoImpl extends UniversalDaoImpl implements OrgDao { @Override public List getListOrg() {//ifnull/isnull String sql = "select code, isnull(parent_code,'') parent_code,name,url,target,isLeaf,enabled from Org where enab...
package com.dao.impl; import java.util.List; import com.dao.RegionDao; public class RegionDaoImpl extends UniversalDaoImpl implements RegionDao { @Override public List getListRegion() {//ifnull/isnull String sql = "select code, isnull(parent_code,'') parent_code,name,url,target,isLeaf,enabled from Re...
package com.dao.impl; import java.util.List; import com.dao.UserDao; public class UserDaoImpl extends UniversalDaoImpl implements UserDao { @Override public List getListUser(String roleCode) { String sql; sql="select region.name region_treeName,u.* from [user] u inner join region on u.region_treeCo...
package com.dao.impl; import java.util.List; import com.dao.RoleDao; public class RoleDaoImpl extends UniversalDaoImpl implements RoleDao { @Override public List getListTree(String code) { String sql; if (code == null||"".equals(code)) sql = "select code id,'['+code+'] '+name text,isLeaf leaf f...
package com.dao; public interface DiningMsgDao { }
package com.dao; import java.util.List; public interface UserDao extends UniversalDao { public List getListUser(String rollerCode); public boolean getModifyPwd(String loginName, String pwd); }
package com.dao; import java.util.List; public interface RegionDao extends UniversalDao { /** * * **/ public List getListRegion(); /** * **/ public List getListRegionTreeByCode(String code); }
package com.dao; import java.util.List; public interface OrgDao extends UniversalDao { /** * * **/ public List getListOrg(); /** * **/ public List getListOrgTreeByCode(String code); }
package com.controller; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.web.servlet.ModelAndView; import com.service.BaseManager; import com.service.UserManager; public class EMailController extends UniversalController { private Bas...
package com.controller; import java.io.IOException; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.web.servlet.ModelAndView; import com.Const; import com.beans.User; import com.controller.base.MultiMethodController; public class ...
package com.controller; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.web.servlet.ModelAndView; import com.controller.base.MultiMethodController; public class InformController extends MultiMethodController { public ModelAndView g...
package com.controller; import java.lang.reflect.InvocationTargetException; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.web.servlet.ModelAndView; import com....
package com.controller; import java.lang.reflect.InvocationTargetException; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.web.servlet.ModelAndView; import com....
package com.controller; import java.lang.reflect.InvocationTargetException; import java.util.HashMap; import java.util.List; import java.util.Map; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.springframework.web.servlet.ModelAndView; import com....
package com.service.impl; import java.util.List; import java.util.Map; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import com.dao.MenuDao; import com.dao.OrgDao; import com.dao.RegionDao; import com.dao.TreeDao; import com.service.BaseManager; public class BaseManagerImpl ex...
package com.service.impl; import java.io.Serializable; import java.util.Collection; import java.util.List; import java.util.Map; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import org.springframework.jdbc.core.RowMapper; import com.dao.UniversalDao; import com.service.Univers...
package com.service; import java.util.List; public interface UserManager extends UniversalManager { public List getListUser(String rollerCode); public List getListRoleTree(String code); public void saveRoleMenuTree(String roleCode, String menuCodes); public boolean getModifyPwd(String loginName,Str...
package com.beans; import java.io.Serializable; public class TreePK extends BaseModel implements Serializable{ /** * */ private static final long serialVersionUID = 1L; private String code; private int type; public String getCode() { return code; } public void setCode(String code) { thi...
package com.beans; import java.io.Serializable; import org.apache.commons.lang.builder.ToStringBuilder; import org.apache.commons.lang.builder.ToStringStyle; public class BaseModel implements Serializable { private static final long serialVersionUID = 7806623222674094731L; public String toString() { ...
package com.servlet; import java.awt.Color; import java.awt.Font; import java.awt.Graphics2D; import java.awt.image.BufferedImage; import java.util.Random; import javax.imageio.ImageIO; import javax.servlet.ServletException; import javax.servlet.ServletOutputStream; import javax.servlet.http.HttpServlet; ...
package com.util; import org.apache.commons.logging.Log; import org.apache.commons.logging.LogFactory; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.*; /** * @author zeting */ public class DateUtil { private static Log log = LogFactory.getLog(DateUtil.class); public static ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.targeting; /** * * @author FireBird Robotics */ public class Targeting { //vision code for the robot }
/*----------------------------------------------------------------------------*/ /* 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...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.input; import com.team1160.breakaway.api.MotorSpeeds; /** * * @author nttoole */ public class InputState { protected MotorSpeeds motorSpeeds; protected boolean kickerPressed; ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.input; import com.team1160.breakaway.api.Constants; import com.team1160.breakaway.api.MotorSpeeds; import edu.wpi.first.wpilibj.DriverStation; import edu.wpi.first.wpilibj.Joystick; /** ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.ballControl; import com.team1160.breakaway.api.Constants; import edu.wpi.first.wpilibj.Jaguar; /** * * @author FireBird Robotics */ public class Dribbler { //Static fields ///...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.ballControl; import com.team1160.breakaway.api.Constants; import com.team1160.breakaway.api.Piston; import edu.wpi.first.wpilibj.AnalogChannel; /** * * @author FireBird Robotics */ pu...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.api; import edu.wpi.first.wpilibj.Solenoid; /** * * @author nttoole */ public class Piston { protected final Solenoid front; protected final Solenoid back; public Piston(...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.api; /** * This class contains statics channel#'s and other other useful constants * * @author FireBird Robotics */ public class Constants { //Statics Instance Fields ///////...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.api; /** * Data structure for 4-motor speeds. This can * be passed between components. * * @author nttoole */ public class MotorSpeeds { protected double frontLeft; p...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.drive; import com.team1160.breakaway.api.Constants; import edu.wpi.first.wpilibj.Encoder; import edu.wpi.first.wpilibj.Jaguar; import edu.wpi.first.wpilibj.RobotDrive; /** * * @author ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.util; /** * * @author nttoole */ public class MotorUtil { public static boolean isMotorStopped(double speed) { return Math.abs(speed) < .01; } }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.model; /** * * @author CJ */ public class ModelAdapter implements ModelListener{ public void stateChange(RobotEvent e){} }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.model; /** * * @author nttoole */ public class PropertyChangeEvent { protected String name; protected Object oldValue; protected Object newValue; public PropertyChang...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.model; /** * * @author Firebird Robotics */ public interface ModelListener { public abstract void stateChange(RobotEvent e); }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.model; import java.util.Hashtable; import java.util.Vector; /** * * @author nttoole */ public class Model2 { public static final String PROPERTY_KICKER_READY = "kicker.read...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.model; /** * * @author nttoole */ public class RobotCommand { double leftFrontSpeed; double leftRearSpeed; double rightFrontSpeed; double rightRearSpeed; boolean ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.model; /** * * @author FireBird Robotics */ public interface ModelNotifier { public static Robot model = Robot.getModel(); public abstract void updateModel(); }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.model; /** * * @author nttoole */ public interface PropertyChangeListener { public void propertyChanged(PropertyChangeEvent pce); }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.model; /** * * @author FireBird Robotics */ public class RobotEvent { public static final int V_KICKER = 1; public static final int V_DRIBBLER = 2; public static final int...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.model; import java.util.Vector; /** * * @author FireBird Robotics */ public class Robot { //Virtual robot to be accessed by classes that need info //Instance Fields /...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.model; import com.team1160.breakaway.api.MotorSpeeds; /** * Represents a snapshot of the robot state. * @author nttoole */ public class RobotState { double gyroAngle; double...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.model; import com.team1160.breakaway.api.Constants; import com.team1160.breakaway.api.MotorSpeeds; import com.team1160.breakaway.ballControl.Dribbler; import com.team1160.breakaway.ballCo...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway; import com.team1160.breakaway.api.Constants; import com.team1160.breakaway.input.StructuredInput; import com.team1160.breakaway.pid.PID; import com.team1160.breakaway.stateManager.MergeE...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.targeting; import edu.wpi.first.wpilibj.camera.AxisCamera; import edu.wpi.first.wpilibj.camera.AxisCamera.ResolutionT; import edu.wpi.first.wpilibj.camera.AxisCameraException; import edu....
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.input; import edu.wpi.first.wpilibj.Joystick; import java.util.Hashtable; /** * * @author Saketh Kasibatla */ public interface UserInputtable { Hashtable getButtons(); Hashtab...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.input; import com.team1160.breakaway.api.Constants; import java.util.Hashtable; /** * * @author Team 1160 Firebird Robotics */ public class StructuredInput implements UserInputtable, ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.input; /** * * @author Saketh Kasibatla */ public interface RobotInputtable { double getGyroAngle(); double getAccelRate(); }
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.input; import com.team1160.breakaway.api.Constants; import edu.wpi.first.wpilibj.Joystick; import java.util.Hashtable; /** * * @author Saketh Kasibatla */ public class UserInput imple...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.input; import com.team1160.breakaway.Robot; import com.team1160.breakaway.api.Constants; import edu.wpi.first.wpilibj.Accelerometer; import edu.wpi.first.wpilibj.Encoder; import edu.wpi.f...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.exceptions; /** * * @author Saketh Kasibatla */ public class TargetNotSeenException extends RuntimeException { public TargetNotSeenException(String message){ super(message)...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.exceptions; /** * * @author Saketh Kasibatla */ public class IDException extends RuntimeException{ public IDException(String message){ super(message); } }
/*----------------------------------------------------------------------------*/ /* 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...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.pneumatics; import edu.wpi.first.wpilibj.Solenoid; /** * * @author Saketh Kasibatla */ public class Piston { protected final Solenoid front; protected fina...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.pneumatics; import com.team1160.breakaway.api.Constants; import edu.wpi.first.wpilibj.Compressor; /** * * @author Team 1160 Firebird Robotics */ public class Pneumatics { //Static...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.stateManager; import com.team1160.breakaway.input.StructuredInput; /** * * @author Team 1160 Firebird Robotics */ public abstract class MergeEngine { protected final TaskManager ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.stateManager; import com.team1160.breakaway.exceptions.TargetNotSeenException; /** *This interface is the blueprint for the "Boss class" which tells the individual components * (Kicker...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway; import com.team1160.breakaway.ballControl.Dribbler; import com.team1160.breakaway.ballControl.Kicker; import com.team1160.breakaway.drive.Drive; import com.team1160.breakaway.exceptions....
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.ballControl; import com.team1160.breakaway.api.Constants; import edu.wpi.first.wpilibj.Jaguar; /** * * @author Team 1160 Firebird Robotics */ public class Dribbler { //Static fie...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.ballControl; import com.team1160.breakaway.api.Constants; import com.team1160.breakaway.pneumatics.Piston; import com.team1160.breakaway.pneumatics.Pneumatics; import edu.wpi.first.wpilib...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.api; import edu.wpi.first.wpilibj.Joystick; /** * This class contains statics channel#'s and other other useful constants * * @author Team 1160 Firebird Robotics */ public final clas...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.drive; import com.team1160.breakaway.api.Constants; import edu.wpi.first.wpilibj.Jaguar; import edu.wpi.first.wpilibj.RobotDrive; /** * * @author Team 1160 Firebird Robotics */ pub...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.pid; import com.team1160.breakaway.api.Constants; /** * * @author Saketh Kasibatla */ public class PID { double totalError=0,lastError=0; double lastSetValue; //TODO finet...
/*----------------------------------------------------------------------------*/ /* 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...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.input; /** * Input state represents a state of all operator * controls into this system (including buttons * and joystick values). * s * @author CJ */ public class InputState { ...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.input; import com.team1160.breakaway.api.Constants; import edu.wpi.first.wpilibj.DriverStation; import edu.wpi.first.wpilibj.DriverStationEnhancedIO; import edu.wpi.first.wpilibj.DriverSt...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.input; /** * * @author CJ */ public class AutoInputState { protected boolean autoSwitchOne; protected boolean autoSwitchTwo; public boolean getAutoSwitchOne(){ re...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.camera; /** * * @author nttoole */ public interface TargetOrientation { public static final int NOT_FOUND = 0; public static final int CENTER = 1; public static final...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.camera; import com.team1160.breakaway.api.Constants; import com.team1160.breakaway.util.Point2D; import com.team1160.breakaway.util.Point2DDouble; import edu.wpi.first.wpilibj.Watchdog; i...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.camera; import com.team1160.breakaway.util.Point2D; import edu.wpi.first.wpilibj.image.EllipseMatch; import edu.wpi.first.wpilibj.util.SortedVector; import java.util.Vector; /** * * @a...
/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package com.team1160.breakaway.camera; import com.team1160.breakaway.api.Constants; import edu.wpi.first.wpilibj.image.EllipseMatch; import java.util.Vector; /** * This class checks if the area ratio between the two ...