]> rtime.felk.cvut.cz Git - fpga/rpi-motor-control.git/blobdiff - pmsm-control/test_sw/controllers.h
Correct typo in rpi-mc-1 mapping to Ti AM437x based RICO board.
[fpga/rpi-motor-control.git] / pmsm-control / test_sw / controllers.h
index 520745ed2ba317fb059b2857dbcf29c86043b7d5..e914a1d722248b22ecb05c2dce145f0a5b16b736 100644 (file)
 /*     Hodnoty upraveny podle skutecnych vysledku      */
 /*     P=0.8   I=0.01                                  */
 
-#define PID_P_S                0.16            /*2.3 kmita*/ /*1.4 vhodne jen pro P regulator*/
+/* PID_P_S             0.16 */
+
+#define PID_P_S                0.08            /*2.3 kmita*/ /*1.4 vhodne jen pro P regulator*/
 #define PID_I_S                0.0134
 
+/**
+ * \brief No regulation.
+ */
+inline void zero_controller(struct rpi_state*);
+
 /**
  * \brief
  * Very simple position P regulator.
  * Now only with P-part so that the error doesnt go to zero.
  */
-void pos_pid(struct rpi_state* state);
+void pos_pid(struct rpi_state*);
 
 /**
  * \brief
  * Very simple PI speed regulator.
  */
-void spd_pid(struct rpi_state* state);
+void spd_pid(struct rpi_state*);
 
 
 #endif /*CONTROLLERS*/