3.3.18.20 tmcFlx_FluxWeakening_s Struct

C

typedef struct
{
    bool enable;                       /* Flag indicating field weakening module enable status */
    bool initDone;                     /* Flag indicating field weakening  module initialization status */ 
    bool feedForwardEnable;            /* Flag indicating feed-forward control enable status */
    bool feedbackEnable;               /* Flag indicating feedback control enable status */
    float32_t rs;                      /* Stator resistance in ohms */
    float32_t ld;                      /* Stator inductance in henries */  
    float32_t ke;                      /* Back EMF constant */
    float32_t welLdId;                 /* Intermediate variable for feed-forward term computation */
    float32_t welLd;                   /* Intermediate variable for feed-forward term computation */  
    float32_t idmax;                   /* Maximum field weakening current */
    float32_t mechRpmToElecRadPerSec;  /* Conversion factor from mechanical RPM to electrical radians per second */
    tmcUtils_PiControl_s bPIController;/* PI controller structure for managing the feedback control loop */
    float32_t feedForwardTerm;         /* Computed feed-forward term for d-axis current */ 
    float32_t feedbackTerm;            /* Computed feedback term for d-axis current */
    float32_t idref;                   /* Reference d-axis current */
}tmcFlx_FluxWeakening_s;
 

Summary

Flux Weakening Module Structure

Description

This structure holds the parameters and state variables for flux weakening control module.

Remarks

None.