A B C D F G H I K L M N O P R S T V W X Y Z

A

a - Static variable in class CameraImage
Tmp variables used for reading and checking for an ACK from the camera.
Armb - Static variable in class motors
Lego touch sensor for arm (when raised to max height)

B

backupdone - Variable in class motors
While fixing bumpers, tracks whether the backup state is done
BallCounts - Static variable in class Seeker
 
bArmIsDown - Variable in class motors
Arm state flag
bArmIsUp - Variable in class motors
Arm state flag
bHandIsClosed - Variable in class motors
Arm state flag
bHandIsOpen - Variable in class motors
Arm state flag
blue - Static variable in class CameraImage
Used to convert the read data from the camera dump from into a single rgb value.

C

c - Static variable in class CameraImage
Tmp variables used for reading and checking for an ACK from the camera.
CameraClear() - Method in class Seeker
Tells the camera to go back to idle state and wait for it to happen.
CameraImage - class CameraImage.
This is the main camera class for the Seeker robot.
CameraImage(String) - Constructor for class CameraImage
Here we simply initialized the variables used by the class.

We also initialize the ball color ranges here: (Red Range)(Green Range)(Blue Range) Red = (100 255)(0 50)(0 50) Green = (0 50)(100 255)(0 50) Yellow = (100 255)(100 255)(0 50) White = (150 255)(150 255)(150 255)
ChangeStallTimer - Static variable in class motors
Change Stall Timer Variable
cImage - Static variable in class motors
external camera class
cImage - Static variable in class Seeker
 
col - Static variable in class CameraImage
Current position of the data being read from a frame dump.
ColorList - Static variable in class CameraImage
List of colors and their color ranges.
ColorTimer - Static variable in class motors
Color Tracking timer
colorTimerDone - Variable in class motors
Color Tracking flag
Command - Static variable in class CameraImage
For preparing a command to send to the camera.
commPortId - Static variable in class serialComm
Reference to the javax.comm comm port
conf - Static variable in class CameraImage
Holders of the data returned from the camera when tracking a color.
currentstate - Variable in class motors
State Variables

D

data - Static variable in class CameraImage
Hold last read byte from the camera.
dataEvent(int) - Method in class motors
If motors are suppose to be moving, but the rotation count is not changing, a stall timer will start.
Debug - Static variable in class motors
Debug Flag
degrees20 - Static variable in class motors
Rotation count for 20 degrees
degrees90 - Static variable in class motors
Rotation count for 90 degrees
Delay(int) - Method in class Seeker
Sleep for the amount specified
deltaevent - Variable in class motors
Data event flag
dir - Variable in class motors
Direction Variable
Dir - Static variable in class CameraImage
Used for determining the direction we need to move to track the object.
done - Variable in class motors
Tracks whether the 20 degree rotation is complete
dumpFrame() - Method in class CameraImage
Grabs the image column by column and stores it in a 2d array.

F

FindColorInImage() - Method in class CameraImage
Scan the image looking for one of the colors the robot is searching for.
Search algorithm searches from the bottom to the top of the image, and from the center to the outside (left, then right) to find objects that are closer before ones that are further away.
findColorTime - Static variable in class motors
Time interval to wait before declare no colors were found.
fixBackup - Variable in class motors
Flags for when we need to perform certain actions.
fixed - Variable in class motors
Tracks whether the bumper fixes are complete
fixForward - Variable in class motors
Flags for when we need to perform certain actions.
fixLeft() - Method in class motors
Runs a small sequence to fix left bumper hit
save rotation value Turn 90 degrees Right while checking for right bumper hits If right bumper hits, back up until it no longer hits Once 90, travel forward a few inches Turn 90 degrees Left while checking for left bumper hits If left bumper hits, recursively call fixLeft, otherwise retrieve old rotation values and return
fixLeftTurn - Variable in class motors
Flags for when we need to perform certain actions.
fixRight() - Method in class motors
Runs a small sequence to fix right bumper hit.
Save rotation value Turn 90 degree Left while checking for left bumper hits If left bumper hits, back up until it no longer hits Once 90, travel forward a few inches Turn 90 degrees Right while checking for right bumper hits If right bumper hits, recursively call fixRight, otherwise retrieve old rotation values and return
fixRightTurn - Variable in class motors
Flags for when we need to perform certain actions.
flushBuf() - Method in class CameraImage
Flushes all data out of the serial input buffer
forwarddone - Variable in class motors
While fixing bumpers, tracks whether the forward state is done
four - Static variable in class serialComm
Used by the readNum() function to convert the received characters into a single number.

G

GetTrackDirection() - Method in class CameraImage
Gets the current tracking information from the camera and converts it to tracking information.
Reads current tracking information from the camera (which was started by calling trackColor()).
Considers object to be centered when x middle mass is between 30 and 60.
GrabObject() - Method in class motors
Runs through the sequence of commands to pick up an object.
green - Static variable in class CameraImage
Used to convert the read data from the camera dump from into a single rgb value.

H

handstall - Variable in class motors
Hand stall flag
HandStallTime - Static variable in class motors
Time interval to wait for no movement before assuming a stall has occured
HandStallTimer - Static variable in class motors
Hand Stall Timer Variable

I

idle() - Method in class CameraImage
Trys to get the camera to settle down and idle
initializeSerialPort(String, int) - Method in class serialComm
Method to initialize the serial port (N81) at the given baud rate and set up the input and output streams.
inStream - Variable in class serialComm
Reference to the serial input stream

K

k - Static variable in class CameraImage
Tmp variables used for reading and checking for an ACK from the camera.

L

leftb - Static variable in class motors
Lego touch sensor for left bumper
leftbHit - Variable in class motors
Set true if the left bumper is pressed Set false otherwise

M

main(String[]) - Static method in class motors
Main Function Will use for debugging and unit testing
main(String[]) - Static method in class Seeker
This is the main function called by java to start things running.
This fuction simply creates an instance of the class and starts it running.
mArm - Static variable in class motors
Lego control for arm motor
mHand - Static variable in class motors
Lego control for hand motor
mLeft - Static variable in class motors
Lego control for left motor
mmx - Static variable in class CameraImage
Holders of the data returned from the camera when tracking a color.
mmy - Static variable in class CameraImage
Holders of the data returned from the camera when tracking a color.
motorArm - Static variable in class motors
Lego motor speed for arm movement
motorForwFast - Static variable in class motors
Lego motor speed for fast forward
motorForwSlow - Static variable in class motors
Lego motor speed for slow forward
motorHand - Static variable in class motors
Lego motor speed for hand movement
motorRealSlow - Static variable in class motors
Lego motor speed for real slow
motors - class motors.
This class does all the handling of the robot motors and sensors.

The functions rotate(), track(), GrabObject(), and ReleaseObject() are the functions which get called by the main Seeker class.
motors(CameraImage) - Constructor for class motors
Sets default values for all class members

Also, sets up the event listeners for the multiple input sensors.
motorTurnFast - Static variable in class motors
Lego motor speed for fast turn
motorTurnSlow - Static variable in class motors
Lego motor speed for slow turn
movement - Static variable in class motors
Rotation count for forward movement
mRight - Static variable in class motors
Lego control for right motor
mySerial - Static variable in class CameraImage
javax.com serial interface class used for talking to the camera.

N

nextstate - Variable in class motors
State Variables
noColor - Variable in class motors
Color Tracking flag
NumColors - Static variable in class CameraImage
Number of colors the robot can track.

O

one - Static variable in class serialComm
Used by the readNum() function to convert the received characters into a single number.
outStream - Variable in class serialComm
Reference to the serial output stream

P

pixColor - Static variable in class CameraImage
Used to convert the read data from the camera dump from into a single rgb value.
pixels - Static variable in class CameraImage
Array to hold the data returned from a frame dump.
PortA - Static variable in class motors
Port A control (used for turning on buzzer)
prevstate - Variable in class motors
State Variables

R

r - Static variable in class CameraImage
Tmp variables used for reading and checking for an ACK from the camera.
readByte() - Method in class serialComm
Reads in a byte of data from the serial port.
readNonBlock() - Method in class serialComm
Checks to see if any data is waiting to be read.
readNum() - Method in class serialComm
Reads in an ascii number and returns an int.
This function blocks.
red - Static variable in class CameraImage
Used to convert the read data from the camera dump from into a single rgb value.
ReleaseObject() - Method in class motors
Opens the gripper to release the object.
reset() - Method in class motors
Initializes all the flags and variables used by the class to make sure everything is in the initial state.
rightb - Static variable in class motors
Lego touch sensor for right bumper
rightbHit - Variable in class motors
Set true if the right bumper is pressed Set false otherwise
RobotControl - Static variable in class Seeker
 
rot20left - Variable in class motors
Flags for when we need to perform certain actions.
rot20right - Variable in class motors
Flags for when we need to perform certain actions.
rotate(int) - Method in class motors
Sets the motors to rotate the robot 20 degrees in the given direction.
row - Static variable in class CameraImage
Current position of the data being read from a frame dump.
Run() - Method in class Seeker
This is where the actual overall AI of the robot is controlled from.
The general flow of the AI is as follows: Take a snapshot from the camera via serial download. Search the image for one of our pre-defined colors.

S

sArm - Static variable in class motors
Lego rotation sensor for arm
Seeker - class Seeker.
The purpose of this robot is to search for different colored objects and manuver the robot to pick them up.
Seeker() - Constructor for class Seeker
Class constructor.
This function initialized the external components used by the robot.
One is the camera class, which does all the interaction and processing of the camera data.
sendCommand(String) - Method in class CameraImage
Sends a command and checks for an ACK
serialComm - class serialComm.
This is the serial communication class for the Seeker robot.
serialComm(String, int) - Constructor for class serialComm
Calls initializeSerialPort to open and configure the serial port.
serialPort - Static variable in class serialComm
Reference to the javax.comm serial port
sHand - Static variable in class motors
Lego rotation sensor for hand
sLeft - Static variable in class motors
Lego rotation sensor for left wheel
sRight - Static variable in class motors
Lego rotation sensor for right wheel
stall - Variable in class motors
Stall flag
stallfixed - Variable in class motors
Stall fixed flag
stallFixInterval - Static variable in class motors
Time interval to wait before the stall variable can be changed.
StallFixTimer - Static variable in class motors
Stall Fix Timer Variable
stallInterval - Static variable in class motors
Time interval to wait before the stall variable can be changed.
stallleftcount - Variable in class motors
Left stall counter
stallread - Variable in class motors
Stall read flag
stallrightcount - Variable in class motors
Right stall counter
stallTime - Static variable in class motors
Time interval to wait for no movement before assuming a stall has occured
StallTimer - Static variable in class motors
Stall Timer Variable
stalltimeup - Variable in class motors
Stall time over flag
start - Static variable in class CameraImage
Flag if we are starting a new command or not.

T

three - Static variable in class serialComm
Used by the readNum() function to convert the received characters into a single number.
time - Static variable in class CameraImage
Used to check for timeouts reading data.
time - Static variable in class serialComm
Used to check for serial timeouts when reading data in.
time2 - Static variable in class serialComm
Used to check for serial timeouts when reading data in.
timeInterval - Static variable in class motors
Time interval between polls of direction
timeIntervalDone - Variable in class motors
Tracks whether the timeInterval has passed
timer - Static variable in class motors
Timer to use for the time intervals between polls
track() - Method in class motors
Set the motors to correctly track an object.
Calls GetTrackDirection() to determine which direction to rotate to as well as whether to move forward or not.
Will handle wall/object collision by turning 90 degrees opposite of collision moving a few inches, and swing back to the original orientation.

The state machine diagrams for how this class operates are Tracking, Left Bumper Hit, and Rght Bumper Hit.
TrackColor - Static variable in class Seeker
 
trackColor(int) - Method in class CameraImage
This function initializes the camera to start tracking a certain color.
turndone - Variable in class motors
While fixing the bumpers, tracks whether the 90 degree turns are complete
two - Static variable in class serialComm
Used by the readNum() function to convert the received characters into a single number.

V

val - Static variable in class serialComm
Tmp storage used to hold read data before returning it.
VoiceAllDone - Static variable in class Seeker
 
VoiceBall - Static variable in class Seeker
 
VoiceBalls - Static variable in class Seeker
 
VoiceFive - Static variable in class Seeker
 
VoiceFound - Static variable in class Seeker
 
VoiceFour - Static variable in class Seeker
 
VoiceGiveBin - Static variable in class Seeker
 
VoiceGreen - Static variable in class Seeker
 
VoiceLooking - Static variable in class Seeker
 
VoiceOne - Static variable in class Seeker
 
VoiceOutput(String) - Method in class Seeker
Send one or more (up to 4) commands to voice extreme board for it to say in order.
VoicePickingUp - Static variable in class Seeker
 
VoiceRed - Static variable in class Seeker
 
VoiceSerial - Static variable in class Seeker
 
VoiceThree - Static variable in class Seeker
 
VoiceTracking - Static variable in class Seeker
 
VoiceTwo - Static variable in class Seeker
 
VoiceWhite - Static variable in class Seeker
 
VoiceYellow - Static variable in class Seeker
 

W

wdTimer - Static variable in class CameraImage
Used to check for timeouts reading data.
wdTimer - Static variable in class serialComm
Used to check for serial timeouts when reading data in.
writeStr(String) - Method in class serialComm
Sends the input string of characters out the serial port.

X

x2coord - Static variable in class CameraImage
Holders of the data returned from the camera when tracking a color.
xcoord - Static variable in class CameraImage
Holders of the data returned from the camera when tracking a color.
XSize - Static variable in class CameraImage
Used for determining the direction we need to move to track the object.

Y

y2coord - Static variable in class CameraImage
Holders of the data returned from the camera when tracking a color.
ycoord - Static variable in class CameraImage
Holders of the data returned from the camera when tracking a color.

Z

zcoord - Static variable in class CameraImage
Holders of the data returned from the camera when tracking a color.

A B C D F G H I K L M N O P R S T V W X Y Z