1 #include "pmsm_state.h"
2 #include "commutators.h"
7 inline void setIndexLost(struct rpi_state* this){
9 this->main_commutator=simple_hall_commutator;
15 inline void setIndexOK(struct rpi_state* this){
17 this->main_commutator=inv_trans_comm_2;
21 * Turn commutation on.
23 inline void setCommutationOn(struct rpi_state* this){
26 this->main_commutator=inv_trans_comm_2;
28 this->main_commutator=simple_hall_commutator;
33 * Turn commutation off.
35 inline void setCommutationOff(struct rpi_state* this){
37 this->main_commutator=zero_commutator;