16.01.2017, 09:46
Like this:
Code:
if not p1 then
p1 = PID:init({
current = '1/1/1',
setpoint = '1/1/2',
output = '1/1/3'
})
p2 = PID:init({
current = '2/1/1',
setpoint = '2/1/2',
output = '2/1/3'
})
end
p1:run()
p2:run()