6bbc02f40ad847e23fec84c2884ddf3bb64cc969
[des2015.git] / dsl / runtime / specs / spec1.tdsl
1 Name MartNatanael
2 Acceleration 1000
3 Speed 200
4 Behaviour Wander
5 take control:
6 action:
7 Left motor Forwards
8 Right motor Forwards
9 wait forever
10 Behaviour AvoidLowLeftObjects
11 take control: Touched on Left
12 action:
13 Left motor Backwards
14 Right motor Backwards
15 wait 250 ms
16 Right motor Backwards
17 Left motor Forwards
18 wait 250 ms
19 Behaviour AvoidLowRightObjects
20 take control: Touched on Right
21 action:
22 Left motor Backwards
23 Right motor Backwards
24 wait 250 ms
25 Right motor Forwards
26 Left motor Backwards
27 wait 250 ms
28 Behaviour AvoidHighObjects
29 take control: Distance < 50 cm
30 action:
31 Right motor Forwards
32 wait 250 ms
33 Behaviour StayInLine
34 take control: (or Color is Black Color is DarkGray)
35 action:
36 Right motor Forwards
37 Left motor Backwards
38 wait 250 ms
39 Mission Assignment
40 using
41 Wander
42 AvoidLowLeftObjects
43 AvoidLowRightObjects
44 AvoidHighObjects
45 StayInLine
46 and stops when
47 Collected at least Blue Green Yellow