Motor getMotorState()
|
- |
returns a reference to the current Motor object. Use this returned
reference to set motor speeds, etc. |
|
Sensor[] getSensorValues()
|
- |
returns a reference to an array of 8 Sensor objects. Each Sensor object
in the array refers to 1 of the 8 IR sensors on the robot. The array indexes
(0-7) access the sensors starting at the leftmost sensor (i.e. Sensor[0]) as
you look at the top of the robot with its front facing up. The rest are
indexed going clock-wise around the robot from this perspective. |
|
int getArmState() |
- |
returns one of the two arm constants as defined above. Provides
information on the gripper arm's current position. |
|
void setArmState(int arm)
|
- |
accepts one of the two arm constants as defined above. This will
move the gripper arm to the specified position. |
|
int getGripperState()
|
- |
returns one of the two gripper constants as defined above. Provides
information on the grippers' current position. |
|
void setGripperState(int grip)
|
- |
accepts one of the two gripper constants as defined above. This will
move the grippers to the specified position. If an object is between the
grippers, it will effectively grab the object. |
|
boolean isObjectPresent()
|
- |
returns true if an object is currently detected by the gripper sensor,
false otherwise. The gripper sensor detects anything present between the
grippers. |
|