Here is the list of FWC function APIs
Files | |
file | fwc.h |
Contains Field Weakening Control (FWC) functions implementation. | |
Data Structures | |
struct | FWC_Handle |
Defines the Field Weakening Control (FWC) object. More... | |
Functions | |
FWC_Handle | FWC_init (void *pMemory, const size_t numBytes) |
Initializes the Field Weakening Control (FWC) module. More... | |
void | FWC_setParams (FWC_Handle handle, const float32_t Kp, const float32_t Ki, const float32_t angleMin_rad, const float32_t angleMax_rad) |
Sets the Field Weakening Control (FWC) module parmaeters. More... | |
static void | FWC_disable (FWC_Handle handle) |
Disables the FWC function. More... | |
static void | FWC_enable (FWC_Handle handle) |
Enables the FWC function. More... | |
static float32_t * | FWC_getCurrentAngle_rad_addr (FWC_Handle handle) |
Gets the stator current phase angle memory address. More... | |
static float32_t | FWC_getCurrentAngle_rad (FWC_Handle handle) |
Gets the stator current phase angle value (angleCurrent_rad) More... | |
static bool | FWC_getFlagEnable (FWC_Handle handle) |
Gets the enable controller flag value from the FWC. More... | |
static void | FWC_setCurrentAngle_rad (FWC_Handle handle, const float32_t angleCurrent_rad) |
Sets the stator current phase angle value. More... | |
static void | FWC_setFlagEnable (FWC_Handle handle, const bool flagEnable) |
Sets the enable flag. More... | |
static void | FWC_setKi (FWC_Handle handle, const float32_t Ki) |
Sets the integral gain (Ki) value. More... | |
static void | FWC_setKp (FWC_Handle handle, const float32_t Kp) |
Sets the proportional gain (Kp) value. More... | |
static void | FWC_setGains (FWC_Handle handle, const float32_t Kp, const float32_t Ki) |
Sets the gain values. More... | |
static void | FWC_setAngleMinMax (FWC_Handle handle, const float32_t angleMin_rad, const float32_t angleMax_rad) |
Sets the minimum and maximum output values of FWC. More... | |
static void | FWC_setAngleMax (FWC_Handle handle, const float32_t angleMax_rad) |
Sets the maximum output values of FWC. More... | |
static void | FWC_setAngleMin (FWC_Handle handle, const float32_t angleMin_rad) |
Sets the minimum output values of FWC. More... | |
static void | FWC_resetController (FWC_Handle handle) |
static void | FWC_setUi (FWC_Handle handle, const float32_t Ui) |
Sets the integrator start value (Ui) More... | |
static void | FWC_computeCurrentAngle (FWC_Handle handle, const float32_t Vs_V, const float32_t VsRef_V) |
Runs the Field Weakening Control (FWC) More... | |
Macros | |
#define | FWC_resetUi FWC_resetController |
Resets the integrator start value (Ui) More... | |
#define FWC_resetUi FWC_resetController |
Resets the integrator start value (Ui)
[in] | handle | The Field Weakening Control (FWC) handle |
FWC_Handle FWC_init | ( | void * | pMemory, |
const size_t | numBytes | ||
) |
Initializes the Field Weakening Control (FWC) module.
[in] | pMemory | A pointer to the memory for the FWC object |
[in] | numBytes | The number of bytes allocated for the FWC object |
void FWC_setParams | ( | FWC_Handle | handle, |
const float32_t | Kp, | ||
const float32_t | Ki, | ||
const float32_t | angleMin_rad, | ||
const float32_t | angleMax_rad | ||
) |
Sets the Field Weakening Control (FWC) module parmaeters.
[in] | handle | The Field Weakening Control (FWC) handle |
[in] | Kp | The Kp gain value |
[in] | Ki | The Ki gain value |
[in] | angleMin_rad | The angle out minimum value |
[in] | angleMax_rad | The angle out maximum value |
|
inlinestatic |
Disables the FWC function.
[in] | handle | The Field Weakening Control (FWC) handle |
|
inlinestatic |
Enables the FWC function.
[in] | handle | The Field Weakening Control (FWC) handle |
|
inlinestatic |
Gets the stator current phase angle memory address.
[in] | handle | The Field Weakening Control (FWC) handle |
|
inlinestatic |
Gets the stator current phase angle value (angleCurrent_rad)
[in] | handle | The Field Weakening Control (FWC) handle |
|
inlinestatic |
Gets the enable controller flag value from the FWC.
[in] | handle | The Field Weakening Control (FWC) handle |
|
inlinestatic |
Sets the stator current phase angle value.
[in] | handle | The Field Weakening Control (FWC) handle |
[in] | angleCurrent_rad | The stator current phase angle value, rad |
|
inlinestatic |
Sets the enable flag.
[in] | handle | The Field Weakening Control (FWC) handle |
[in] | flagEnable | The enable flag |
|
inlinestatic |
Sets the integral gain (Ki) value.
[in] | handle | The Field Weakening Control (FWC) handle |
[in] | Ki | The Ki value |
|
inlinestatic |
Sets the proportional gain (Kp) value.
[in] | handle | The Field Weakening Control (FWC) handle |
[in] | Kp | The Kp value |
Sets the gain values.
[in] | handle | The Field Weakening Control (FWC) handle |
[in] | Kp | The Kp gain value |
[in] | Ki | The Ki gain value |
|
inlinestatic |
Sets the minimum and maximum output values of FWC.
[in] | handle | The Field Weakening Control (FWC) handle |
[in] | angleMin_rad | The angle out minimum value |
[in] | angleMax_rad | The angle out maximum value |
|
inlinestatic |
Sets the maximum output values of FWC.
[in] | handle | The Field Weakening Control (FWC) handle |
[in] | angleMax_rad | The angle out maximum value |
|
inlinestatic |
Sets the minimum output values of FWC.
[in] | handle | The Field Weakening Control (FWC) handle |
[in] | angleMin_rad | The angle out minimum value |
|
inlinestatic |
|
inlinestatic |
Sets the integrator start value (Ui)
[in] | handle | The Field Weakening Control (FWC) handle |
[in] | Ui | The integrator start value |