Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
* Added default constructor
  • Loading branch information
Dlloydev committed Jan 6, 2023
1 parent 7e1d667 commit 6adfc2c
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion library.json
Original file line number Diff line number Diff line change
@@ -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":
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=QuickPID
version=3.1.3
version=3.1.4
author=David Lloyd
maintainer=David Lloyd <dlloydev@testcor.ca>
sentence=A fast PID controller with multiple options. Various Integral anti-windup, Proportional and Derivative control modes.
Expand Down
5 changes: 4 additions & 1 deletion src/QuickPID.cpp
Original file line number Diff line number Diff line change
@@ -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.
**********************************************************************************/
Expand All @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/QuickPID.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 6adfc2c

Please sign in to comment.