]> rtime.felk.cvut.cz Git - fpga/rpi-motor-control.git/blobdiff - pmsm-control/test_sw/controllers.h
Regulation function now implemented with use of polymorphism.
[fpga/rpi-motor-control.git] / pmsm-control / test_sw / controllers.h
index 520745ed2ba317fb059b2857dbcf29c86043b7d5..5b241489317a950b0e471ed72d983fc8aa924f6a 100644 (file)
 #define PID_P_S                0.16            /*2.3 kmita*/ /*1.4 vhodne jen pro P regulator*/
 #define PID_I_S                0.0134
 
 #define PID_P_S                0.16            /*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.
  */
 /**
  * \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.
  */
 
 /**
  * \brief
  * Very simple PI speed regulator.
  */
-void spd_pid(struct rpi_state* state);
+void spd_pid(struct rpi_state*);
 
 
 #endif /*CONTROLLERS*/
 
 
 #endif /*CONTROLLERS*/