]> rtime.felk.cvut.cz Git - fpga/rpi-motor-control.git/blobdiff - pmsm-control/test_sw/commutators.h
Commutators moved to separate file.
[fpga/rpi-motor-control.git] / 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 (file)
index 0000000..59905d3
--- /dev/null
@@ -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*/