![]() |
![]() |
Data Structures | |
struct | _PARK_Obj_ |
Defines the PARK object. More... | |
Typedefs | |
typedef struct _PARK_Obj_ | PARK_Obj |
Defines the PARK object. More... | |
typedef struct _PARK_Obj_ * | PARK_Handle |
Defines the PARK handle. More... | |
Functions | |
static float32_t | PARK_getCosTh (PARK_Handle handle) |
Gets the cosine of the angle between the d,q and the alpha, beta coordinate systems. More... | |
static void | PARK_getPhasor (PARK_Handle handle, MATH_Vec2 *pPhasor) |
Gets the cosine/sine phasor for the Park transform. More... | |
static float32_t | PARK_getSinTh (PARK_Handle handle) |
Gets the sine of the angle between the d,q and the alpha, beta coordinate systems. More... | |
PARK_Handle | PARK_init (void *pMemory, const size_t numBytes) |
Initializes the Park transform module. More... | |
PARK_Handle | cla_PARK_init (void *pMemory, const size_t numBytes) |
static void | PARK_run (PARK_Handle handle, const MATH_Vec2 *pInVec, MATH_Vec2 *pOutVec) |
Runs the Park transform module. More... | |
static void | PARK_setCosTh (PARK_Handle handle, const float32_t cosTh) |
Sets the cosine of the angle between the d,q and the alpha, beta coordinate systems. More... | |
static void | PARK_setPhasor (PARK_Handle handle, const MATH_Vec2 *pPhasor) |
Sets the cosine/sine phasor for the inverse Park transform. More... | |
static void | PARK_setSinTh (PARK_Handle handle, const float32_t sinTh) |
Sets the sine of the angle between the d,q and the alpha, beta coordinate systems. More... | |
static void | PARK_setup (PARK_Handle handle, const float32_t Th) |
Sets up the Park transform module. More... | |
This module performs the inverse Park transformation, which translates a vector in a two phase orthogonal reference frame ( ) into a rotated two phase orthogonal coordinate system (d,q). The following figure shows the coordinate transformation of a general vector x, which can be expressed in either coordinate system.
The Park transform can be described mathematically as follows:
where
is the angle between the two coordinate systems
is the projection of the original vector in the
direction
is the projection of the original vector in the
direction
is the projection of the original vector in the
direction
is the projection of the original vector in the
direction
is a sine function
is a cosine function
Please see the PARK_init(), PARK_setup() and PARK_run() functions define in park.h for more details.
There is only one module in this package, the APIs can be referenced at PARK. The API headers can be located at park.h.
typedef struct _PARK_Obj_ PARK_Obj |
Defines the PARK object.
typedef struct _PARK_Obj_* PARK_Handle |
Defines the PARK handle.
|
inlinestatic |
Gets the cosine of the angle between the d,q and the alpha, beta coordinate systems.
[in] | handle | The Park transform handle |
References _PARK_Obj_::cosTh.
|
inlinestatic |
Gets the cosine/sine phasor for the Park transform.
[in] | handle | The Park transform handle |
[in] | pPhasor | The pointer to the cosine/sine phasor |
References _PARK_Obj_::cosTh, _PARK_Obj_::sinTh, and _MATH_Vec2_::value.
|
inlinestatic |
Gets the sine of the angle between the d,q and the alpha, beta coordinate systems.
[in] | handle | The Park transform handle |
References _PARK_Obj_::sinTh.
PARK_Handle PARK_init | ( | void * | pMemory, |
const size_t | numBytes | ||
) |
Initializes the Park transform module.
[in] | pMemory | A pointer to the memory for the Park object |
[in] | numBytes | The number of bytes allocated for the Park object, bytes |
PARK_Handle cla_PARK_init | ( | void * | pMemory, |
const size_t | numBytes | ||
) |
|
inlinestatic |
Runs the Park transform module.
[in] | handle | The Park transform handle |
[in] | pInVec | The pointer to the input vector |
[in] | pOutVec | The pointer to the output vector |
References _PARK_Obj_::cosTh, _PARK_Obj_::sinTh, and _MATH_Vec2_::value.
|
inlinestatic |
Sets the cosine of the angle between the d,q and the alpha, beta coordinate systems.
[in] | handle | The Park transform handle |
[in] | cosTh | The cosine of the angle |
References _PARK_Obj_::cosTh.
|
inlinestatic |
Sets the cosine/sine phasor for the inverse Park transform.
[in] | handle | The Park transform handle |
[in] | pPhasor | The pointer to the cosine/sine phasor, pu |
References _PARK_Obj_::cosTh, _PARK_Obj_::sinTh, and _MATH_Vec2_::value.
|
inlinestatic |
Sets the sine of the angle between the d,q and the alpha, beta coordinate systems.
[in] | handle | The Park transform handle |
[in] | sinTh | The sine of the angle |
References _PARK_Obj_::sinTh.
|
inlinestatic |
Sets up the Park transform module.
[in] | handle | The Park transform handle |
[in] | Th | The angle between the d,q and the alpha, beta coordinate systems, rad |
References _PARK_Obj_::cosTh, and _PARK_Obj_::sinTh.