Contains Maximum torque per ampere (MTPA) functions implementation.
|
void | MTPA_computeParameters (MTPA_Handle handle, const float32_t Ls_d_H, const float32_t Ls_q_H, const float32_t flux_Wb) |
| Computes the motor constant for MTPA module. More...
|
|
MTPA_Handle | MTPA_init (void *pMemory, const size_t numBytes) |
| Initializes the maximum torque per ampere (MTPA) module. More...
|
|
static void | MTPA_disable (MTPA_Handle handle) |
| Disables the MTPA. More...
|
|
static void | MTPA_enable (MTPA_Handle handle) |
| Enables the MTPA. More...
|
|
static float32_t * | MTPA_getCurrentAnglePhase_rad_addr (MTPA_Handle handle) |
| Gets the stator current phase angle memory address. More...
|
|
static float32_t | MTPA_getCurrentAngle_rad (MTPA_Handle handle) |
| Gets the stator current phase angle value (angleCurrent_rad) More...
|
|
static float32_t | MTPA_getKconst (MTPA_Handle handle) |
| Gets the motor constant of MTPA. More...
|
|
static float32_t * | MTPA_getIs_ref_A_addr (MTPA_Handle handle) |
| Gets the stator current reference memory address. More...
|
|
static bool | MTPA_getFlagEnable (MTPA_Handle handle) |
| Gets the enable controller flag value from the controller. More...
|
|
static float32_t | MTPA_getId_ref_A (MTPA_Handle handle) |
| Gets the direct current reference value (Id_ref_A) More...
|
|
static float32_t | MTPA_getIq_ref_A (MTPA_Handle handle) |
| Gets the quadrature current reference value (Iq_ref_A) More...
|
|
static float32_t | MTPA_getIs_ref_A (MTPA_Handle handle) |
| Gets the stator current reference value (Is_ref_A) More...
|
|
static void | MTPA_setFlagEnable (MTPA_Handle handle, const bool flagEnable) |
| Sets the enable flag. More...
|
|
static void | MTPA_setCurrentAngle_rad (MTPA_Handle handle, const float32_t angleCurrent_rad) |
| Sets the stator current phase angle value. More...
|
|
static void | MTPA_setId_ref_A (MTPA_Handle handle, const float32_t Id_ref_A) |
| Sets the direct current (Id_ref) reference vector value. More...
|
|
static void | MTPA_setIq_ref_A (MTPA_Handle handle, const float32_t Iq_ref_A) |
| Sets the quadrature current (Iq_ref) reference value. More...
|
|
static void | MTPA_setIs_ref_A (MTPA_Handle handle, const float32_t Is_ref_A) |
| Sets the stator current reference value (Is_ref) More...
|
|
static float32_t | MTPA_updateLs_d_withLUT (MTPA_Handle handle, const float32_t Is_A) |
| Update the motor inductances. More...
|
|
static float32_t | MTPA_updateLs_q_withLUT (MTPA_Handle handle, const float32_t Is_A) |
| Update the motor inductances. More...
|
|
static void | MTPA_computeCurrentReference (MTPA_Handle handle, const float32_t Is_ref_A) |
| Compute the current reference of MTPA. More...
|
|
static float32_t | MTPA_computeCurrentAngle (MTPA_Handle handle, const float32_t Is_ref_A) |
| Compute the current angle of MTPA. More...
|
|