]> rtime.felk.cvut.cz Git - fpga/rpi-motor-control.git/blobdiff - pmsm-control/test_sw/pmsm_state.h
Controllers moved to separate file.
[fpga/rpi-motor-control.git] / pmsm-control / test_sw / pmsm_state.h
index 20e60e6320f39264cd3eac15392eaf6cd144eb75..5d02be26b62328c7503cdb75fb2f10a4ca5d7de6 100644 (file)
@@ -16,6 +16,8 @@
 struct rpi_in;
 
 struct rpi_state{
+       //const unsigned MAX_DUTY;      /*Max duty*/
+
        struct rpi_in* spi_dat;         /* spi data */
        sem_t thd_par_sem;              /* data metual exlusion access */
        uint8_t test;                   /* configuratin byte - pwm enabl. bits etc. */
@@ -36,6 +38,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 */