only:pid example

This commit is contained in:
rusefillc 2025-03-10 21:33:00 -04:00
parent 2378f73d5f
commit 4f485028f9
1 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
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)