X-Git-Url: https://rtime.felk.cvut.cz/gitweb/fpga/rpi-motor-control.git/blobdiff_plain/34c6632a92d19c06bbdef9dcc4eb754b21ade81d..f747a68dd84aab260a8553829ae5da1ee4bf321a:/pmsm-control/test_sw/commutators.h diff --git a/pmsm-control/test_sw/commutators.h b/pmsm-control/test_sw/commutators.h new file mode 100644 index 0000000..59905d3 --- /dev/null +++ b/pmsm-control/test_sw/commutators.h @@ -0,0 +1,47 @@ +/** + * \brief + * Duty cycle commutation. + * \author Martin Prudek + * \file commutators.h + * + */ +#ifndef COMMUTATORS +#define COMMUTATORS + +#include "pmsm_state.h" +#include "rp_spi.h" + +/** + * \brief + * Simple vector-control commutator without delta-transformation. + * Nearly same as sin_commuatator. + */ +void inv_trans_comm(struct rpi_state*); + +/* + * \brief + * Robust vector-control commuator with Delta-transformation. + */ +void inv_trans_comm_2(struct rpi_state*); + +/** + * \brief + * Simple voltage commutation, takes use of sin function. + */ +void sin_commutator(struct rpi_state*); + +/* + * \brief + * Switches PWM's at point where they produce same force. + * This points are found from IRC position, + */ +void simple_ind_dist_commutator(struct rpi_state*); + +/* + * \brief + * Switches PWM's at point where they produce same force + */ +void simple_hall_commutator(struct rpi_state*); + + +#endif /*COMMUTATORS*/