![Logo](ti_logo.svg) |
AM243x Motor Control SDK
09.02.00
|
|
Go to the documentation of this file.
58 #include "math_types.h"
65 typedef struct _FWC_Obj_
87 extern FWC_Handle
FWC_init(
void *pMemory,
const size_t numBytes);
287 obj->
pi.Umax = angleMax_rad;
288 obj->
pi.Umin = angleMin_rad;
308 obj->
pi.Umax = angleMax_rad;
328 obj->
pi.Umin = angleMin_rad;
338 #define FWC_resetUi FWC_resetController //Backwards compatible
379 static __attribute__((always_inline))
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.
static void FWC_disable(FWC_Handle handle)
Disables the FWC function.
Definition: fwc.h:116
static void FWC_setFlagEnable(FWC_Handle handle, const bool flagEnable)
Sets the enable flag.
Definition: fwc.h:211
static void FWC_enable(FWC_Handle handle)
Enables the FWC function.
Definition: fwc.h:130
static float32_t * FWC_getCurrentAngle_rad_addr(FWC_Handle handle)
Gets the stator current phase angle memory address.
Definition: fwc.h:146
static void FWC_setAngleMin(FWC_Handle handle, const float32_t angleMin_rad)
Sets the minimum output values of FWC.
Definition: fwc.h:320
bool flagEnable
a flag to enable the controller
Definition: fwc.h:69
DCL_PI pi
the fwc angle PI controller object
Definition: fwc.h:67
FWC_Handle FWC_init(void *pMemory, const size_t numBytes)
Initializes the Field Weakening Control (FWC) module.
static void FWC_setAngleMax(FWC_Handle handle, const float32_t angleMax_rad)
Sets the maximum output values of FWC.
Definition: fwc.h:300
Top level header that contains all collections of Digital Controller Library functions.
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.
Definition: fwc.h:280
static void FWC_setCurrentAngle_rad(FWC_Handle handle, const float32_t angleCurrent_rad)
Sets the stator current phase angle value.
Definition: fwc.h:194
static void FWC_setKi(FWC_Handle handle, const float32_t Ki)
Sets the integral gain (Ki) value.
Definition: fwc.h:226
_DCL_CRIT_ACCESS float32_t DCL_runPISeries(DCL_PI *pi, float32_t rk, float32_t yk)
Executes an inline series form PI controller.
Definition: dcl_pi.h:313
static float32_t FWC_getCurrentAngle_rad(FWC_Handle handle)
Gets the stator current phase angle value (angleCurrent_rad)
Definition: fwc.h:162
_DCL_VOLATILE struct dcl_pi DCL_PI
static void FWC_setUi(FWC_Handle handle, const float32_t Ui)
Sets the integrator start value (Ui)
Definition: fwc.h:360
Defines the Field Weakening Control (FWC) object.
Definition: fwc.h:66
static void FWC_setGains(FWC_Handle handle, const float32_t Kp, const float32_t Ki)
Sets the gain values.
Definition: fwc.h:260
static bool FWC_getFlagEnable(FWC_Handle handle)
Gets the enable controller flag value from the FWC.
Definition: fwc.h:178
float32_t angleCurrent_rad
the stator current phase angle
Definition: fwc.h:68
static void FWC_setKp(FWC_Handle handle, const float32_t Kp)
Sets the proportional gain (Kp) value.
Definition: fwc.h:243
float float32_t
Definition: dcl_common.h:58
static void FWC_resetController(FWC_Handle handle)
Definition: fwc.h:339
static void FWC_computeCurrentAngle(FWC_Handle handle, const float32_t Vs_V, const float32_t VsRef_V)
Runs the Field Weakening Control (FWC)
Definition: fwc.h:380