source: experiments/frams/capture-the-flag/data/scripts/Flag.neuro @ 1300

Last change on this file since 1300 was 480, checked in by sz, 9 years ago

experiment scripts updated to match the upcoming Framsticks version (ExpParams? ==> ExpProperties?, Fields ==> NeuroProperties?, prop: ==> property)

File size: 576 bytes
Line 
1class:
2name:Flag
3longname:Flag detection neuron
4description:Outputs signal strength
5prefinputs:0
6prefoutput:1
7icon:~
840,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~
9code:~
10function init(){
11//      Neuro.signals.add("Flag");
12//      Neuro.signals[0].flavor = NeuroProperties.team;
13//      Neuro.signals[0].power = 0;
14}
15
16function go()
17{
18        var output = Neuro.signals.receiveFilter("Flag", 2000, NeuroProperties.team, 0.5);
19        Neuro.state = output;
20       
21}
22~
23
24property:
25id:team
26name:Team number
27type:d
Note: See TracBrowser for help on using the repository browser.