repositories
/
des2015.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed shutdown behaviour and added print expression
[des2015.git]
/
dsl
/
runtime
/
specs
/
spec1.tdsl
diff --git
a/dsl/runtime/specs/spec1.tdsl
b/dsl/runtime/specs/spec1.tdsl
index
6bbc02f
..
d3271c0
100644
(file)
--- a/
dsl/runtime/specs/spec1.tdsl
+++ b/
dsl/runtime/specs/spec1.tdsl
@@
-1,40
+1,46
@@
-Name MartNatanael
Acceleration 1000
Speed 200
Behaviour Wander
take control:
action:
Acceleration 1000
Speed 200
Behaviour Wander
take control:
action:
- Left motor Forwards
- Right motor Forwards
+ left motor forward
+ right motor forward
wait forever
wait forever
+ measure lake
+ measure rock
Behaviour AvoidLowLeftObjects
Behaviour AvoidLowLeftObjects
- take control: Touched on
L
eft
+ take control: Touched on
l
eft
action:
action:
- Left motor Backwards
- Right motor Backwards
+ left motor backward
+ right motor backward
wait 250 ms
wait 250 ms
- Right motor Backwards
- Left motor Forwards
+ right motor backward
+ left motor forward
wait 250 ms
Behaviour AvoidLowRightObjects
wait 250 ms
Behaviour AvoidLowRightObjects
- take control: Touched on
R
ight
+ take control: Touched on
r
ight
action:
action:
- Left motor Backwards
- Right motor Backwards
+ left motor backward
+ right motor backward
wait 250 ms
wait 250 ms
- Right motor Forwards
- Left motor Backwards
+ right motor forward
+ left motor backward
wait 250 ms
Behaviour AvoidHighObjects
wait 250 ms
Behaviour AvoidHighObjects
- take control:
Distance < 50 cm
+ take control:
action:
action:
- Right motor Forwards
+ right motor forward
wait 250 ms
Behaviour StayInLine
wait 250 ms
Behaviour StayInLine
- take control:
(or Color is Black Color is DarkGray)
+ take control:
Color is Black
action:
action:
- Right motor Forwards
- Left motor Backwards
+ right motor forward
+ left motor backward
+ wait 250 ms
+Behaviour Meassure
+ take control:
+ action:
+ measure rock
wait 250 ms
Mission Assignment
using
wait 250 ms
Mission Assignment
using
@@
-44,4
+50,4
@@
using
AvoidHighObjects
StayInLine
and stops when
AvoidHighObjects
StayInLine
and stops when
- Collected at least Blue Green Yellow
+ Collected at least Blue Green Yellow
\ No newline at end of file