@@ -140,4 +140,27 @@ Construction wise we had to build upon on the express-bot robot base, but added
### Result
#### Behavior 1
The look for target behaviour as located in the LookForTarget Class, is a simple constant rotation in place where the robot is placed when the match begins. Motor A is the left motor and motor B is the right motor from the robot's point of view. This will mean that when looking for a target, the robot will always turn to the right. A video of the behavior in action can be seen in fig/video ???.(Indsæt link til video)
\ No newline at end of file
The look for target behaviour as located in the LookForTarget Class (see fig. 8), is a simple constant rotation in place where the robot is placed when the match begins. Motor A is the left motor and motor B is the right motor from the robot's point of view. This will mean that when looking for a target, the robot will always turn to the right. A video of the behavior in action can be seen in fig. 9.
>
```
public void action() {
// TODO Auto-generated method stub
_suppressed = false;
Motor.A.forward();
Motor.C.backward();
LCD.drawString("Look for target",0,2);
while (!_suppressed)
{
Thread.yield(); //don't exit till suppressed
}
```
>
##### Fig. 8: The action method of the lookForTarget behavior.
[](http://www.youtube.com/watch?v=RjFRPIYJg_g)
##### Fig. 9: A video of the lookForTarget behavior. The robot is started on the wrestling arena and turns in place. A small glich occurs, probably due to a wrong reading of the ultrasonic sensors.