A PID loop controller for managing execution intervals.
You can install the package via pip:
pip install loop-controller
from pid_loop_controller import PidLoopController
# Your function to be called in the loop
def my_function():
print("Function called")
controller = PidLoopController(my_function, [], 1.0)
controller.set_controller_parameters(1.0, 0.1, 0.01)
controller.start()