3 * Speed and position regulators.
4 * \author Martin Prudek
11 #include "pmsm_state.h" /*pmsm state*/
12 #include "rp_spi.h" /*spi struct*/
16 /* RL-tool results from first order system approx */
17 /* P=0.16 I=13,4/freq=0.013 */
18 /* Hodnoty upraveny podle skutecnych vysledku */
21 #define PID_P_S 0.16 /*2.3 kmita*/ /*1.4 vhodne jen pro P regulator*/
22 #define PID_I_S 0.0134
25 * \brief No regulation.
27 inline void zero_controller(struct rpi_state*);
31 * Very simple position P regulator.
32 * Now only with P-part so that the error doesnt go to zero.
34 void pos_pid(struct rpi_state*);
38 * Very simple PI speed regulator.
40 void spd_pid(struct rpi_state*);
43 #endif /*CONTROLLERS*/