+ int old_pos[OLD_POS_NUM]; /* old positions */
+ int desired_spd; /* desired speed */
+ int speed;
+
+ 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 */
+
+ int *logs[LOG_ROWS]; /* logs */
+ int log_col_count; /* number of log columns */
+ int log_col; /* current colimn */
+ char doLogs; /* schall we make logs? */
+
+ void (*main_commutator)(struct rpi_state*); /* primarni komutator */
+ void (*main_controller)(struct rpi_state*); /* primarni regulator */