|
||
| Description: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
A Hardware Object that tracks the position of a line and calculates a URCP Heading based on that position. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Operation: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The oTracker Object monitors the 4 I/O lines specified by the IOGroup and Nibble properties. It is expecting that the 4 I/O lines are connected to an array of 4 optical sensors that are placed on the bottom of a robot to detect when a line is under them. It then takes the data read from these I/O lines and calculates a URCP Heading based on that position and stores it in the Value property. Before the URCP Value is stored in the Value property, it is compared to the previous value and the Direction property is set based on the direction that the line moved. If the line was in the middle of the sensor array, then the center property is set to 1, otherwise the Center property is set to 0. If the line was not found by the sensor, then the OutOfRange property is set to 1 and the Value property is set based on the value of the Mode property. If the Mode property is 0, then the oTracker Object assumes that the line has moved to the right or left of the sensor array and the Value property is set to 32 or -32 depending on the value of the Direction property. If the Mode property is 1, then the oTracker assumes that the line is between the two middle sensors and the Value property is set to 0 and the Center property is set to 1. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Storage size & Availability: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The following table lists the size and availability of the oTracker Object and its variations:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Properties: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
The following table lists the Properties of the oTracker Object:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Example: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
In the following example, the oTracker Object is used.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||