components/PID/PID_v1.h

changeset 82
7d17e2cb31a8
parent 29
45647136ec95
--- a/components/PID/PID_v1.h	Sun Jun 07 15:09:23 2020 +0200
+++ b/components/PID/PID_v1.h	Sun Jun 07 16:55:36 2020 +0200
@@ -27,17 +27,6 @@
 } PID_DIRECTION;
 
 /**
- * @brief PID calculation mode.
- */
-typedef enum
-{
-    PID_P_ON_M = 0,		///< PID on Measurement.
-    PID_P_ON_E = 1,		///< PID on Errors.
-} PID_PON;
-
-
-
-/**
  * @brief Setup the PID controller and initialize.
  * @param[in] Input The measured value.
  * @param[in,out] Output The computed result.
@@ -45,10 +34,9 @@
  * @param[in] Kp The Proportional value.
  * @param[in] Ki The Intergral value.
  * @param[in] Kd The Derivate value.
- * @param[in] POn 0 - PID on Measurement, 1 - PID on Error.
  * @param[in] Direction Direct or Reverse action.
  */
-void PID(double* Input, double* Output, double* Setpoint, double Kp, double Ki, double Kd, PID_PON POn, PID_DIRECTION Direction);
+void PID(double* Input, double* Output, double* Setpoint, double Kp, double Ki, double Kd, PID_DIRECTION Direction);
 
 /**
  * @brief sets PID to either Manual or Automatic.
@@ -78,9 +66,8 @@
  * @param[in] Kp The Proportional value.
  * @param[in] Ki The Intergral value.
  * @param[in] Kd The Derivate value.
- * @param[in] POn 0 - PID on Measurement, 1 - PID on Error.
  */
-void PID_SetTunings(double Kp, double Ki, double Kd, PID_PON POn);
+void PID_SetTunings(double Kp, double Ki, double Kd);
 
 /**
  * @brief The PID will either be connected to a DIRECT acting process (+Output leads

mercurial