X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;ds=sidebyside;f=dsl%2Fruntime%2Fspecs%2Fwander.tdsl;h=80cd16915b8953ec0abe97f5757495ea56107e41;hb=7d9c29a46bae0afbc961e57f3013190b31ae5234;hp=a51a0649f44c5593432bf709007f0976a894efa2;hpb=16aef029cf49685c60c422d36b54d459355e832c;p=des2015.git diff --git a/dsl/runtime/specs/wander.tdsl b/dsl/runtime/specs/wander.tdsl index a51a064..80cd169 100644 --- a/dsl/runtime/specs/wander.tdsl +++ b/dsl/runtime/specs/wander.tdsl @@ -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