This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

function from timer
#2
Can you explain the 1% logic? If the timer value is 1 then nothing should happen or should it turn on the actuators?

If 0 = off, 1..100 = on then the following script should do what you need.
Code:
value = event.getvalue() on = value > 0 if on then   grp.checkwrite('1/0/1', value) end for i = 1, 7 do   grp.checkwrite('1/1/' .. i, on) end
Reply


Messages In This Thread
function from timer - by Danny - Yesterday, 09:02
RE: function from timer - by admin - Yesterday, 09:11
RE: function from timer - by Danny - Yesterday, 10:15
RE: function from timer - by admin - Yesterday, 10:17

Forum Jump: