]> 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 d64579101c87ec7ff9d199151f9144d358d659fe..b3a3125e5e8b03543a58431fe4e42a72f52f3be8 100644 (file)
@@ -8,10 +8,10 @@
 #define MAX_DUTY       170
 #define MAX_SPEED      (7*OLD_POS_NUM)
 
-#define LOG_ROWS       5
-#define LOG_DEF_COL    1000
-#define MAX_LOGS       1000
-#define LOG_PERIOD     5
+#define LOG_ROWS       11
+#define LOG_DEF_COL    8000
+#define MAX_LOGS       8000
+#define LOG_PERIOD     2
 
 struct rpi_in;
 
@@ -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 */