m-lundberg / simple-pid

A simple and easy to use PID controller in Python
MIT License
801 stars 217 forks source link

output limit not negative? #88

Closed ator1811 closed 2 months ago

ator1811 commented 2 months ago

Hi, I want to use the PID library with CircuitPython.

I try to set the output limits from -1 to 1 pid.output_limits = (-1, 1)

The negative value of the lowerlimit is changed to a positive number print(pid.output_limits)

Returns code.py output: ( 1, 1)

Is this an error or are negative lower limits not allowed? Regards, Aernout

ator1811 commented 2 months ago

not applicable. SOmehow minus signs were not printed