Modifier and Type | Class and Description |
---|---|
static class |
Capture.CaptureState |
Thread.State, Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
static Capture.CaptureState |
captureState |
private static double[] |
cardinalPoint |
private double[][] |
GREEN |
private Navigation |
nav |
private Odometer |
odo |
private Search |
search |
private int |
towerHeight |
private double[] |
towerPosition |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
Capture(Odometer odometer,
Search search,
double[][] GREEN)
Capture Thread Constructor
|
Modifier and Type | Method and Description |
---|---|
static boolean |
inBounds(double x,
double y,
double width,
double height)
Checks if the position is in field bounds
|
void |
run()
start Capture thread
|
static void |
setContext(double[] cardinalPoint)
Sets the current cardinal point at which the robot is bound to
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
private Odometer odo
private Navigation nav
private Search search
private double[][] GREEN
private double[] towerPosition
private static double[] cardinalPoint
public static Capture.CaptureState captureState
private int towerHeight
public void run()
public static boolean inBounds(double x, double y, double width, double height)
x
- y
- width
- field width (x)height
- field height (y)public static void setContext(double[] cardinalPoint)
cardinalPoint
- x and y coordinates of the current cardinal point