push
[des2015.git] / dsl / runtime / specs / spec1.tdsl
index 6bbc02f..ce35b55 100644 (file)
@@ -1,40 +1,46 @@
-Name MartNatanael
-Acceleration 1000
+-Acceleration 1000
 Speed 200
 Behaviour Wander 
        take control:
        action:
-               Left motor Forwards
-               Right motor Forwards
+               left motor forward
+               right motor forward
                wait forever
+               measure lake
+               measure rock
 Behaviour AvoidLowLeftObjects
-       take control: Touched on Left
+       take control: Touched on left
        action:
-               Left motor Backwards
-               Right motor Backwards
+               left motor backward
+               right motor backward
                wait 250 ms
-               Right motor Backwards
-               Left motor Forwards
+               right motor backward
+               left motor forward
                wait 250 ms
 Behaviour AvoidLowRightObjects
-       take control: Touched on Right
+       take control: Touched on right
        action:
-               Left motor Backwards
-               Right motor Backwards
+               left motor backward
+               right motor backward
                wait 250 ms
-               Right motor Forwards
-               Left motor Backwards
+               right motor forward
+               left motor backward
                wait 250 ms
 Behaviour AvoidHighObjects
-       take control: Distance < 50 cm
+       take control: 
        action:
-               Right motor Forwards
+               right motor forward
                wait 250 ms
 Behaviour StayInLine
-       take control: (or Color is Black Color is DarkGray)
+       take control: Color is Black
        action:
-               Right motor Forwards
-               Left motor Backwards
+               right motor forward
+               left motor backward
+               wait 250 ms
+Behaviour Measure
+       take control: 
+       action:
+               measure rock
                wait 250 ms
 Mission Assignment 
 using 
@@ -44,4 +50,4 @@ using
        AvoidHighObjects
        StayInLine
 and stops when
-       Collected at least Blue Green Yellow
+       Collected at least Blue Green Yellow
\ No newline at end of file