rusefi/firmware/controllers/lua/examples/pid.lua

8 lines
288 B
Lua

industrialPid = IndustrialPid.new(1, 1, 0, 0, 0.5)
industrialControlLoopOutput = industrialPid:get(10, 1)
print('industrialControlLoopOutput: ' ..industrialControlLoopOutput)
pid = Pid.new(1, 1, 0, 0, 0.5)
controlLoopOutput = pid:get(10, 1)
print('Control Output: ' ..controlLoopOutput)