Major update: fixed fdm-bug (thanks to LesterBoffo!), added tutorials, added replayre...
[fg:toms-fgdata.git] / Aircraft / ec130 / Nasal / test.nas
1 var test = func{
2
3 var brake = props.globals.getNode("/controls/rotor/brake", 1);
4
5
6 if (getprop("/controls/rotor/brake") >1){
7 setprop("/controls/rotor/brake", 1);
8 }
9 if (getprop("/controls/rotor/brake") <0){
10 setprop("/controls/rotor/brake", 0);
11 }
12
13 settimer(test, 0.01);
14 }
15 test();
16