Skip to content

Commit 7e1d667

Browse files
committed
Update
* Added default constructor
1 parent d0611bc commit 7e1d667

File tree

10 files changed

+14
-11
lines changed

10 files changed

+14
-11
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright 2022 David Lloyd <[email protected]>
1+
Copyright 2023 David Lloyd <[email protected]>
22

33
Permission is hereby granted, free of charge, to any person obtaining a copy of
44
this software and associated documentation files (the "Software"), to deal in

examples/PID_AVR_Basic_Interrupt_TIMER/PID_AVR_Basic_Interrupt_TIMER.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
PID AVR Basic Interrupt TIMER Example
33
Reading analog input 0 to control analog PWM output 3
44
********************************************************/
5-
#include "TimerOne.h" // https://github.com/PaulStoffregen/TimerOne
6-
#include "QuickPID.h"
5+
#include <TimerOne.h> // https://github.com/PaulStoffregen/TimerOne
6+
#include <QuickPID.h>
77

88
#define PIN_INPUT 0
99
#define PIN_OUTPUT 3

examples/PID_AVR_Basic_Software_TIMER/PID_AVR_Basic_Software_TIMER.ino

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
PID AVR Basic Software TIMER Example
33
Reading analog input 0 to control analog PWM output 3
44
********************************************************/
5-
#include "Ticker.h" // https://github.com/sstaub/Ticker
6-
#include "QuickPID.h"
5+
#include <Ticker.h> // https://github.com/sstaub/Ticker
6+
#include <QuickPID.h>
77
void runPid();
88

99
#define PIN_INPUT 0

examples/PID_AdaptiveTunings/PID_AdaptiveTunings.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
setpoint and more agressive tuning parameters when we're farther away.
88
******************************************************************************/
99

10-
#include "QuickPID.h"
10+
#include <QuickPID.h>
1111

1212
#define PIN_INPUT 0
1313
#define PIN_OUTPUT 3

examples/PID_Basic/PID_Basic.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Reading analog input 0 to control analog PWM output 3
44
********************************************************/
55

6-
#include "QuickPID.h"
6+
#include <QuickPID.h>
77

88
#define PIN_INPUT 0
99
#define PIN_OUTPUT 3

examples/PID_Controller_Options/PID_Controller_Options.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Documentation (GitHub): https://github.com/Dlloydev/QuickPID
44
**************************************************************************************/
55

6-
#include "QuickPID.h"
6+
#include <QuickPID.h>
77

88
const byte inputPin = 0;
99
const byte outputPin = 3;

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "QuickPID",
3-
"version": "3.1.2",
3+
"version": "3.1.3",
44
"description": "A fast PID controller with multiple options. Various Integral anti-windup, Proportional, Derivative and timer control modes.",
55
"keywords": "PID, controller, signal, autotune, tuner, stune",
66
"repository":

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=QuickPID
2-
version=3.1.2
2+
version=3.1.3
33
author=David Lloyd
44
maintainer=David Lloyd <[email protected]>
55
sentence=A fast PID controller with multiple options. Various Integral anti-windup, Proportional and Derivative control modes.

src/QuickPID.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**********************************************************************************
2-
QuickPID Library for Arduino - Version 3.1.2
2+
QuickPID Library for Arduino - Version 3.1.3
33
by dlloydev https://github.com/Dlloydev/QuickPID
44
Based on the Arduino PID_v1 Library. Licensed under the MIT License.
55
**********************************************************************************/

src/QuickPID.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ class QuickPID {
1414

1515
// commonly used functions ************************************************************************************
1616

17+
// Default constructor
18+
QuickPID() {}
19+
1720
// Constructor. Links the PID to Input, Output, Setpoint, initial tuning parameters and control modes.
1821
QuickPID(float *Input, float *Output, float *Setpoint, float Kp, float Ki, float Kd,
1922
pMode pMode, dMode dMode, iAwMode iAwMode, Action Action);

0 commit comments

Comments
 (0)