From 736b2b8c8b1bf1b36273cfadd74449bb701c2535 Mon Sep 17 00:00:00 2001 From: Dlloydev Date: Sat, 25 Mar 2023 10:25:01 -0400 Subject: [PATCH] Resolves #68 --- library.json | 2 +- library.properties | 2 +- src/QuickPID.cpp | 7 +++++-- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/library.json b/library.json index f07a256..ca1ae46 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "QuickPID", - "version": "3.1.5", + "version": "3.1.6", "description": "A fast PID controller with multiple options. Various Integral anti-windup, Proportional, Derivative and timer control modes.", "keywords": "PID, controller, signal, autotune, tuner, stune", "repository": diff --git a/library.properties b/library.properties index 1d23fe4..297c268 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=QuickPID -version=3.1.5 +version=3.1.6 author=David Lloyd maintainer=David Lloyd sentence=A fast PID controller with multiple options. Various Integral anti-windup, Proportional and Derivative control modes. diff --git a/src/QuickPID.cpp b/src/QuickPID.cpp index 373e720..94c7fbf 100644 --- a/src/QuickPID.cpp +++ b/src/QuickPID.cpp @@ -1,5 +1,5 @@ /********************************************************************************** - QuickPID Library for Arduino - Version 3.1.5 + QuickPID Library for Arduino - Version 3.1.6 by dlloydev https://github.com/Dlloydev/QuickPID Based on the Arduino PID_v1 Library. Licensed under the MIT License. **********************************************************************************/ @@ -55,7 +55,10 @@ QuickPID::QuickPID(float* Input, float* Output, float* Setpoint, Simplified constructor which uses defaults for remaining parameters. **********************************************************************************/ QuickPID::QuickPID(float* Input, float* Output, float* Setpoint) - : QuickPID::QuickPID(Input, Output, Setpoint, dispKp, dispKi, dispKd, + : QuickPID::QuickPID(Input, Output, Setpoint, + dispKp = 0, + dispKi = 0, + dispKd = 0, pmode = pMode::pOnError, dmode = dMode::dOnMeas, iawmode = iAwMode::iAwCondition,