public class Test extends Object
| Constructor and Description | 
|---|
Test()  | 
| Modifier and Type | Method and Description | 
|---|---|
static void | 
AvoidanceTest(Odometer odo)
Simple Avoidance test
 Just checks for obstacle avoidance 
 | 
static void | 
ForkliftTest()
Test for controlling the operation of the forklift
 Based on button inputs 
 | 
static void | 
FullAvoidanceTest(Odometer odometer)
Full test to verify if the robot is capable of avoiding
 Checks for objects, RED zone, and starting corners 
 | 
static void | 
GripTest()
Test for finding the threshold of motor angle for dropped block 
 | 
static void | 
LocalizationTest(Odometer odo)
Simple localization routine 
 | 
static void | 
NavigationTest(Odometer odo,
              double[][] points,
              boolean stop)
Move robot to arbitrary waypoints 
 | 
static void | 
ObjectDifferentiationTest(Odometer odometer,
                         ColorSensor colorSensor,
                         USSensor usSensor,
                         double[][] GREEN)
Tests object differentiation in Search thread 
 | 
static void | 
ObjectDiffTest()
Basic test to verify if the robot can differentiate between obstacles and styrofoam blocks. 
 | 
static void | 
ReturnTest(Odometer odo,
          Clock clock)
Test for the robot returning to the starting corner (default corner) 
 | 
static void | 
RGBUnitVectorTest(ColorSensor color)
Measure RGB unit vector 
 | 
static void | 
SquareTest(Odometer odo,
          int laps,
          double length)
Move robot in square pattern (clockwise) of arbitrary size, and arbitrary amount of laps 
 | 
static void | 
StraightLineTest(Odometer odo,
                double distance)
Move robot forward and backward, turn 90 degrees and repeat 
 | 
static void | 
TrackMeasureTest(Odometer odo,
                int rotations)
Spin the robot a certain number of times. 
 | 
public static void LocalizationTest(Odometer odo)
odo - Odometerpublic static void SquareTest(Odometer odo, int laps, double length)
odo - Odometerlaps - Amount of laps for robot to travellength - Length of squarepublic static void StraightLineTest(Odometer odo, double distance)
odo - Odometerdistance - Distance to move forward and backwardpublic static void NavigationTest(Odometer odo, double[][] points, boolean stop)
odo - Odometerpoints - Waypointsstop - Stop robot at each point to measure errorpublic static void TrackMeasureTest(Odometer odo, int rotations)
odo - Odometer objectrotations - number of rotations the robot should do before stoppingpublic static void ObjectDiffTest()
public static void RGBUnitVectorTest(ColorSensor color)
color - ColorSensor objectpublic static void ObjectDifferentiationTest(Odometer odometer, ColorSensor colorSensor, USSensor usSensor, double[][] GREEN)
odometer - Odometer ObjectcolorSensor - ColorSensor ObjectusSensor - USSensor ObjectGREEN - coordinates of scoring zoneSearchpublic static void ForkliftTest()
Forkliftpublic static void FullAvoidanceTest(Odometer odometer)
odometer - Odometer objectpublic static void AvoidanceTest(Odometer odo)
odo - Odometer objectpublic static void GripTest()