Functions | |
static __INLINE void | arm_park_f32 (float32_t Ialpha, float32_t Ibeta, float32_t *pId, float32_t *pIq, float32_t sinVal, float32_t cosVal) |
Floating-point Park transform. More... | |
static __INLINE void | arm_park_q31 (q31_t Ialpha, q31_t Ibeta, q31_t *pId, q31_t *pIq, q31_t sinVal, q31_t cosVal) |
Park transform for Q31 version. More... | |
Forward Park transform converts the input two-coordinate vector to flux and torque components. The Park transform can be used to realize the transformation of the Ialpha
and the Ibeta
currents from the stationary to the moving reference frame and control the spatial relationship between the stator vector current and rotor flux vector. If we consider the d axis aligned with the rotor flux, the diagram below shows the current vector and the relationship from the two reference frames:
The function operates on a single sample of data and each call to the function returns the processed output. The library provides separate functions for Q31 and floating-point data types.
Ialpha
and Ibeta
are the stator vector components, pId
and pIq
are rotor vector components and cosVal
and sinVal
are the cosine and sine values of theta (rotor flux position).
|
static |
Floating-point Park transform.
[in] | Ialpha | input two-phase vector coordinate alpha |
[in] | Ibeta | input two-phase vector coordinate beta |
[out] | *pId | points to output rotor reference frame d |
[out] | *pIq | points to output rotor reference frame q |
[in] | sinVal | sine value of rotation angle theta |
[in] | cosVal | cosine value of rotation angle theta |
The function implements the forward Park transform.
Definition at line 5511 of file arm_math.h.
|
static |
Park transform for Q31 version.
[in] | Ialpha | input two-phase vector coordinate alpha |
[in] | Ibeta | input two-phase vector coordinate beta |
[out] | *pId | points to output rotor reference frame d |
[out] | *pIq | points to output rotor reference frame q |
[in] | sinVal | sine value of rotation angle theta |
[in] | cosVal | cosine value of rotation angle theta |
Scaling and Overflow Behavior:
Definition at line 5545 of file arm_math.h.