2.3.3 Function use
The use of the
function is shown in the following example:
#include "gmclib.h"
static
static
static
sAngle;
void Isr(void);
void main(void)
{
/* Alpha, Beta structure initialization */
/* Angle structure initialization */
sAngle.f16Sin =
(0.0);
sAngle.f16Cos =
(1.0);
}
/* Periodical function or interrupt */
void Isr(void)
{
/* Park Transformation calculation */
GMCLIB_Park_F16(&sAlphaBeta, &sAngle, &sDQ);
}
2.4 GMCLIB_ParkInv
The
function calculates the Park transformation, which transforms
values (flux, voltage, current) from the rotating two-phase (d-q) orthogonal coordinate
system to the stationary two-phase (
α
-
β
) coordinate system, according to the following
equations:
Equation 8
Equation 9
where:
•
θ
is the position (angle)
Chapter 2 Algorithms in detail
GMCLIB User's Guide, Rev. 2, 10/2015
Freescale Semiconductor, Inc.
21
Содержание DSP56800E
Страница 1: ...GMCLIB User s Guide DSP56800E Document Number DSP56800EGMCLIBUG Rev 2 10 2015 ...
Страница 2: ...GMCLIB User s Guide Rev 2 10 2015 2 Freescale Semiconductor Inc ...
Страница 4: ...GMCLIB User s Guide Rev 2 10 2015 4 Freescale Semiconductor Inc ...
Страница 64: ...GMCLIB_SvmU7n GMCLIB User s Guide Rev 2 10 2015 64 Freescale Semiconductor Inc ...
Страница 78: ...GMCLIB User s Guide Rev 2 10 2015 78 Freescale Semiconductor Inc ...