Skip to content

Commit 92bd6e7

Browse files
committed
Merge branch 'master' of https://github.com/Dlloydev/QuickPID
2 parents 299ce37 + f375a86 commit 92bd6e7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/QuickPID.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ QuickPID::QuickPID(float* Input, float* Output, float* Setpoint,
2121
pMode pMode = pMode::pOnError,
2222
dMode dMode = dMode::dOnMeas,
2323
iAwMode iAwMode = iAwMode::iAwCondition,
24-
Action action = Action::direct) {
24+
Action Action = Action::direct) {
2525

2626
myOutput = Output;
2727
myInput = Input;
@@ -30,7 +30,7 @@ QuickPID::QuickPID(float* Input, float* Output, float* Setpoint,
3030

3131
QuickPID::SetOutputLimits(0, 255); // same default as Arduino PWM limit
3232
sampleTimeUs = 100000; // 0.1 sec default
33-
QuickPID::SetControllerDirection(action);
33+
QuickPID::SetControllerDirection(Action);
3434
QuickPID::SetTunings(Kp, Ki, Kd, pMode, dMode, iAwMode);
3535

3636
lastTime = micros() - sampleTimeUs;
@@ -40,12 +40,12 @@ QuickPID::QuickPID(float* Input, float* Output, float* Setpoint,
4040
To allow using pOnError, dOnMeas and iAwCondition without explicitly saying so.
4141
**********************************************************************************/
4242
QuickPID::QuickPID(float* Input, float* Output, float* Setpoint,
43-
float Kp, float Ki, float Kd, Action action)
43+
float Kp, float Ki, float Kd, Action Action)
4444
: QuickPID::QuickPID(Input, Output, Setpoint, Kp, Ki, Kd,
4545
pmode = pMode::pOnError,
4646
dmode = dMode::dOnMeas,
4747
iawmode = iAwMode::iAwCondition,
48-
action = Action::direct) {
48+
action = Action) {
4949
}
5050

5151
/* Constructor *********************************************************************

src/QuickPID.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class QuickPID {
2626
QuickPID(float *Input, float *Output, float *Setpoint);
2727

2828
// Sets PID mode to manual (0), automatic (1) or timer (2).
29-
void SetMode(Control mode);
29+
void SetMode(Control Mode);
3030

3131
// Performs the PID calculation. It should be called every time loop() cycles ON/OFF and calculation frequency
3232
// can be set using SetMode and SetSampleTime respectively.

0 commit comments

Comments
 (0)