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 */
23 #define PID_P_S 0.08 /*2.3 kmita*/ /*1.4 vhodne jen pro P regulator*/
24 #define PID_I_S 0.0134
27 * \brief No regulation.
29 inline void zero_controller(struct rpi_state*);
33 * Very simple position P regulator.
34 * Now only with P-part so that the error doesnt go to zero.
36 void pos_pid(struct rpi_state*);
40 * Very simple PI speed regulator.
42 void spd_pid(struct rpi_state*);
45 #endif /*CONTROLLERS*/