MSPM0G3519SensoredFOCMotorControlLibrary  1.0
Data Fields
CLOSE_LOOP_T Struct Reference

Closed Loop Working variables. More...

#include <closeLoop.h>

Collaboration diagram for CLOSE_LOOP_T:
Collaboration graph
[legend]

Data Fields

const int32_t * pTargetVelocity
 
const int32_t * pFluxAngle
 
const int32_t * pVelocity
 
const int32_t * pSpeed
 
const int32_t * psourceCurrentFeedbackFilt
 
const MC_ABC_TpMabc
 
const MC_ABC_TpDabc
 
const MC_ABC_TpIabc
 
COMMUTATION_STATE_TYPES commutationState
 
SPEED_CHANGE_STATE_TYPES speedChangeState
 
int32_t iRefMax
 
int32_t iqRefMax
 
int32_t targetVelocityLimited
 
int32_t targetSpeedLimited
 
int32_t velocityReference
 
int32_t speedReference
 
int32_t PowerReference
 
int32_t PowerFeedback
 
int32_t maximumPower
 
int32_t accelSpeedRefSlewRate
 
int32_t decelSpeedRefSlewRate
 
int32_t slowAccelSpeedRefSlewRate
 
int32_t slowDecelSpeedRefSlewRate
 
int32_t fastAccelSpeedRefSlewRate
 
int32_t fastDecelSpeedRefSlewRate
 
int32_t velocityReferenceMax
 
int32_t velocityReferenceMin
 
int32_t angle
 
int32_t angleOffset
 
int32_t angleAlignStep
 
int32_t currentReferenceSqrMaxSet
 
int32_t currentReferenceSqrMax
 
int32_t transitionSpeed
 
int32_t sourceCurrentFeedback
 
int32_t modIndexSqr
 
int32_t modIndexSqrLimit
 
int32_t torqRefScalingFactor
 
MC_DQ_T idqRef
 
ID_REF_T idRefGen
 
PI_T piSpeed
 
CLOSE_LOOP_FLAGS_T flags
 
APP_CONTROL_TYPES controlMode
 
MC_SINCOS_T mdqForceSinCos
 

Detailed Description

Closed Loop Working variables.

Field Documentation

§ pTargetVelocity

const int32_t* CLOSE_LOOP_T::pTargetVelocity

Closed Loop inputs

Target Speed including direction

Referenced by closeLoopLowPriorityRun().

§ pFluxAngle

const int32_t * CLOSE_LOOP_T::pFluxAngle

Estimator Angle

Referenced by closeLoopRun().

§ pVelocity

const int32_t * CLOSE_LOOP_T::pVelocity

§ pSpeed

const int32_t * CLOSE_LOOP_T::pSpeed

Estimator Speed

Referenced by closeLoopLowPriorityRun(), and getAvsStatus().

§ psourceCurrentFeedbackFilt

const int32_t * CLOSE_LOOP_T::psourceCurrentFeedbackFilt

DC bus Current

Referenced by focLowPriorityRun().

§ pMabc

const MC_ABC_T* CLOSE_LOOP_T::pMabc

Modulation Index

Referenced by closeLoopLowPriorityRun().

§ pDabc

const MC_ABC_T * CLOSE_LOOP_T::pDabc

Duty

Referenced by closeLoopRun().

§ pIabc

const MC_ABC_T * CLOSE_LOOP_T::pIabc

Current

Referenced by closeLoopRun().

§ commutationState

COMMUTATION_STATE_TYPES CLOSE_LOOP_T::commutationState

Closed Loop parameters for processing

Commutation state

Referenced by closeLoopInit(), closeLoopLowPriorityRun(), closeLoopRun(), focRun(), and getCloseLoopAlignedStatus().

§ speedChangeState

SPEED_CHANGE_STATE_TYPES CLOSE_LOOP_T::speedChangeState

Speed change state

Referenced by closeLoopLowPriorityRun().

§ iRefMax

int32_t CLOSE_LOOP_T::iRefMax

Maximum Phase Current Peak Reference

Referenced by focLowPriorityRun(), and focRun().

§ iqRefMax

int32_t CLOSE_LOOP_T::iqRefMax

Maximum Q-axis current reference

Referenced by closeLoopLowPriorityRun(), closeLoopRun(), focLowPriorityRun(), and focRun().

§ targetVelocityLimited

int32_t CLOSE_LOOP_T::targetVelocityLimited

Bounded Target Velocity

Referenced by closeLoopLowPriorityRun().

§ targetSpeedLimited

int32_t CLOSE_LOOP_T::targetSpeedLimited

Bounded Target Speed

Referenced by closeLoopLowPriorityRun(), and getAvsStatus().

§ velocityReference

int32_t CLOSE_LOOP_T::velocityReference

§ speedReference

int32_t CLOSE_LOOP_T::speedReference

Slewed speed reference

Referenced by closeLoopLowPriorityRun(), focLowPriorityRun(), and focRun().

§ PowerReference

int32_t CLOSE_LOOP_T::PowerReference

Slewed Power Reference

Referenced by closeLoopInit(), focLowPriorityRun(), and user_config_faults().

§ PowerFeedback

int32_t CLOSE_LOOP_T::PowerFeedback

Power Feedback

Referenced by closeLoopInit(), focLowPriorityRun(), and user_config_faults().

§ maximumPower

int32_t CLOSE_LOOP_T::maximumPower

Maximum Power

Referenced by focLowPriorityRun(), and user_config_faults().

§ accelSpeedRefSlewRate

int32_t CLOSE_LOOP_T::accelSpeedRefSlewRate

Acceleration slew rate

Referenced by closeLoopInit(), closeLoopLowPriorityRun(), and closeLoopRun().

§ decelSpeedRefSlewRate

int32_t CLOSE_LOOP_T::decelSpeedRefSlewRate

Deceleration slew rate

Referenced by closeLoopInit(), closeLoopLowPriorityRun(), and closeLoopRun().

§ slowAccelSpeedRefSlewRate

int32_t CLOSE_LOOP_T::slowAccelSpeedRefSlewRate

Slow Acceleration slew rate: unaligned

Referenced by closeLoopInit(), closeLoopLowPriorityRun(), and updateCloseLoopConfigParam().

§ slowDecelSpeedRefSlewRate

int32_t CLOSE_LOOP_T::slowDecelSpeedRefSlewRate

Slow Deceleration slew rate: unaligned

Referenced by closeLoopInit(), closeLoopLowPriorityRun(), and updateCloseLoopConfigParam().

§ fastAccelSpeedRefSlewRate

int32_t CLOSE_LOOP_T::fastAccelSpeedRefSlewRate

Fast Acceleration slew rate: aligned

Referenced by closeLoopLowPriorityRun(), closeLoopRun(), and updateCloseLoopConfigParam().

§ fastDecelSpeedRefSlewRate

int32_t CLOSE_LOOP_T::fastDecelSpeedRefSlewRate

Fast Deceleration slew rate: aligned

Referenced by closeLoopLowPriorityRun(), closeLoopRun(), and updateCloseLoopConfigParam().

§ velocityReferenceMax

int32_t CLOSE_LOOP_T::velocityReferenceMax

Upper limit on speed reference

Referenced by closeLoopLowPriorityRun().

§ velocityReferenceMin

int32_t CLOSE_LOOP_T::velocityReferenceMin

Lower limit on speed reference

Referenced by closeLoopLowPriorityRun().

§ angle

int32_t CLOSE_LOOP_T::angle

Commutation angle

Referenced by closeLoopRun(), and focRun().

§ angleOffset

int32_t CLOSE_LOOP_T::angleOffset

Angle difference between open loop angle and estimator angle

Referenced by closeLoopInit(), closeLoopRun(), and focRun().

§ angleAlignStep

int32_t CLOSE_LOOP_T::angleAlignStep

Step size for angle alignment

Referenced by closeLoopRun(), and updateCloseLoopConfigParam().

§ currentReferenceSqrMaxSet

int32_t CLOSE_LOOP_T::currentReferenceSqrMaxSet

Maximum current reference squared set

Referenced by closeLoopInit(), focLowPriorityRun(), updateCloseLoopConfigParam(), and user_config_faults().

§ currentReferenceSqrMax

int32_t CLOSE_LOOP_T::currentReferenceSqrMax

Maximum Current Reference Squared

Referenced by closeLoopInit(), closeLoopLowPriorityRun(), and focLowPriorityRun().

§ transitionSpeed

int32_t CLOSE_LOOP_T::transitionSpeed

Speed for going back to open loop

Referenced by updateCloseLoopConfigParam().

§ sourceCurrentFeedback

int32_t CLOSE_LOOP_T::sourceCurrentFeedback

Source current feedback calculated

Referenced by closeLoopInit(), closeLoopRun(), and focRun().

§ modIndexSqr

int32_t CLOSE_LOOP_T::modIndexSqr

Modulation Index Squared

Referenced by closeLoopLowPriorityRun().

§ modIndexSqrLimit

int32_t CLOSE_LOOP_T::modIndexSqrLimit

Modulation Index Squared Limit for active brake

Referenced by updateCloseLoopConfigParam().

§ torqRefScalingFactor

int32_t CLOSE_LOOP_T::torqRefScalingFactor

Scaling for target reference in torque control mode

Referenced by focLowPriorityRun(), focRun(), and user_config_faults().

§ idqRef

MC_DQ_T CLOSE_LOOP_T::idqRef

DQ domain current reference

Referenced by closeLoopLowPriorityRun(), closeLoopRun(), focLowPriorityRun(), focRun(), and getAvsStatus().

§ idRefGen

ID_REF_T CLOSE_LOOP_T::idRefGen

§ piSpeed

PI_T CLOSE_LOOP_T::piSpeed

§ flags

CLOSE_LOOP_FLAGS_T CLOSE_LOOP_T::flags

§ controlMode

APP_CONTROL_TYPES CLOSE_LOOP_T::controlMode

§ mdqForceSinCos

MC_SINCOS_T CLOSE_LOOP_T::mdqForceSinCos

Sin,Cos of Lead angle used in modulation index control mode

Referenced by focRun(), and user_config_faults().


The documentation for this struct was generated from the following file:
© Copyright 1995-2025, Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy policy | Terms of use | Terms of sale