@@ -21,10 +21,10 @@ static const byte TRY_AUTOMATIC = 1;
2121 // commonly used functions ************************************************************************************
2222
2323 // Constructor. Links the PID to Input, Output, Setpoint and initial Tuning Parameters.
24- QuickPID (int *, int *, int *, float , float , float , float , uint8_t );
24+ QuickPID (float *, float *, float *, float , float , float , float , uint8_t );
2525
2626 // Overload constructor with proportional mode. Links the PID to Input, Output, Setpoint and Tuning Parameters.
27- QuickPID (int *, int *, int *, float , float , float , uint8_t );
27+ QuickPID (float *, float *, float *, float , float , float , uint8_t );
2828
2929 // Sets PID to either Manual (0) or Auto (non-0).
3030 void SetMode (uint8_t Mode);
@@ -92,9 +92,9 @@ static const byte TRY_AUTOMATIC = 1;
9292
9393 uint8_t controllerDirection;
9494
95- int *myInput; // Pointers to the Input, Output, and Setpoint variables. This creates a
96- int *myOutput; // hard link between the variables and the PID, freeing the user from having
97- int *mySetpoint; // to constantly tell us what these values are. With pointers we'll just know.
95+ float *myInput; // Pointers to the Input, Output, and Setpoint variables. This creates a
96+ float *myOutput; // hard link between the variables and the PID, freeing the user from having
97+ float *mySetpoint; // to constantly tell us what these values are. With pointers we'll just know.
9898
9999 uint32_t sampleTimeUs, lastTime;
100100 int outMin, outMax, error;
@@ -112,7 +112,7 @@ static const byte TRY_AUTOMATIC = 1;
112112};
113113
114114#if (defined(ESP32) || defined(ARDUINO_ARCH_ESP32))
115- #include " utility/ analogWrite.h"
115+ #include " analogWrite.h"
116116#endif
117117
118118#endif // QuickPID.h
0 commit comments