From 6adfc2c6a8245c36286bebe59dacd11971daaa88 Mon Sep 17 00:00:00 2001 From: Dlloydev Date: Fri, 6 Jan 2023 18:44:26 -0500 Subject: [PATCH] Update * Added default constructor --- library.json | 2 +- library.properties | 2 +- src/QuickPID.cpp | 5 ++++- src/QuickPID.h | 2 +- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/library.json b/library.json index 02c37c6..847479d 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "QuickPID", - "version": "3.1.3", + "version": "3.1.4", "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 a1ee3e8..c80cfd4 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=QuickPID -version=3.1.3 +version=3.1.4 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 536dd75..f6841b3 100644 --- a/src/QuickPID.cpp +++ b/src/QuickPID.cpp @@ -1,5 +1,5 @@ /********************************************************************************** - QuickPID Library for Arduino - Version 3.1.3 + QuickPID Library for Arduino - Version 3.1.4 by dlloydev https://github.com/Dlloydev/QuickPID Based on the Arduino PID_v1 Library. Licensed under the MIT License. **********************************************************************************/ @@ -12,10 +12,13 @@ #include "QuickPID.h" +QuickPID::QuickPID() {} + /* Constructor ******************************************************************** The parameters specified here are those for for which we can't set up reliable defaults, so we need to have the user set them. **********************************************************************************/ + QuickPID::QuickPID(float* Input, float* Output, float* Setpoint, float Kp = 0, float Ki = 0, float Kd = 0, pMode pMode = pMode::pOnError, diff --git a/src/QuickPID.h b/src/QuickPID.h index 35a786f..524194d 100644 --- a/src/QuickPID.h +++ b/src/QuickPID.h @@ -15,7 +15,7 @@ class QuickPID { // commonly used functions ************************************************************************************ // Default constructor - QuickPID() {} + QuickPID(); // Constructor. Links the PID to Input, Output, Setpoint, initial tuning parameters and control modes. QuickPID(float *Input, float *Output, float *Setpoint, float Kp, float Ki, float Kd,