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 d0611bc commit 7e1d667
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 11 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright 2022 David Lloyd <dlloydev@testcor.ca>
Copyright 2023 David Lloyd <dlloydev@testcor.ca>

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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <TimerOne.h> // https://github.com/PaulStoffregen/TimerOne
#include <QuickPID.h>

#define PIN_INPUT 0
#define PIN_OUTPUT 3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <Ticker.h> // https://github.com/sstaub/Ticker
#include <QuickPID.h>
void runPid();

#define PIN_INPUT 0
Expand Down
2 changes: 1 addition & 1 deletion examples/PID_AdaptiveTunings/PID_AdaptiveTunings.ino
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
setpoint and more agressive tuning parameters when we're farther away.
******************************************************************************/

#include "QuickPID.h"
#include <QuickPID.h>

#define PIN_INPUT 0
#define PIN_OUTPUT 3
Expand Down
2 changes: 1 addition & 1 deletion examples/PID_Basic/PID_Basic.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Reading analog input 0 to control analog PWM output 3
********************************************************/

#include "QuickPID.h"
#include <QuickPID.h>

#define PIN_INPUT 0
#define PIN_OUTPUT 3
Expand Down
2 changes: 1 addition & 1 deletion examples/PID_Controller_Options/PID_Controller_Options.ino
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Documentation (GitHub): https://github.com/Dlloydev/QuickPID
**************************************************************************************/

#include "QuickPID.h"
#include <QuickPID.h>

const byte inputPin = 0;
const byte outputPin = 3;
Expand Down
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.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":
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.2
version=3.1.3
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
2 changes: 1 addition & 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.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.
**********************************************************************************/
Expand Down
3 changes: 3 additions & 0 deletions src/QuickPID.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7e1d667

Please sign in to comment.