79 #define CTRL_NUM_CONTROLLERS (2)
291 #endif // end of _CTRL_OBJ_H_ definition
MATH_vec2 Vdq_offset_pu
the Vdq offset values, pu
PID_Obj pid_Iq
the Iq PID controller object
_iq maxVsMag_pu
the maximum voltage vector that is allowed, pu
Defines the controller (CTRL) version number.
CTRL_ErrorCode_e errorCode
the error code for the controller
IPARK_Obj ipark
the inverse Park transform object
IPARK_Handle iparkHandle
the handle for the inverse Park transform
TRAJ_Obj traj_Id
the Id trajectory generator object
Contains the public interface to the types definitions.
MATH_vec2 Vab_in
the Vab input values
MATH_vec2 Idq_ref
the Idq reference values, pu
uint_least16_t numCtrlTicksPerSpeedTick
Defines the number of controller clock ticks per speed controller clock tick.
_iq Kd_Id
the desired Kd_Id value
float_t RoverL
the R/L value
_iq Ki_Iq
the desired Ki_Iq value
Defines the CLARKE object.
CLARKE_Handle clarkeHandle_I
the handle for the current Clarke transform
_iq speed_ref_pu
the speed reference, pu
_iq Ki_Id
the desired Ki_Id value
_iq spd_ref
the speed reference, pu
uint_least16_t numCtrlTicksPerTrajTick
Defines the number of controller clock ticks per trajectory clock tick.
Defines a two element vector.
the number of controller states
Contains the public interface to the offset (OFFSET) module routines.
_iq angle_pu
the angle value, pu
_iq Kp_spd
the desired Kp_spd value
uint16_t major
the major release number
_iq spd_max
the maximum speed, pu
struct _EST_Obj_ * EST_Handle
Defines the estimator (EST) handle.
TRAJ_Handle trajHandle_Id
the handle for the Id trajectory generator
Contains the public interface to the Proportional-Integral-Derivative (PID) controller module routine...
TRAJ_Handle trajHandle_spd
the handle for the speed trajectory generator
MATH_vec2 Vab_out
the Vab output values
PID_Handle pidHandle_Id
the handle for the Id PID controller
CTRL_ErrorCode_e
Enumeration for the error codes.
Defines the Space Vector Generator object.
float_t ctrlPeriod_sec
Defines the controller period, sec.
Defines the controller (CTRL) object.
_iq Kp_Id
the desired Kp_Id value
Contains the public interface to the estimator (EST) module routines.
EST_Handle estHandle
the handle for the parameter estimator
MATH_vec2 Idq_offset_pu
the Idq offset values, pu
CTRL_TargetProc_e
Enumeration for the target processors.
Defines the IPARK object.
bool flag_enableDcBusComp
a flag to enable the DC bus compensation in the controller
struct _CTRL_Version_ CTRL_Version
Defines the controller (CTRL) version number.
_iq Kd_Iq
the desired Kd_Iq value
bool flag_enableOffset
a flag to enable offset estimation after idle state
bool flag_enableCurrentCtrl
a flag to enable the current controllers
struct _CTRL_Obj_ CTRL_Obj
Defines the controller (CTRL) object.
TRAJ_Handle trajHandle_spdMax
the handle for the maximum speed trajectory generator
_iq speed_fb_pu
the feedback speed value, pu
_iq Ui_spd
the desired Ui_spd value
TRAJ_Obj traj_spdMax
the maximum speed trajectory generator object
uint_least32_t counter_state
the state counter
CTRL_State_e state
the current state of the controller
CLARKE_Obj clarke_V
the voltage Clarke transform object
uint_least16_t counter_isr
the isr counter
_iq Kd_spd
the desired Kd_spd value
uint16_t rsvd
reserved value
MATH_vec2 Idq_in
the Idq input values
bool flag_enablePowerWarp
a flag to enable PowerWarp
_iq speed_outMax_pu
the maximum output of the speed PI control, pu
PID_Handle pidHandle_spd
the handle for the speed PID controller
_iq trajPeriod_sec
Defines the trajectory period, sec.
PID_Obj pid_Id
the Id PID controller object
the number of controller error codes
PARK_Obj park
the Park transform object
CTRL_State_e prevState
the previous state of the controller
PID_Obj pid_spd
the speed PID controller object
_iq Kp_Iq
the desired Kp_Iq value
PARK_Handle parkHandle
the handle for the Park object
MATH_vec2 Iab_filt
the Iab filtered values
uint_least16_t counter_current
the isr counter
MATH_vec2 Vdq_out
the Vdq output values
uint_least32_t waitTimes[CTRL_numStates]
an array of wait times for each state, estimator clock counts
CTRL_State_e
Enumeration for the controller states.
Defines the trajectory (TRAJ) object.
_iq spd_out
the speed output value
CLARKE_Handle clarkeHandle_V
the handle for the voltage Clarke transform
uint_least16_t counter_traj
the traj counter
MOTOR_Params motorParams
the motor parameters
uint_least16_t counter_speed
the speed counter
PID_Handle pidHandle_Iq
the handle for the Iq PID controller
CTRL_Version version
the controller version
_iq IdRated
the Id rated current, pu
Contains public interface to various functions related to the trajectory (TRAJ) object.
CTRL_Type_e
Enumeration for the controller (CTRL) types.
bool flag_enableCtrl
a flag to enable the controller
_iq Ui_Iq
the desired Ui_Iq value
CTRL_TargetProc_e targetProc
the target processor
uint_least32_t ctrlFreq_Hz
Defines the controller frequency, Hz.
Contains the public interface to the Park transform module routines.
bool flag_enableUserMotorParams
a flag to use known motor parameters from user.h file
uint_least32_t trajFreq_Hz
Defines the trajectory frequency, Hz.
SVGEN_Obj svgen
the space vector generator object
Contains the public interface to the Clarke transform (CLARKE) module routines.
Contains the public interface to the inverse Park transform (IPARK) module routines.
Contains the public interface to the Space Vector Generator (SVGEN) module routines.
uint16_t minor
the minor release number
MATH_vec2 Iab_in
the Iab input values
uint_least16_t numCtrlTicksPerCurrentTick
Defines the number of controller clock ticks per current controller clock tick.
Defines the motor parameters.
Defines the PID controller object.
uint_least16_t numIsrTicksPerCtrlTick
Defines the number of isr clock ticks per controller clock tick.
CLARKE_Obj clarke_I
the current Clarke transform object
_iq Ki_spd
the desired Ki_spd value
TRAJ_Obj traj_spd
the speed trajectory generator object
struct _CTRL_Obj_ * CTRL_Handle
Defines the CTRL handle.
_iq Ui_Id
the desired Ui_Id value
bool flag_enableSpeedCtrl
a flag to enable the speed controller
float float_t
Defines the portable data type for 32 bit, signed floating-point data.
SVGEN_Handle svgenHandle
the handle for the space vector generator