@@ -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 **********************************************************************************/
4242QuickPID::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 *********************************************************************
0 commit comments