working multiple missions
[des2015.git] / dsl / runtime / specs / wander.tdsl
index a51a064..80cd169 100644 (file)
@@ -1,29 +1,25 @@
 Acceleration 1000
-Speed 250
+Speed 150
 Behaviour Wander
        take control:
        action:
                left motor forward
                right motor forward
                wait forever
-
-Behaviour StayInFieldBoth
-       take control: (&& Light on left Light on right)
-       action:
-               left motor backward with speed 1000 acceleration 10000
-               right motor backward with speed 250 acceleration 10000
-               wait 1000 ms
 Behaviour StayInFieldL
        take control: Light on left
        action:
-               turn right 90 with speed 100 acceleration 10000
+               turn right 90
 Behaviour StayInFieldR
        take control: Light on right
        action:
-               turn left 90 with speed 100 acceleration 10000
+               turn left 90
 Behaviour StayInFieldB
        take control: Distance dangerous at back
        action:
                wait 750 ms
-        
-Mission stayinfield using Wander StayInFieldL StayInFieldR StayInFieldB StayInFieldBoth and stops when Color is Cyan
\ No newline at end of file
+Behaviour Measure
+       take control: Color is Green
+       action:
+               measure
+Mission stayinfield using Wander Measure StayInFieldL StayInFieldR and stops when Color is Blue
\ No newline at end of file