source:
experiments/frams/capture-the-flag/data/scripts/Flag.neuro
@
570
Last change on this file since 570 was 480, checked in by , 9 years ago | |
---|---|
File size: 576 bytes |
Rev | Line | |
---|---|---|
[232] | 1 | class: |
2 | name:Flag | |
3 | longname:Flag detection neuron | |
4 | description:Outputs signal strength | |
5 | prefinputs:0 | |
6 | prefoutput:1 | |
7 | icon:~ | |
8 | 40,3,3,25,0,25,100,75,50,25,0,1,75,50,100,50,11,30,50,38,50,40,48,42,52,44,47,46,48,48,57,50,42,52,52,54,47,57,50,65,50~ | |
9 | code:~ | |
10 | function init(){ | |
11 | // Neuro.signals.add("Flag"); | |
[480] | 12 | // Neuro.signals[0].flavor = NeuroProperties.team; |
[232] | 13 | // Neuro.signals[0].power = 0; |
14 | } | |
15 | ||
16 | function go() | |
17 | { | |
[480] | 18 | var output = Neuro.signals.receiveFilter("Flag", 2000, NeuroProperties.team, 0.5); |
[232] | 19 | Neuro.state = output; |
20 | ||
21 | } | |
22 | ~ | |
23 | ||
[480] | 24 | property: |
[232] | 25 | id:team |
26 | name:Team number | |
27 | type:d |
Note: See TracBrowser
for help on using the repository browser.