push
[des2015.git] / dsl / runtime / specs / wander.tdsl
1 Acceleration 1000
2 Speed 250
3 Behaviour Wander
4 take control:
5 action:
6 left motor forward
7 right motor forward
8 wait forever
9
10 Behaviour StayInFieldBoth
11 take control: (&& Light on left Light on right)
12 action:
13 left motor backward with speed 1000 acceleration 10000
14 right motor backward with speed 250 acceleration 10000
15 wait 1000 ms
16 Behaviour StayInFieldL
17 take control: Light on left
18 action:
19 turn right 90 with speed 100 acceleration 10000
20 Behaviour StayInFieldR
21 take control: Light on right
22 action:
23 turn left 90 with speed 100 acceleration 10000
24 Behaviour StayInFieldB
25 take control: Distance dangerous at back
26 action:
27 wait 750 ms
28
29 Mission stayinfield using Wander StayInFieldL StayInFieldR StayInFieldB StayInFieldBoth and stops when Color is Cyan