matlab_23550/Inu/Src2/VectorControl/alphabeta_to_dq.h
2024-12-27 10:50:32 +03:00

33 lines
675 B
C

#ifndef __ALPHABETA_DQ_H__
#define __ALPHABETA_DQ_H__
#include "IQmathLib.h"
typedef struct { _iq Ualpha; //phase A voltage, input
_iq Ubeta; //phase B voltage, input
_iq Tetta; //phase angle, input
_iq Ud; // axis d voltage, output
_iq Uq; // axis q voltage, output
void (*calc)(); // Pointer to calculation function
}ALPHABETA_TO_DQ;
typedef ALPHABETA_TO_DQ *ALPHABETA_TO_DQ_handle;
#define ALPHABETA_TO_DQ_DEFAULTS { 0, \
0, \
0, \
0, \
0, \
(void (*)(Uint32))alphabeta_to_dq_calc \
}
void alphabeta_to_dq_calc(ALPHABETA_TO_DQ_handle);
#endif // end __ALPHABETA_DQ_H