@@ -30,6 +30,7 @@ class QuickPID {
3030
3131 // Sets PID mode to manual (0), automatic (1) or timer (2).
3232 void SetMode (Control Mode);
33+ void SetMode (uint8_t Mode);
3334
3435 // Performs the PID calculation. It should be called every time loop() cycles ON/OFF and calculation frequency
3536 // can be set using SetMode and SetSampleTime respectively.
@@ -50,22 +51,26 @@ class QuickPID {
5051 // Sets the controller direction or action. Direct means the output will increase when the error is positive.
5152 // Reverse means the output will decrease when the error is positive.
5253 void SetControllerDirection (Action Action);
54+ void SetControllerDirection (uint8_t Direction);
5355
5456 // Sets the sample time in microseconds with which each PID calculation is performed. Default is 100000 µs.
5557 void SetSampleTimeUs (uint32_t NewSampleTimeUs);
5658
5759 // Sets the computation method for the proportional term, to compute based either on error (default),
5860 // on measurement, or the average of both.
5961 void SetProportionalMode (pMode pMode);
62+ void SetProportionalMode (uint8_t Pmode);
6063
6164 // Sets the computation method for the derivative term, to compute based either on error or measurement (default).
6265 void SetDerivativeMode (dMode dMode);
66+ void SetDerivativeMode (uint8_t Dmode);
6367
6468 // Sets the integral anti-windup mode to one of iAwClamp, which clamps the output after
6569 // adding integral and proportional (on measurement) terms, or iAwCondition (default), which
6670 // provides some integral correction, prevents deep saturation and reduces overshoot.
6771 // Option iAwOff disables anti-windup altogether.
6872 void SetAntiWindupMode (iAwMode iAwMode);
73+ void SetAntiWindupMode (uint8_t IawMode);
6974
7075 // PID Query functions ****************************************************************************************
7176 float GetKp (); // proportional gain
@@ -81,6 +86,7 @@ class QuickPID {
8186 uint8_t GetAwMode (); // iAwCondition (0, iAwClamp (1), iAwOff (2)
8287
8388 float outputSum; // Internal integral sum
89+
8490 private:
8591
8692 void Initialize ();
0 commit comments