]> rtime.felk.cvut.cz Git - fpga/rpi-motor-control.git/blobdiff - pmsm-control/test_sw/pmsm_state.h
PI reg. constants modified according rltool results. Added possibility to interactive...
[fpga/rpi-motor-control.git] / pmsm-control / test_sw / pmsm_state.h
index 20e60e6320f39264cd3eac15392eaf6cd144eb75..b3a3125e5e8b03543a58431fe4e42a72f52f3be8 100644 (file)
@@ -36,6 +36,7 @@ struct rpi_state{
        char commutate;                 /* zapina prepocet duty na jednotlive pwm */
        char pos_reg_ena;               /* position regulation enable */
        char spd_reg_ena;               /* speed rugulation enable */
+       unsigned short alpha_offset;    /* offset between 'alpha' and 'a' axis */
 
        int spd_err_sum;                /* for speed pid regulator */