repositories
/
des2015.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Implemented measure motor
[des2015.git]
/
dsl
/
runtime
/
specs
/
wander.tdsl
diff --git
a/dsl/runtime/specs/wander.tdsl
b/dsl/runtime/specs/wander.tdsl
index
5100e52
..
7bc0ef5
100644
(file)
--- a/
dsl/runtime/specs/wander.tdsl
+++ b/
dsl/runtime/specs/wander.tdsl
@@
-1,33
+1,25
@@
Acceleration 1000
Acceleration 1000
-Speed
2
50
+Speed
1
50
Behaviour Wander
take control:
action:
left motor forward
right motor forward
wait forever
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:
Behaviour StayInFieldL
take control: Light on left
action:
- right motor backward with speed 250 acceleration 10000
- left motor forward with speed 250 acceleration 10000
- wait 750 ms
+ turn right 90
Behaviour StayInFieldR
take control: Light on right
action:
Behaviour StayInFieldR
take control: Light on right
action:
- right motor forward with speed 250 acceleration 10000
- left motor backward with speed 250 acceleration 10000
- wait 750 ms
+ turn left 90
Behaviour StayInFieldB
take control: Distance dangerous at back
action:
wait 750 ms
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 Cyan
\ No newline at end of file