]> rtime.felk.cvut.cz Git - fpga/rpi-motor-control.git/blob - pmsm-control/test_sw/commutators.h
59905d33d62d16de18ae5ef14afa0004e50109f2
[fpga/rpi-motor-control.git] / pmsm-control / test_sw / commutators.h
1 /**
2  * \brief
3  * Duty cycle commutation.
4  * \author Martin Prudek
5  * \file commutators.h
6  *
7  */
8 #ifndef COMMUTATORS
9 #define COMMUTATORS
10
11 #include "pmsm_state.h"
12 #include "rp_spi.h"
13
14 /**
15  * \brief
16  * Simple vector-control commutator without delta-transformation.
17  * Nearly same as sin_commuatator.
18  */
19 void inv_trans_comm(struct rpi_state*);
20
21 /*
22  * \brief
23  * Robust vector-control commuator with Delta-transformation.
24  */
25 void inv_trans_comm_2(struct rpi_state*);
26
27 /**
28  * \brief
29  * Simple voltage commutation, takes use of sin function.
30  */
31 void sin_commutator(struct rpi_state*);
32
33 /*
34  * \brief
35  * Switches PWM's at point where they produce same force.
36  * This points are found from IRC position,
37  */
38 void simple_ind_dist_commutator(struct rpi_state*);
39
40 /*
41  * \brief
42  * Switches PWM's at point where they produce same force
43  */
44 void simple_hall_commutator(struct rpi_state*);
45
46
47 #endif /*COMMUTATORS*/