Defines a structure for the user parameters. More...
#include <userParams.h>
Defines a structure for the user parameters.
float32_t _USER_Params_::dcBus_nominal_V |
voltage, V
Defines the nominal DC bus
int_least16_t _USER_Params_::numIsrTicksPerCtrlTick |
Defines the number of Interrupt Service Routine (ISR) clock ticks per controller clock tick
int_least16_t _USER_Params_::numIsrTicksPerEstTick |
Defines the number of Interrupt Service Routine (ISR) clock ticks per controller clock tick
int_least16_t _USER_Params_::numIsrTicksPerTrajTick |
Defines the number of Interrupt Service Routine (ISR) clock ticks per controller clock tick
int_least16_t _USER_Params_::numCtrlTicksPerCurrentTick |
Defines the number of controller clock ticks per current controller clock tick
int_least16_t _USER_Params_::numCtrlTicksPerSpeedTick |
Defines the number of controller clock ticks per speed controller clock tick
uint_least8_t _USER_Params_::numCurrentSensors |
Defines the number of current sensors
uint_least8_t _USER_Params_::numVoltageSensors |
Defines the number of voltage sensors
float32_t _USER_Params_::systemFreq_MHz |
frequency, MHz
Defines the system clock
float32_t _USER_Params_::pwmPeriod_usec |
(PWM) period, usec
Defines the Pulse Width Modulation
float32_t _USER_Params_::voltage_sf |
for the system
Defines the voltage scale factor
float32_t _USER_Params_::current_sf |
for the system
Defines the current scale factor
float32_t _USER_Params_::dcBusPole_rps |
DC bus filter, rad/sec.
Defines the pole location for the
float32_t _USER_Params_::offsetPole_rps |
Defines the pole location for the voltage and current offset estimation, rad/sec
float32_t _USER_Params_::speedPole_rps |
speed control filter, rad/sec
Defines the pole location for the
float32_t _USER_Params_::voltageFilterPole_rps |
pole location, rad/sec
Defines the analog voltage filter
float32_t _USER_Params_::maxVsMag_pu |
Defines the maximum Vs magnitude in per units
MOTOR_Type_e _USER_Params_::motor_type |
Defines the motor type.
uint16_t _USER_Params_::motor_numPolePairs |
Defines the number of pole pairs for the motor
uint16_t _USER_Params_::motor_numEncSlots |
Defines the number of encoder slots if quadrature encoder is connected
float32_t _USER_Params_::motor_ratedFlux_Wb |
motor, Wb
Defines the rated flux of the
float32_t _USER_Params_::motor_Rr_d_Ohm |
resistance, Ohm
Defines the direct rotor
float32_t _USER_Params_::motor_Rr_q_Ohm |
resistance, Ohm
Defines the quadrature rotor
float32_t _USER_Params_::motor_Rs_a_Ohm |
resistance, Ohm
Defines the alpha stator
float32_t _USER_Params_::motor_Rs_b_Ohm |
resistance, Ohm
Defines the beta stator
float32_t _USER_Params_::motor_Rs_d_Ohm |
resistance, Ohm
Defines the direct stator
float32_t _USER_Params_::motor_Rs_q_Ohm |
resistance, Ohm
Defines the quadrature stator
float32_t _USER_Params_::motor_Ls_d_H |
inductance, H
Defines the direct stator
float32_t _USER_Params_::motor_Ls_q_H |
inductance, H
Defines the quadrature stator
float32_t _USER_Params_::maxCurrent_A |
A.
Defines the maximum current value,
float32_t _USER_Params_::IdRated_A |
value, A
Defines the Id rated current
float32_t _USER_Params_::Vd_sf |
Defines the Vd scale factor to prevent a Vd only component for the Vdq vector
float32_t _USER_Params_::maxVsMag_V |
magnitude, V
Defines the maximum stator voltage
float32_t _USER_Params_::BWc_rps |
current controllers, rad/sec
Defines the bandwidth of the
float32_t _USER_Params_::BWdelta |
maximize phase margin
Defines the bandwidth scaling to
float32_t _USER_Params_::Kctrl_Wb_p_kgm2 |
constant, Wb/(kg*m^2)
Defines the speed controller
float32_t _USER_Params_::angleDelayed_sf_sec |
Defines the scale factor for computing the angle considering system delay, sec
float32_t _USER_Params_::fluxExcFreq_Hz |
frequency, Hz
Defines the flux excitation
int_least32_t _USER_Params_::calReserved[4] |
Reserved space.
int_least32_t _USER_Params_::ctrlWaitTime[CTRL_NUMSTATES] |
Defines the wait times for each controller state, isr ticks
int_least32_t _USER_Params_::estWaitTime[EST_NUMSTATES] |
Defines the wait times for each estimator state, isr ticks
int_least32_t _USER_Params_::FluxWaitTime[EST_FLUX_NUMSTATES] |
Defines the wait times for each Ls estimator state, estimator ticks
int_least32_t _USER_Params_::LsWaitTime[EST_LS_NUMSTATES] |
Defines the wait times for each Ls estimator state, estimator ticks
int_least32_t _USER_Params_::RrWaitTime[EST_RR_NUMSTATES] |
Defines the wait times for each Rr estimator state, estimator ticks
int_least32_t _USER_Params_::RsWaitTime[EST_RS_NUMSTATES] |
Defines the wait times for each Rs estimator state, estimator ticks
int_least32_t _USER_Params_::trajWaitTime[EST_TRAJ_NUMSTATES] |
Defines the wait times for each trajectory state, isr ticks
float32_t _USER_Params_::ctrlFreq_Hz |
Hz.
Defines the controller frequency,
float32_t _USER_Params_::estFreq_Hz |
Hz.
Defines the estimator frequency,
float32_t _USER_Params_::RoverL_excFreq_Hz |
frequency, Hz
Defines the R/L excitation
float32_t _USER_Params_::trajFreq_Hz |
Hz.
Defines the trajectory frequency,
float32_t _USER_Params_::ctrlPeriod_sec |
period, sec
Defines the controller execution
float32_t _USER_Params_::maxAccel_Hzps |
for the speed profiles, Hz/sec
Defines the maximum acceleration
float32_t _USER_Params_::maxCurrent_resEst_A |
for resistance estimation, A
Defines the maximum current value
float32_t _USER_Params_::maxCurrent_indEst_A |
for inductance estimation, A
Defines the maximum current value
float32_t _USER_Params_::maxCurrentDelta_A |
for Id current trajectory
Defines the maximum current delta
float32_t _USER_Params_::maxCurrentDelta_pw_A |
Defines the maximum current delta for Id current trajectory during power warp mode
float32_t _USER_Params_::IdRated_delta_A |
value, A
Defines the Id rated delta current
float32_t _USER_Params_::forceAngleFreq_Hz |
frequency, Hz
Defines the forced angle
float32_t _USER_Params_::indEst_speedMaxFraction |
Defines the fraction of SpeedMax to use during inductance estimation
float32_t _USER_Params_::IdRatedFraction_indEst |
Defines the fraction of Id rated current to use during inductance estimation
float32_t _USER_Params_::pwGain |
computing Id reference
Defines the power warp gain for
float32_t _USER_Params_::Kp_min_VpA |
the current controller, V/A
Defines the minimum Kp value for
float32_t _USER_Params_::Kp_max_VpA |
the current controller, V/A
Defines the maximum Kp value for
float32_t _USER_Params_::RoverL_Kp_sf |
during R/L, pu
Defines the Kp scale factor used
float32_t _USER_Params_::RoverL_min_rps |
value allowed, rad/sec
Defines the minimum estimated R/L
float32_t _USER_Params_::RoverL_max_rps |
value allowed, rad/sec
Defines the maximum estimated R/L
float32_t _USER_Params_::oneOverDcBus_min_invV |
1/dcBus value allowed, 1/V
Defines the minimum estimated
float32_t _USER_Params_::oneOverDcBus_max_invV |
1/dcBus value allowed, 1/V
Defines the maximum estimated
float32_t _USER_Params_::Ls_d_H |
Defines the default stator inductance in the direct direction, H
float32_t _USER_Params_::Ls_q_H |
Defines the default stator inductance in the quadrature direction, H
float32_t _USER_Params_::Ls_coarseDelta_H |
Defines the delta inductance value during the coarse stator inductance estimation, H
float32_t _USER_Params_::Ls_fineDelta_H |
Defines the delta inductance value during the fine stator inductance estimation, H
float32_t _USER_Params_::Ls_min_H |
inductance value allowed, H
Defines the minimum stator
float32_t _USER_Params_::Ls_max_H |
inductance value allowed, H
Defines the maximum stator
float32_t _USER_Params_::Rr_Ohm |
resistance value, Ohm
Defines the default rotor
float32_t _USER_Params_::Rr_coarseDelta_Ohm |
Defines the delta resistance value during coarse rotor resistance estimation, Ohm
float32_t _USER_Params_::Rr_fineDelta_Ohm |
Defines the delta resistance value during fine rotor resistance estimation, Ohm
float32_t _USER_Params_::Rr_min_Ohm |
resistance value allowed, Ohm
Defines the minimum rotor
float32_t _USER_Params_::Rr_max_Ohm |
resistance value allowed, Ohm
Defines the maximum rotor
float32_t _USER_Params_::Rs_Ohm |
resistance value, Ohm
Defines the default stator
float32_t _USER_Params_::Rs_coarseDelta_Ohm |
Defines the delta resistance value during coarse stator resistance estimation, Ohm
float32_t _USER_Params_::Rs_fineDelta_Ohm |
Defines the delta resistance value during fine stator resistance estimation, Ohm
float32_t _USER_Params_::Rs_min_Ohm |
resistance value allowed, Ohm
Defines the minimum stator
float32_t _USER_Params_::Rs_max_Ohm |
resistance value allowed, Ohm
Defines the maximum stator
float32_t _USER_Params_::RsOnLine_DeltaInc_Ohm |
Defines the delta resistance increment value during online stator resistance estimation, Ohm
float32_t _USER_Params_::RsOnLine_DeltaDec_Ohm |
Defines the delta resistance decrement value during online stator resistance estimation, Ohm
float32_t _USER_Params_::RsOnLine_min_Ohm |
resistance value allowed, Ohm
Defines the minimum online stator
float32_t _USER_Params_::RsOnLine_max_Ohm |
resistance value allowed, Ohm
Defines the maximum online stator
float32_t _USER_Params_::RsOnLine_angleDelta_rad |
Defines the delta angle value during online stator resistance estimation, rad
float32_t _USER_Params_::RsOnLine_pole_rps |
Defines the filter pole for online stator resistance estimation, rad/sec
bool _USER_Params_::flag_bypassMotorId |
A flag to bypass motor identification and use the motor parameters
float32_t _USER_Params_::freqNearZeroSpeedLimit_Hz |
float32_t _USER_Params_::directionPole_rps |
float32_t _USER_Params_::directionPole_2_rps |
float32_t _USER_Params_::fluxPole_rps |
float32_t _USER_Params_::RoverLPole_rps |
float32_t _USER_Params_::estKappa |
float32_t _USER_Params_::flux_Wb |
float32_t _USER_Params_::flux_min_Wb |
float32_t _USER_Params_::flux_max_Wb |
float32_t _USER_Params_::oneOverFlux_min_sf |
float32_t _USER_Params_::oneOverFlux_max_sf |
float32_t _USER_Params_::Dir_fe_min_Hz |
float32_t _USER_Params_::Dir_fe_max_Hz |
float32_t _USER_Params_::Reserved01 |
14.
float32_t _USER_Params_::Reserved02 |
15.
float32_t _USER_Params_::maxFrequency_Hz |
Defines the maximum frequency value, Hz