diff --git a/LICENSE b/LICENSE index 5f44edf..3a20a5b 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright 2022 David Lloyd +Copyright 2023 David Lloyd Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/examples/PID_AVR_Basic_Interrupt_TIMER/PID_AVR_Basic_Interrupt_TIMER.ino b/examples/PID_AVR_Basic_Interrupt_TIMER/PID_AVR_Basic_Interrupt_TIMER.ino index 5577371..2b06d05 100644 --- a/examples/PID_AVR_Basic_Interrupt_TIMER/PID_AVR_Basic_Interrupt_TIMER.ino +++ b/examples/PID_AVR_Basic_Interrupt_TIMER/PID_AVR_Basic_Interrupt_TIMER.ino @@ -2,8 +2,8 @@ PID AVR Basic Interrupt TIMER Example Reading analog input 0 to control analog PWM output 3 ********************************************************/ -#include "TimerOne.h" // https://github.com/PaulStoffregen/TimerOne -#include "QuickPID.h" +#include // https://github.com/PaulStoffregen/TimerOne +#include #define PIN_INPUT 0 #define PIN_OUTPUT 3 diff --git a/examples/PID_AVR_Basic_Software_TIMER/PID_AVR_Basic_Software_TIMER.ino b/examples/PID_AVR_Basic_Software_TIMER/PID_AVR_Basic_Software_TIMER.ino index e64c3d5..89ce0a1 100644 --- a/examples/PID_AVR_Basic_Software_TIMER/PID_AVR_Basic_Software_TIMER.ino +++ b/examples/PID_AVR_Basic_Software_TIMER/PID_AVR_Basic_Software_TIMER.ino @@ -2,8 +2,8 @@ PID AVR Basic Software TIMER Example Reading analog input 0 to control analog PWM output 3 ********************************************************/ -#include "Ticker.h" // https://github.com/sstaub/Ticker -#include "QuickPID.h" +#include // https://github.com/sstaub/Ticker +#include void runPid(); #define PIN_INPUT 0 diff --git a/examples/PID_AdaptiveTunings/PID_AdaptiveTunings.ino b/examples/PID_AdaptiveTunings/PID_AdaptiveTunings.ino index 4908fcb..018c647 100644 --- a/examples/PID_AdaptiveTunings/PID_AdaptiveTunings.ino +++ b/examples/PID_AdaptiveTunings/PID_AdaptiveTunings.ino @@ -7,7 +7,7 @@ setpoint and more agressive tuning parameters when we're farther away. ******************************************************************************/ -#include "QuickPID.h" +#include #define PIN_INPUT 0 #define PIN_OUTPUT 3 diff --git a/examples/PID_Basic/PID_Basic.ino b/examples/PID_Basic/PID_Basic.ino index 73b2624..5afee18 100644 --- a/examples/PID_Basic/PID_Basic.ino +++ b/examples/PID_Basic/PID_Basic.ino @@ -3,7 +3,7 @@ Reading analog input 0 to control analog PWM output 3 ********************************************************/ -#include "QuickPID.h" +#include #define PIN_INPUT 0 #define PIN_OUTPUT 3 diff --git a/examples/PID_Controller_Options/PID_Controller_Options.ino b/examples/PID_Controller_Options/PID_Controller_Options.ino index f413dab..abbf9a8 100644 --- a/examples/PID_Controller_Options/PID_Controller_Options.ino +++ b/examples/PID_Controller_Options/PID_Controller_Options.ino @@ -3,7 +3,7 @@ Documentation (GitHub): https://github.com/Dlloydev/QuickPID **************************************************************************************/ -#include "QuickPID.h" +#include const byte inputPin = 0; const byte outputPin = 3; diff --git a/library.json b/library.json index de004bb..02c37c6 100644 --- a/library.json +++ b/library.json @@ -1,6 +1,6 @@ { "name": "QuickPID", - "version": "3.1.2", + "version": "3.1.3", "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 f75d60f..a1ee3e8 100644 --- a/library.properties +++ b/library.properties @@ -1,5 +1,5 @@ name=QuickPID -version=3.1.2 +version=3.1.3 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 3dfdcca..536dd75 100644 --- a/src/QuickPID.cpp +++ b/src/QuickPID.cpp @@ -1,5 +1,5 @@ /********************************************************************************** - QuickPID Library for Arduino - Version 3.1.2 + QuickPID Library for Arduino - Version 3.1.3 by dlloydev https://github.com/Dlloydev/QuickPID Based on the Arduino PID_v1 Library. Licensed under the MIT License. **********************************************************************************/ diff --git a/src/QuickPID.h b/src/QuickPID.h index 394b7f3..35a786f 100644 --- a/src/QuickPID.h +++ b/src/QuickPID.h @@ -14,6 +14,9 @@ class QuickPID { // commonly used functions ************************************************************************************ + // Default constructor + 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, pMode pMode, dMode dMode, iAwMode iAwMode, Action Action);