DonnyCraft1 / PIDArduino

A simple PID library for Arduino
MIT License
45 stars 21 forks source link

Update PIDController.cpp #21

Open martind69 opened 2 years ago

martind69 commented 2 years ago

Added Failsafe to return unchanged calculation to prevent divsion by 0 what results in NaN Added Adaptive Ki factor to stabilize the controller at higher sensor values

Please correct line 70 to: aKiDivisor = newFactor;