987 const uint_least8_t filterNumber,
991 const uint_least8_t filterNumber,
1102 extern EST_Handle
EST_initEst(
const uint_least8_t estNumber);
1189 extern void EST_run(EST_Handle handle,
1893 const uint_least8_t filterNumber,
1897 const uint_least8_t filterNumber,
1937 const float_t targetValue_spd_Hz,
1938 const float_t targetValue_Id_A);
1941 const float_t targetValue_spd_Hz,
1942 const float_t targetValue_Id_A);
1976 #endif // extern "C"
1979 #endif // end of _EST_H_ definition
float_t cla_EST_getIntValue_Iq_A(EST_Handle handle)
float_t cla_EST_getMaxCurrentDelta_A(EST_Handle handle)
void cla_EST_configureCtrl(EST_Handle handle, CTRL_Handle ctrlHandle)
float_t cla_EST_computeLmag_H(EST_Handle handle, const float_t current_A)
bool EST_isError(EST_Handle handle)
Determines if there is an estimator error.
void EST_setRr_coarseDelta_Ohm(EST_Handle handle, const float_t Rr_coarseDelta_Ohm)
Sets the coarse delta rotor resistance value in the estimator.
float_t EST_getRsOnLine_Ohm(EST_Handle handle)
Gets the online stator resistance value in Ohms ( ).
void EST_enableTraj(EST_Handle handle)
Enables the estimator trajectory generator.
void EST_run(EST_Handle handle, const EST_InputData_t *pInputData, EST_OutputData_t *pOutputData)
Runs the estimator.
bool cla_EST_isLockRotor(EST_Handle handle)
void EST_setFlag_enableForceAngle(EST_Handle handle, const bool state)
Sets the enable force angle flag in the estimator.
float_t cla_EST_getRsOnLineId_A(EST_Handle handle)
void cla_EST_getLs_dq_H(EST_Handle handle, MATH_vec2 *pLs_dq_H)
float_t cla_EST_getSpeed_rpm(EST_Handle handle)
void cla_EST_setupTraj(EST_Handle handle, CTRL_Handle ctrlHandle, const float_t targetValue_spd_Hz, const float_t targetValue_Id_A)
int_least8_t cla_EST_getSignOfDirection(EST_Handle handle)
void EST_setCount_traj(EST_Handle handle, const int_least16_t value)
Sets the ISR count value in the estimator trajectory.
EST_Traj_State_e cla_EST_getTrajState(EST_Handle handle)
void EST_resetTrajCounter_isr(EST_Handle handle)
Resets the trajectory ISR counter.
void cla_EST_getIab_A(EST_Handle handle, MATH_vec2 *pIab_A)
void cla_EST_enableTraj(EST_Handle handle)
void cla_EST_setIdRated_A(EST_Handle handle, const float_t IdRated_A)
void EST_getRs_ab_Ohm(EST_Handle handle, MATH_vec2 *pRs_ab_Ohm)
Gets the alpha/beta stator resistance values from the estimator in Ohms ( ).
float_t EST_computePower_W(EST_Handle handle)
Computes the power in Watts (W)
float_t angle_rad
the estimated angle value at t = m+1, rad
float_t cla_EST_getLs_fineDelta_H(EST_Handle handle)
void cla_EST_setFlag_enableRsRecalc(EST_Handle handle, const bool state)
float_t EST_getTargetValue_Iq_A(EST_Handle handle)
Gets the target value from the Iq trajectory generator.
bool EST_getFlag_enableForceAngle(EST_Handle handle)
Gets the enable force angle flag value from the estimator.
bool EST_getFlag_estComplete(EST_Handle handle)
Gets the value of the flag which denotes when the estimation is complete.
void EST_setRsOnLineLpFilterParams(EST_Handle handle, const EST_RsOnLineFilterType_e filterType, const uint_least8_t filterNumber, const float_t b0, const float_t b1, const float_t a1, const float_t x1, const float_t y1)
Sets the online stator resistance filter parameters.
void cla_EST_setFm_Hz(EST_Handle handle, const float_t fm_Hz)
void EST_setFm_lp_Hz(EST_Handle handle, const float_t fm_lp_Hz)
Sets the low pass filtered asynchronous/mechanical frequency in the estimator.
float_t EST_getFlux_Wb(EST_Handle handle)
Gets the flux value in Webers (Wb).
void cla_EST_setIntValue_spd_Hz(EST_Handle handle, const float_t intValue_Hz)
void EST_setForceAngleDelta_rad(EST_Handle handle, const float_t angleDelta_rad)
Sets the force angle delta value in the estimator in radians (rad).
void EST_incrTrajCounter_isr(EST_Handle handle)
Increments the ISR counter in the trajectory generator.
void cla_EST_setRs_a_Ohm(EST_Handle handle, const float_t Rs_a_Ohm)
bool cla_EST_getFlag_motorIdentified(EST_Handle handle)
float_t fslip_rps
the slip frequency estimate, rad/sec
void EST_setRsOnLineId_mag_A(EST_Handle handle, const float_t Id_mag_A)
Sets the Id magnitude value used for online stator resistance estimation in Ampere (A)...
void cla_EST_getIab_lp_A(EST_Handle handle, MATH_vec2 *pIab_lp_A)
bool cla_EST_updateTrajState(EST_Handle handle)
EST_ErrorCode_e
Enumeration for the estimator error codes.
float_t EST_getRr_coarseDelta_Ohm(EST_Handle handle)
Gets the coarse delta rotor resistance value from the estimator.
bool EST_updateState(EST_Handle handle, const float_t Id_target_A)
Updates the estimator state.
void cla_EST_setIdRated_delta_A(EST_Handle handle, const float_t IdRated_delta_A)
void cla_EST_setId_ref_A(EST_Handle handle, const float_t Id_ref_A)
void cla_EST_setRsOnLine_Ohm(EST_Handle handle, const float_t Rs_Ohm)
float_t cla_EST_getTorque_sf(EST_Handle handle)
float_t EST_getRr_q_Ohm(EST_Handle handle)
Gets the quadrature rotor resistance value in Ohms ( ).
float_t cla_EST_computeTorque_Nm(EST_Handle handle)
void EST_getIdq_lp_A(EST_Handle handle, MATH_vec2 *pIdq_lp_A)
Gets the Idq low pass filtered current vector in Ampere (A).
void EST_setRr_min_Ohm(EST_Handle handle, const float_t Rr_min_Ohm)
Sets the minimum rotor resistance value for saturation.
float_t EST_getDcBus_V(EST_Handle handle)
Gets the DC bus value from the estimator in volts (V)
float_t cla_EST_getRr_q_Ohm(EST_Handle handle)
void EST_setCount_state(EST_Handle handle, const int_least32_t value)
Sets the state count in the estimator.
float_t EST_getOneOverDcBus_invV(EST_Handle handle)
Gets the inverse of the DC bus voltage in 1/Volt (1/V).
void cla_EST_getIdq_lp_A(EST_Handle handle, MATH_vec2 *pIdq_lp_A)
void cla_EST_setPwGain(EST_Handle handle, const float_t pwGain)
void cla_EST_getVdq_V(EST_Handle handle, MATH_vec2 *pVdq_V)
void EST_setAngle_est_rad(EST_Handle handle, const float_t angle_rad)
Sets the angle value at t = n in the estimator in radians (rad).
int_least32_t timeStamp
a time stamp for the input data buffer
void EST_setRs_a_Ohm(EST_Handle handle, const float_t Rs_a_Ohm)
Sets the alpha stator resistance value used in the estimator in Ohm ( ).
float_t cla_EST_getLhf_H(EST_Handle handle)
float_t EST_getFreqBeta_lp(EST_Handle handle)
Gets the value used to set the pole location in the low-pass filter of the frequency estimator in rad...
struct _EST_OutputData_ EST_OutputData_t
Defines the estimator (EST) output data.
float_t EST_getRoverL_rps(EST_Handle handle)
Gets the R/L value from the estimator.
void EST_setRr_d_Ohm(EST_Handle handle, const float_t Rr_d_Ohm)
Sets the direct rotor resistance value used in the estimator in Ohm ( ).
float_t cla_EST_get_rps_to_rpm_sf(EST_Handle handle)
float_t cla_EST_getFlux_Wb(EST_Handle handle)
void EST_getRsOnLineLpFilterParams(EST_Handle handle, const EST_RsOnLineFilterType_e filterType, const uint_least8_t filterNumber, float_t *b0, float_t *b1, float_t *a1, float_t *x1, float_t *y1)
Gets the online stator resistance filter parameters.
void EST_setCount_isr(EST_Handle handle, const int_least16_t value)
Sets the ISR count in the estimator.
float_t cla_EST_getAngleDelta_est_rad(EST_Handle handle)
bool EST_getFlag_enablePowerWarp(EST_Handle handle)
Gets the enable power warp flag value from the trajectory generator.
void EST_setMaxCurrentDelta_pw_A(EST_Handle handle, const float_t maxCurrentDelta_A)
Sets the maximum power warp current delta value used in the estimator in Ampere (A).
void cla_EST_setFe_rps(EST_Handle handle, const float_t fe_rps)
Contains the public interface to the math (MATH) module routines.
bool EST_getFlag_motorIdentified(EST_Handle handle)
Gets the motor identified flag state in the estimator.
Defines a two element vector.
float_t EST_getIntValue_Iq_A(EST_Handle handle)
Gets the intermediate value from the Iq trajectory generator.
void EST_setRsOnLineAngle_rad(EST_Handle handle, const float_t angle_rad)
Sets the angle value in the estimator.
void EST_setLs_d_H(EST_Handle handle, const float_t Ls_d_H)
Sets the direct stator inductance value in the estimator in Henry (H).
void cla_EST_setFm_lp_rps(EST_Handle handle, const float_t fm_lp_rps)
int_least16_t EST_getCount_isr(EST_Handle handle)
Gets the ISR count from the estimator.
void cla_EST_setRs_dq_Ohm(EST_Handle handle, const MATH_vec2 *pRs_dq_Ohm)
float_t cla_EST_getAngleDelta_traj_rad(EST_Handle handle)
void EST_setMinValue_spd_Hz(EST_Handle handle, const float_t minValue_Hz)
Sets the minimum value in the speed trajectory generator.
bool EST_isOnLine(EST_Handle handle)
Determines if the estimator is ready for online control.
void cla_EST_setRr_max_Ohm(EST_Handle handle, const float_t Rr_max_Ohm)
float_t cla_EST_getMaxValue_Iq_A(EST_Handle handle)
float_t EST_getLhf_H(EST_Handle handle)
Gets the Lhf value from the estimator.
bool EST_getFlag_updateRs(EST_Handle handle)
Gets the value of the flag which enables the updating of the stator resistance (Rs) value...
void EST_setFslip_rps(EST_Handle handle, const float_t fslip_rps)
Sets the slip frequency in the estimator.
void EST_setMinValue_Iq_A(EST_Handle handle, const float_t minValue_A)
Sets the minimum value in the Iq trajectory generator.
void EST_setTargetValue_Id_A(EST_Handle handle, const float_t targetValue_A)
Sets the target value in the Id trajectory generator.
void cla_EST_setRr_Ohm(EST_Handle handle, const float_t Rr_Ohm)
float_t cla_EST_getFm_lp_Hz(EST_Handle handle)
float_t cla_EST_getFslip_rps(EST_Handle handle)
void EST_setFm_Hz(EST_Handle handle, const float_t fm_Hz)
Sets the asynchronous/mechanical frequency in the estimator.
struct _EST_Obj_ * EST_Handle
Defines the estimator (EST) handle.
float_t fmDot_rps2
the mechanical acceleration estimate, rad/sec^2
void EST_setIdle(EST_Handle handle)
Sets the estimator to idle.
void EST_setDcBus_V(EST_Handle handle, const float_t dcBus_V)
Sets the DC bus voltage in the estimator in Volt (V).
void cla_EST_setRsOnLineId_A(EST_Handle handle, const float_t Id_A)
void cla_EST_setFlag_enable(EST_Handle handle, const bool state)
void cla_EST_setRhf_Ohm(EST_Handle handle, const float_t Rhf_Ohm)
bool cla_EST_isEnabled(EST_Handle handle)
void EST_setRs_ab_Ohm(EST_Handle handle, const MATH_vec2 *pRs_ab_Ohm)
Sets the alpha/beta stator resistance values used in the estimator in Ohm ( ).
void cla_EST_setParams(EST_Handle handle, USER_Params *pUserParams)
void EST_incrCounter_isr(EST_Handle handle)
Increments the ISR counter in the estimator.
void cla_EST_setMaxCurrentDelta_pw_A(EST_Handle handle, const float_t maxCurrentDelta_A)
void cla_EST_setAngleDelta_traj_rad(EST_Handle handle, const float_t delta_rad)
float_t EST_getSpeed_ref_Hz(EST_Handle handle)
Gets the reference speed value from the estimator.
Defines the structures for the CTRL object.
void cla_EST_setNumIsrTicksPerEstTick(EST_Handle handle, const int_least16_t numIsrTicksPerEstTick)
float_t EST_getRr_d_Ohm(EST_Handle handle)
Gets the direct rotor resistance value in Ohm ( ).
float_t cla_EST_getRs_q_Ohm(EST_Handle handle)
float_t EST_getRs_coarseDelta_Ohm(EST_Handle handle)
Gets the coarse delta stator resistance value from the estimator.
float_t EST_getIab_beta_lp(EST_Handle handle)
Gets the beta value for the Iab low pass filter.
Defines the controller (CTRL) object.
float_t EST_getAngleDelta_traj_rad(EST_Handle handle)
Gets the angle delta estimate for t = n+1 from the trajectory in radians (rad).
Defines a structure for the user parameters.
float_t cla_EST_getRsOnLineId_mag_A(EST_Handle handle)
float_t EST_getFe_abs_max_rps(EST_Handle handle)
Gets the absolute maximum electrical frequency of the motor in rad/sec.
float_t cla_EST_getMinValue_Id_A(EST_Handle handle)
float_t EST_getFslip_rps(EST_Handle handle)
Gets the slip frequency of the motor in rad/sec.
float_t cla_EST_getIab_beta_lp(EST_Handle handle)
bool EST_isEnabled(EST_Handle handle)
Determines if the estimator (EST) is enabled.
float_t cla_EST_getMaxDelta_Iq_A(EST_Handle handle)
float_t EST_getMaxValue_spd_Hz(EST_Handle handle)
Gets the maximum value from the speed trajectory generator.
float_t cla_EST_getAngleDelta_rad(EST_Handle handle)
void cla_EST_configureTraj(EST_Handle handle)
void cla_EST_setIntValue_Iq_A(EST_Handle handle, const float_t intValue_A)
void EST_setupTraj(EST_Handle handle, CTRL_Handle ctrlHandle, const float_t targetValue_spd_Hz, const float_t targetValue_Id_A)
Sets up the trajectory generator.
bool cla_EST_isIdle(EST_Handle handle)
void EST_setMaxDelta_spd_Hz(EST_Handle handle, const float_t maxDelta_Hz)
Sets the maximum delta value in the speed trajectory generator.
void cla_EST_setFm_lp_Hz(EST_Handle handle, const float_t fm_lp_Hz)
float_t EST_getAccel_rps2(EST_Handle handle)
Gets the mechanical acceleration from the estimator.
void cla_EST_setRs_coarseDelta_Ohm(EST_Handle handle, const float_t Rs_coarseDelta_Ohm)
float_t EST_getAngleDelta_rad(EST_Handle handle)
Gets the angle delta estimate for t = n+1 from the estimator.
void EST_setParams(EST_Handle handle, USER_Params *pUserParams)
Sets the estimator parameters using the user parameters structreu.
float_t cla_EST_getTargetValue_Iq_A(EST_Handle handle)
void EST_setFm_rps(EST_Handle handle, const float_t fm_rps)
Sets the asynchronous/mechanical frequency in the estimator.
float_t cla_EST_getAngle_rad(EST_Handle handle)
MATH_vec2 Eab_V
the alpha/beta back-EMF estimates, V
float_t cla_EST_getRs_fineDelta_Ohm(EST_Handle handle)
float_t EST_getFslip_Hz(EST_Handle handle)
Gets the slip frequency of the motor in Hertz (Hz).
int_least32_t timeStamp
a time stamp for the output data buffer
void cla_EST_setAngle_rad(EST_Handle handle, const float_t angle_rad)
float_t cla_EST_getAngle_traj_rad(EST_Handle handle)
float_t EST_get_rpm_to_rps_sf(EST_Handle handle)
Gets the rpm to rad/sec scale factor.
void EST_configureTraj(EST_Handle handle)
Configures the trajectory generator for each of the estimator states.
void cla_EST_setLs_q_H(EST_Handle handle, const float_t Ls_q_H)
void EST_setRr_fineDelta_Ohm(EST_Handle handle, const float_t Rr_fineDelta_Ohm)
Sets the fine delta rotor resistance value in the estimator.
Contains the states for the estimator (EST) module routines.
bool cla_EST_doCurrentCtrl(EST_Handle handle)
void EST_setAngleDelta_traj_rad(EST_Handle handle, const float_t delta_rad)
Sets the trajectory angle delta value.
void EST_setFm_lp_rps(EST_Handle handle, const float_t fm_lp_rps)
Sets the low pass filtered asynchronous/mechanical frequency in the estimator.
void EST_setAccel_rps2(EST_Handle handle, const float_t accel_rps2)
Sets the mechanical acceleration in the estimator.
void EST_setRs_b_Ohm(EST_Handle handle, const float_t Rs_b_Ohm)
Sets the beta stator resistance value used in the estimator in Ohm ( ).
void EST_setLs_H(EST_Handle handle, const float_t Ls_H)
Sets the stator inductance value in the estimator in Henry (H).
bool cla_EST_getFlag_updateRs(EST_Handle handle)
float_t cla_EST_getRr_fineDelta_Ohm(EST_Handle handle)
void cla_EST_setFlag_estComplete(EST_Handle handle, const bool state)
void cla_EST_setLs_H(EST_Handle handle, const float_t Ls_H)
void EST_setFlag_updateRs(EST_Handle handle, const bool state)
Sets the update stator resistance (Rs) flag in the estimator.
float_t cla_EST_getFe_rps(EST_Handle handle)
float_t EST_computeTorque_Nm(EST_Handle handle)
Computes the torque value in per Newton-meter (Nm)
bool EST_isTrajEnabled(EST_Handle handle)
Determines if the trajectory generator is enabled.
void cla_EST_setLs_fineDelta_H(EST_Handle handle, const float_t Ls_delta_H)
void EST_setMaxCurrentDelta_A(EST_Handle handle, const float_t maxCurrentDelta_A)
Sets the maximum current delta value in the estimator in Ampere (A).
float_t speed_ref_Hz
the speed reference value, Hz
float_t cla_EST_getRsOnLine_Ohm(EST_Handle handle)
float_t EST_getRsOnLineAngle_rad(EST_Handle handle)
Gets the angle value from the estimator.
float_t cla_EST_getRhf_Ohm(EST_Handle handle)
void cla_EST_setForceAngleDelta_rad(EST_Handle handle, const float_t angleDelta_rad)
void EST_setIntValue_Id_A(EST_Handle handle, const float_t intValue_A)
Sets the intermediate value in the Id trajectory generator.
float_t EST_getIntValue_Id_A(EST_Handle handle)
Gets the intermediate value from the Id trajectory generator.
void cla_EST_setRs_d_Ohm(EST_Handle handle, const float_t Rs_d_Ohm)
float_t EST_getFm_lp_Hz(EST_Handle handle)
Gets the low pass filtered mechanical frequency of the motor in Hz.
void EST_setIq_ref_A(EST_Handle handle, const float_t Iq_ref_A)
Sets the quadrature current (Iq) reference value in the estimator in Ampere (A).
bool cla_EST_getFlag_nearZeroSpeed(EST_Handle handle)
float_t cla_EST_getRs_a_Ohm(EST_Handle handle)
void EST_setTargetValue_Iq_A(EST_Handle handle, const float_t targetValue_A)
Sets the target value in the Iq trajectory generator.
void EST_setLhf_H(EST_Handle handle, const float_t Lhf_H)
Sets the Lhf value in the estimator.
void EST_setAngle_np1_rad(EST_Handle handle, const float_t angle_np1_rad)
Sets the angle value at t = n+1 in the estimator in radians (rad).
float_t cla_EST_getFe_Hz(EST_Handle handle)
float_t cla_EST_runPowerWarp(EST_Handle handle, const float_t Id_int_A, const float_t Iq_A)
void EST_enable(EST_Handle handle)
Enables the estimator.
bool cla_EST_getFlag_enableForceAngle(EST_Handle handle)
void cla_EST_setRsOnLineAngleDelta_rad(EST_Handle handle, const float_t angleDelta_rad)
EST_State_e cla_EST_getState(EST_Handle handle)
bool EST_getFlag_enableRsOnLine(EST_Handle handle)
Gets the value of the flag which enables online stator resistance (Rs) estimation.
float_t EST_getLs_d_H(EST_Handle handle)
Gets the direct stator inductance value in Henries (H).
void EST_setFlag_enableRsRecalc(EST_Handle handle, const bool state)
Sets the enable stator resistance (Rs) re-calculation flag in the estimator.
void cla_EST_setRr_q_Ohm(EST_Handle handle, const float_t Rr_q_Ohm)
void cla_EST_updateId_ref_A(EST_Handle handle, float_t *pId_ref_A)
float_t cla_EST_getMaxCurrentDelta_pw_A(EST_Handle handle)
void EST_getRs_dq_Ohm(EST_Handle handle, MATH_vec2 *pRs_dq_Ohm)
Gets the direct/quadrature stator resistance values from the estimator in Ohms ( ).
bool EST_isNotOnLine(EST_Handle handle)
Determines if the estimator is not ready for online control.
bool EST_getForceAngleStatus(EST_Handle handle)
Gets the status of the force angle operation in the estimator.
void EST_getIdq_A(EST_Handle handle, MATH_vec2 *pIdq_A)
Gets the Idq current vector in Ampere (A)
void EST_configureCtrl(EST_Handle handle, CTRL_Handle ctrlHandle)
Configures the controller for each of the estimator states.
void cla_EST_setRr_d_Ohm(EST_Handle handle, const float_t Rr_d_Ohm)
void EST_setRs_Ohm(EST_Handle handle, const float_t Rs_Ohm)
Sets the stator resistance value used in the estimator in Ohm ( ).
void EST_setFlag_enablePowerWarp(EST_Handle handle, const bool state)
Sets the enable PowerWarp flag in the estimator.
void cla_EST_getVdq_lp_V(EST_Handle handle, MATH_vec2 *pVdq_lp_V)
bool EST_getFlag_nearZeroSpeed(EST_Handle handle)
Gets the near zero speed flag state.
EST_State_e
Enumeration for the estimator states.
void EST_setLs_fineDelta_H(EST_Handle handle, const float_t Ls_delta_H)
Sets the delta stator inductance value during fine estimation.
float_t EST_getMaxDelta_spd_Hz(EST_Handle handle)
Gets the maximum delta value from the speed trajectory generator.
bool cla_EST_isMotorIdentified(EST_Handle handle)
float_t EST_getLs_H(EST_Handle handle)
Gets the stator inductance value in Henry (H)
float_t EST_getAngle_traj_rad(EST_Handle handle)
Gets the trajectory angle from the estimator.
bool cla_EST_isError(EST_Handle handle)
void EST_setMaxDelta_Iq_A(EST_Handle handle, const float_t maxDelta_A)
Sets the maximum delta value in the Iq trajectory generator.
EST_ErrorCode_e EST_getErrorCode(EST_Handle handle)
Gets the error code from the estimator.
void EST_setFreqBeta_lp(EST_Handle handle, const float_t beta_rad)
Sets the value used to set the low pass filter pole location in the frequency estimator in radians (r...
void cla_EST_setMaxDelta_spd_Hz(EST_Handle handle, const float_t maxDelta_Hz)
void EST_getVab_V(EST_Handle handle, MATH_vec2 *pVab_V)
Gets the Vab voltage vector in Volts (V)
bool EST_doSpeedCtrl(EST_Handle handle)
Determines if speed control should be performed during motor identification.
void cla_EST_setLs_dq_H(EST_Handle handle, const MATH_vec2 *pLs_dq_H)
void EST_setRs_q_Ohm(EST_Handle handle, const float_t Rs_q_Ohm)
Sets the quadrature stator resistance value used in the estimator in Ohm ( ).
void EST_setNumIsrTicksPerTrajTick(EST_Handle handle, const int_least16_t numIsrTicksPerTrajTick)
Sets the number of Interrupt Service Routine (ISR) clock ticks per estimator trajectory clock tick...
int_least16_t cla_EST_getNumIsrTicksPerTrajTick(EST_Handle handle)
bool cla_EST_isNotOnLine(EST_Handle handle)
void cla_EST_setRs_fineDelta_Ohm(EST_Handle handle, const float_t Rs_fineDelta_Ohm)
void EST_setIntValue_Iq_A(EST_Handle handle, const float_t intValue_A)
Sets the intermediate value in the Iq trajectory generator.
EST_Handle EST_initEst(const uint_least8_t estNumber)
Initializes the estimator.
void cla_EST_setRr_min_Ohm(EST_Handle handle, const float_t Rr_min_Ohm)
void EST_setFe_abs_max_rps(EST_Handle handle, const float_t fe_abs_max_rps)
Sets the absolute maximum electrical frequency in the estimator.
float_t cla_EST_getForceAngleDelta_rad(EST_Handle handle)
void EST_setMinValue_Id_A(EST_Handle handle, const float_t minValue_A)
Sets the minimum value in the Id trajectory generator.
float_t cla_EST_getDcBus_V(EST_Handle handle)
float_t cla_EST_getRsOnLineAngle_rad(EST_Handle handle)
float_t EST_getIdRated_A(EST_Handle handle)
Gets the Id rated current value from the estimator in Ampere (A).
EST_Flux_State_e cla_EST_getFluxState(EST_Handle handle)
float_t fm_lp_rps
the low pass filtered mechanical frequency estimate, rad/sec
float_t cla_EST_getMaxValue_spd_Hz(EST_Handle handle)
void EST_setIdRated_A(EST_Handle handle, const float_t IdRated_A)
Sets the Id rated current value in the estimator in Ampere (A).
float_t cla_EST_getRoverL_rps(EST_Handle handle)
float_t cla_EST_getMinValue_spd_Hz(EST_Handle handle)
float_t EST_getLs_q_H(EST_Handle handle)
Gets the stator inductance value in the quadrature coordinate direction in Henries (H)...
void cla_EST_getRs_ab_Ohm(EST_Handle handle, MATH_vec2 *pRs_ab_Ohm)
float_t EST_getTargetValue_spd_Hz(EST_Handle handle)
Gets the target value from the speed trajectory generator.
EST_Traj_State_e
Enumeration for the trajectory generator states.
void cla_EST_setMaxDelta_Iq_A(EST_Handle handle, const float_t maxDelta_A)
float_t EST_getAngle_rad(EST_Handle handle)
Gets the angle estimate for t = n+1 from the estimator in radians (rad).
void cla_EST_setAngle_traj_rad(EST_Handle handle, const float_t angle_rad)
float_t oneOverDcBus_invV
the DC Bus inverse, 1/V
void EST_disableTraj(EST_Handle handle)
Disables the estimator trajectory generator.
float_t cla_EST_getAngle_est_rad(EST_Handle handle)
void cla_EST_setCount_traj(EST_Handle handle, const int_least16_t value)
void cla_EST_setFlag_enableRsOnLine(EST_Handle handle, const bool state)
float_t EST_getFm_rps(EST_Handle handle)
Gets the mechanical frequency of the motor in rad/sec.
void EST_setRoverL_rps(EST_Handle handle, const float_t RoverL_rps)
Sets the R/L value in the estimator.
float_t EST_getTargetValue_Id_A(EST_Handle handle)
Gets the target value from the Id trajectory generator.
float_t EST_getRsOnLineId_mag_A(EST_Handle handle)
Gets the Id magnitude value used for online stator resistance estimation in Ampere (A)...
void cla_EST_setDcBus_V(EST_Handle handle, const float_t dcBus_V)
void cla_EST_setFe_Hz(EST_Handle handle, const float_t fe_Hz)
EST_Handle cla_EST_initEst(const uint_least8_t estNumber)
EST_State_e EST_getState(EST_Handle handle)
Gets the state of the estimator.
float_t EST_getRs_b_Ohm(EST_Handle handle)
Gets the beta stator resistance value in Ohms ( ).
void cla_EST_setRs_b_Ohm(EST_Handle handle, const float_t Rs_b_Ohm)
float_t EST_getAngleDelta_est_rad(EST_Handle handle)
Gets the angle delta estimate for t = n+1 from the estimator in radians (rad).
float_t EST_getAngle_est_rad(EST_Handle handle)
Gets the estimated angle from the estimator.
void EST_setFlag_motorIdentified(EST_Handle handle, const bool state)
Sets the motor identified flag state in the estimator.
void cla_EST_setAngle_est_rad(EST_Handle handle, const float_t angle_rad)
void cla_EST_incrTrajCounter_isr(EST_Handle handle)
float_t EST_getRr_fineDelta_Ohm(EST_Handle handle)
Gets the fine delta rotor resistance value from the estimator.
float_t cla_EST_getRr_coarseDelta_Ohm(EST_Handle handle)
void cla_EST_setFlag_enablePowerWarp(EST_Handle handle, const bool state)
EST_Flux_State_e
Enumeration for the estimator states.
float_t EST_getFm_lp_rps(EST_Handle handle)
Gets the low pass filtered mechanical frequency of the motor in rad/sec.
bool EST_useZeroIq_ref(EST_Handle handle)
Determines if a zero Iq current reference should be used in the controller.
void EST_setRhf_Ohm(EST_Handle handle, const float_t Rhf_Ohm)
Sets the Rhf value in the estimator.
float_t cla_EST_getRr_Ohm(EST_Handle handle)
void EST_updateId_ref_A(EST_Handle handle, float_t *pId_ref_A)
Updates the Id reference value used for online stator resistance estimation in Ampere (A)...
void EST_setFlag_estComplete(EST_Handle handle, const bool state)
Sets the estimation complete flag in the estimator.
EST_Flux_State_e EST_getFluxState(EST_Handle handle)
Gets the flux estimator state.
float_t cla_EST_getMaxSpeedDelta_Hz(EST_Handle handle)
bool cla_EST_getFlag_bypassLockRotor(EST_Handle handle)
void EST_getEdq_V(EST_Handle handle, MATH_vec2 *pEdq_V)
Gets the direct/quadrature back EMF voltage vector from the estimator.
float_t EST_getRs_a_Ohm(EST_Handle handle)
Gets the alpha stator resistance value in Ohms ( ).
void cla_EST_setRs_Ohm(EST_Handle handle, const float_t Rs_Ohm)
void EST_setLs_coarseDelta_H(EST_Handle handle, const float_t Ls_delta_H)
Sets the delta stator inductance value during coarse estimation.
float_t EST_getRhf_Ohm(EST_Handle handle)
Gets the Rhf value from the estimator.
void cla_EST_setFlag_updateRs(EST_Handle handle, const bool state)
float_t cla_EST_getFm_Hz(EST_Handle handle)
void EST_setRr_Ohm(EST_Handle handle, const float_t Rr_Ohm)
Sets the rotor resistance value used in the estimator in Ohm ( ).
void EST_setFlag_enableRsOnLine(EST_Handle handle, const bool state)
Sets the enable Rs online flag in the estimator.
float_t EST_getFe_rps(EST_Handle handle)
Gets the electrical frequency of the motor in rad/sec.
float_t cla_EST_getIdRated_A(EST_Handle handle)
float_t cla_EST_getOneOverDcBus_invV(EST_Handle handle)
float_t EST_getMaxValue_Iq_A(EST_Handle handle)
Gets the maximum value from the Iq trajectory generator.
void EST_setRsOnLineId_A(EST_Handle handle, const float_t Id_A)
Sets the Id value in the online stator resistance estimator in Ampere (A).
float_t EST_getMaxValue_Id_A(EST_Handle handle)
Gets the maximum value from the Id trajectory generator.
int_least16_t EST_getNumIsrTicksPerEstTick(EST_Handle handle)
Gets the number of Interrupt Service Routine (ISR) clock ticks per estimator clock tick...
void EST_getIab_A(EST_Handle handle, MATH_vec2 *pIab_A)
Gets the Iab current vector in Ampere (A).
void cla_EST_setRsOnLine_beta_rad(EST_Handle handle, const float_t beta_rad)
void EST_setRsOnLine_Ohm(EST_Handle handle, const float_t Rs_Ohm)
Sets the stator resistance value in the online stator resistance estimator in Ohm ( )...
void cla_EST_runTraj(EST_Handle handle)
void cla_EST_disableTraj(EST_Handle handle)
void cla_EST_setMinValue_Iq_A(EST_Handle handle, const float_t minValue_A)
void EST_setId_ref_A(EST_Handle handle, const float_t Id_ref_A)
Sets the direct current (Id) reference value in the estimator in Ampere (A).
float_t EST_getForceAngleDelta_rad(EST_Handle handle)
Gets the force angle delta value from the estimator in radians (rad).
float_t EST_getIdRated_delta_A(EST_Handle handle)
Gets the Id rated delta current value from the estimator in Ampere (A)
void EST_setNumIsrTicksPerEstTick(EST_Handle handle, const int_least16_t numIsrTicksPerEstTick)
Sets the number of Interrupt Service Routine (ISR) clock ticks per estimator clock tick...
void cla_EST_setTargetValue_spd_Hz(EST_Handle handle, const float_t targetValue_Hz)
void EST_setLs_q_H(EST_Handle handle, const float_t Ls_q_H)
Sets the quadrature stator inductance value in the estimator in Henry (H).
void EST_setAngleDelta_est_rad(EST_Handle handle, const float_t delta_rad)
Sets the estimated angle delta value.
void EST_setRr_dq_Ohm(EST_Handle handle, const MATH_vec2 *pRr_dq_Ohm)
Sets the direct/quadrature rotor resistance values used in the estimator in Ohm ( )...
float_t EST_getMinValue_Id_A(EST_Handle handle)
Gets the minimum value from the Id trajectory generator.
void EST_setIdq_ref_A(EST_Handle handle, const MATH_vec2 *pIdq_ref_A)
Sets the direct/quadrature current (Idq) reference value in the estimator in Ampere (A)...
float_t EST_getRsOnLineAngleDelta_rad(EST_Handle handle)
Gets the delta angle value from the estimator.
float_t EST_getRs_Ohm(EST_Handle handle)
Gets the stator resistance value in Ohms ( ).
float_t EST_computeLmag_H(EST_Handle handle, const float_t current_A)
Computes the magnetizing inductance in Henries (H)
void EST_setMaxValue_spd_Hz(EST_Handle handle, const float_t maxValue_Hz)
Sets the maximum value in the speed trajectory generator.
void cla_EST_setTargetValue_Iq_A(EST_Handle handle, const float_t targetValue_A)
float_t EST_getTorque_sf(EST_Handle handle)
Gets the torque scale factor for the torque equation.
bool EST_doCurrentCtrl(EST_Handle handle)
Determines if current control should be performed during motor identification.
float_t EST_getRs_q_Ohm(EST_Handle handle)
Gets the quadrature stator resistance value in Ohms ( ).
bool cla_EST_getForceAngleStatus(EST_Handle handle)
void EST_setAngle_rad(EST_Handle handle, const float_t angle_rad)
Sets the angle value at t = n in both the estimator and trajectory in radians (rad).
void cla_EST_setMaxValue_Iq_A(EST_Handle handle, const float_t maxValue_A)
void cla_EST_setLs_coarseDelta_H(EST_Handle handle, const float_t Ls_delta_H)
void EST_runTraj(EST_Handle handle)
Runs the trajectory generator.
float_t cla_EST_getFm_lp_rps(EST_Handle handle)
void EST_getLs_dq_H(EST_Handle handle, MATH_vec2 *pLs_dq_H)
Gets the direct/quadrature stator inductance values from the estimator in Henry (H).
float_t EST_getFm_Hz(EST_Handle handle)
Gets the mechanical frequency of the motor in Hertz (Hz).
float_t cla_EST_getRs_coarseDelta_Ohm(EST_Handle handle)
void cla_EST_getEdq_V(EST_Handle handle, MATH_vec2 *pEdq_V)
float_t cla_EST_getRsOnLineAngleDelta_rad(EST_Handle handle)
float_t cla_EST_getFm_rps(EST_Handle handle)
float_t cla_EST_getLmag_H(EST_Handle handle)
void EST_setTargetValue_spd_Hz(EST_Handle handle, const float_t targetValue_Hz)
Sets the target value in the speed trajectory generator.
void cla_EST_setMinValue_spd_Hz(EST_Handle handle, const float_t minValue_Hz)
int_least16_t cla_EST_getNumIsrTicksPerEstTick(EST_Handle handle)
void cla_EST_setMaxDelta_Id_A(EST_Handle handle, const float_t maxDelta_A)
void EST_getRr_dq_Ohm(EST_Handle handle, MATH_vec2 *pRr_dq_Ohm)
Gets the direct/quadrature rotor resistance values from the estimator in Ohms ( ).
void EST_getVdq_lp_V(EST_Handle handle, MATH_vec2 *pVdq_lp_V)
Gets the low pass filtered Vdq voltage vector in Volts (V)
void cla_EST_getEab_V(EST_Handle handle, MATH_vec2 *pEab_V)
float_t EST_runPowerWarp(EST_Handle handle, const float_t Id_int_A, const float_t Iq_A)
Runs PowerWarp.
void cla_EST_setSpeed_ref_Hz(EST_Handle handle, const float_t speed_ref_Hz)
void EST_setRsOnLineAngleDelta_rad(EST_Handle handle, const float_t angleDelta_rad)
Sets the rotating angle delta in the online stator resistance estimator in radians.
float_t cla_EST_getLs_coarseDelta_H(EST_Handle handle)
void EST_setFslip_Hz(EST_Handle handle, const float_t fslip_Hz)
Sets the slip frequency in the estimator.
void EST_getIab_lp_A(EST_Handle handle, MATH_vec2 *pIab_lp_A)
Gets the low pass filtered Iab current vector in Ampere (A).
void cla_EST_setFslip_rps(EST_Handle handle, const float_t fslip_rps)
void cla_EST_resetCounter_isr(EST_Handle handle)
void cla_EST_setIq_ref_A(EST_Handle handle, const float_t Iq_ref_A)
void EST_setAngle_traj_rad(EST_Handle handle, const float_t angle_rad)
Sets the angle value at t = n in the trajectory in radians (rad).
void cla_EST_setIntValue_Id_A(EST_Handle handle, const float_t intValue_A)
bool cla_EST_doSpeedCtrl(EST_Handle handle)
bool EST_isMotorIdentified(EST_Handle handle)
Determines if the motor has been identified.
float_t dcBus_V
the DC bus voltage value, V
void cla_EST_setAccel_rps2(EST_Handle handle, const float_t accel_rps2)
void cla_EST_setRs_q_Ohm(EST_Handle handle, const float_t Rs_q_Ohm)
void cla_EST_resetTrajCounter_isr(EST_Handle handle)
float_t EST_getRs_d_Ohm(EST_Handle handle)
Gets the direct stator resistance value in Ohms ( ).
float_t EST_getMaxDelta_Iq_A(EST_Handle handle)
Gets the maximum delta value from the Iq trajectory generator.
float_t cla_EST_getIntValue_spd_Hz(EST_Handle handle)
bool EST_isLockRotor(EST_Handle handle)
Determines if the estimator is waiting for the rotor to be locked.
void cla_EST_getVab_V(EST_Handle handle, MATH_vec2 *pVab_V)
void EST_resetCounter_state(EST_Handle handle)
Resets the state counter.
void cla_EST_setFslip_Hz(EST_Handle handle, const float_t fslip_Hz)
bool cla_EST_isOnLine(EST_Handle handle)
float_t EST_get_rps_to_rpm_sf(EST_Handle handle)
Gets the rad/sec to rpm scale factor.
void EST_getEab_V(EST_Handle handle, MATH_vec2 *pEab_V)
Gets the alpha/beta back EMF voltage vector from the estimator.
float_t cla_EST_getTargetValue_spd_Hz(EST_Handle handle)
void EST_setRsOnLine_beta_rad(EST_Handle handle, const float_t beta_rad)
Sets the beta of the filters used for online stator resistance estimation in radians (rad)...
void cla_EST_setRs_ab_Ohm(EST_Handle handle, const MATH_vec2 *pRs_ab_Ohm)
float_t cla_EST_getLs_H(EST_Handle handle)
void EST_setMaxDelta_Id_A(EST_Handle handle, const float_t maxDelta_A)
Sets the maximum delta value in the Id trajectory generator.
void cla_EST_setFm_rps(EST_Handle handle, const float_t fm_rps)
float_t EST_getRsOnLineId_A(EST_Handle handle)
Gets the Id value used for online stator resistance estimation in Ampere (A).
void EST_getIdq_ref_A(EST_Handle handle, MATH_vec2 *pIdq_ref_A)
Gets the Idq current vector reference in Ampere (A).
void cla_EST_setCount_isr(EST_Handle handle, const int_least16_t value)
void cla_EST_setRsOnLineId_mag_A(EST_Handle handle, const float_t Id_mag_A)
bool cla_EST_useZeroIq_ref(EST_Handle handle)
float_t EST_getMaxSpeedDelta_Hz(EST_Handle handle)
Gets the maximum acceleration value used in the estimator in Hertz (Hz).
MATH_vec2 Iab_A
the alpha/beta current values, A
void EST_setLs_dq_H(EST_Handle handle, const MATH_vec2 *pLs_dq_H)
Sets the direct/quadrature stator inductance vector values in the estimator in Henry (H)...
void cla_EST_setFlag_enableForceAngle(EST_Handle handle, const bool state)
void EST_setPwGain(EST_Handle handle, const float_t pwGain)
Sets the power warp gain in the trajectory generator.
void cla_EST_setIdle(EST_Handle handle)
bool cla_EST_isTrajError(EST_Handle handle)
float_t fe_rps
the electrical frequency estimate, rad/sec
float_t EST_getSpeed_rpm(EST_Handle handle)
Gets the speed value in revolutions per second (rpm).
void EST_setRr_q_Ohm(EST_Handle handle, const float_t Rr_q_Ohm)
Sets the quadrature rotor resistance value used in the estimator in Ohm ( ).
void cla_EST_setMaxSpeedDelta_Hz(EST_Handle handle, const float_t maxSpeedDelta_Hz)
void cla_EST_incrCounter_isr(EST_Handle handle)
float_t cla_EST_getSpeed_ref_Hz(EST_Handle handle)
void cla_EST_getIdq_ref_A(EST_Handle handle, MATH_vec2 *pIdq_ref_A)
void cla_EST_setFlag_motorIdentified(EST_Handle handle, const bool state)
void EST_setRs_d_Ohm(EST_Handle handle, const float_t Rs_d_Ohm)
Sets the direct stator resistance value used in the estimator in Ohm ( ).
struct _EST_InputData_ EST_InputData_t
Defines the estimator (EST) input data.
bool EST_isIdle(EST_Handle handle)
Determines if the estimator is idle.
float_t EST_getLs_fineDelta_H(EST_Handle handle)
Gets the delta stator inductance value during fine estimation.
void cla_EST_setRr_fineDelta_Ohm(EST_Handle handle, const float_t Rr_fineDelta_Ohm)
float_t cla_EST_getRr_d_Ohm(EST_Handle handle)
float_t cla_EST_getLs_d_H(EST_Handle handle)
void cla_EST_getIdq_A(EST_Handle handle, MATH_vec2 *pIdq_A)
void cla_EST_setRoverL_rps(EST_Handle handle, const float_t RoverL_rps)
void EST_setSpeed_ref_Hz(EST_Handle handle, const float_t speed_ref_Hz)
Sets the reference speed in the estimator.
void EST_setRs_fineDelta_Ohm(EST_Handle handle, const float_t Rs_fineDelta_Ohm)
Sets the fine delta stator resistance value.
void cla_EST_setMinValue_Id_A(EST_Handle handle, const float_t minValue_A)
void cla_EST_setMaxCurrentDelta_A(EST_Handle handle, const float_t maxCurrentDelta_A)
bool cla_EST_updateState(EST_Handle handle, const float_t Id_target_A)
void cla_EST_enable(EST_Handle handle)
bool EST_getFlag_enable(EST_Handle handle)
Gets the enable estimator flag value.
void cla_EST_setRsOnLineLpFilterParams(EST_Handle handle, const EST_RsOnLineFilterType_e filterType, const uint_least8_t filterNumber, const float_t b0, const float_t b1, const float_t a1, const float_t x1, const float_t y1)
float_t EST_getMaxDelta_Id_A(EST_Handle handle)
Gets the maximum delta value from the Id trajectory generator.
float_t cla_EST_getFreqBeta_lp(EST_Handle handle)
MATH_vec2 Vab_V
the alpha/beta current values, V
bool EST_isTrajError(EST_Handle handle)
Determines if there is an error in the trajectory generator.
bool cla_EST_getFlag_enable(EST_Handle handle)
float_t cla_EST_getRs_Ohm(EST_Handle handle)
float_t cla_EST_getRs_d_Ohm(EST_Handle handle)
void EST_setFlag_enable(EST_Handle handle, const bool state)
Sets the enable estimator flag value in the estimator.
void cla_EST_getRr_dq_Ohm(EST_Handle handle, MATH_vec2 *pRr_dq_Ohm)
float_t cla_EST_getIdRated_delta_A(EST_Handle handle)
bool cla_EST_getFlag_enableTraj(EST_Handle handle)
void EST_setFe_rps(EST_Handle handle, const float_t fe_rps)
Sets the electrical frequency in the estimator.
void EST_setMaxValue_Id_A(EST_Handle handle, const float_t maxValue_A)
Sets the maximum value in the Id trajectory generator.
float_t cla_EST_getMinValue_Iq_A(EST_Handle handle)
EST_Traj_State_e EST_getTrajState(EST_Handle handle)
Gets the trajectory generator state.
void EST_setMaxValue_Iq_A(EST_Handle handle, const float_t maxValue_A)
Sets the maximum value in the Iq trajectory generator.
float_t EST_getLs_coarseDelta_H(EST_Handle handle)
Gets the delta stator inductance value during coarse estimation.
void EST_setRs_dq_Ohm(EST_Handle handle, const MATH_vec2 *pRs_dq_Ohm)
Sets the direct/quadrature stator resistance values used in the estimator in Ohm ( )...
void cla_EST_getRs_dq_Ohm(EST_Handle handle, MATH_vec2 *pRs_dq_Ohm)
float_t EST_getMaxCurrentDelta_A(EST_Handle handle)
Gets the maximum current slope value used in the estimator in Amperes (A).
void cla_EST_setAngleDelta_est_rad(EST_Handle handle, const float_t delta_rad)
float_t EST_getMaxCurrentDelta_pw_A(EST_Handle handle)
Gets the maximum power warp current slope value used in the estimator in Amperes (A).
void cla_EST_setNumIsrTicksPerTrajTick(EST_Handle handle, const int_least16_t numIsrTicksPerTrajTick)
void cla_EST_setFreqBeta_lp(EST_Handle handle, const float_t beta_rad)
EST_ErrorCode_e cla_EST_getErrorCode(EST_Handle handle)
void cla_EST_setFlag_bypassLockRotor(EST_Handle handle, const bool state)
float_t EST_getPwGain(EST_Handle handle)
Gets the power warp gain from the trajectory generator.
void cla_EST_resetCounter_state(EST_Handle handle)
float_t EST_getIdRated_indEst_A(EST_Handle handle)
Gets the Id current value used for inductance estimation of induction motors in Ampere (A)...
void cla_EST_run(EST_Handle handle, const EST_InputData_t *pInputData, EST_OutputData_t *pOutputData)
float_t cla_EST_getAccel_rps2(EST_Handle handle)
float_t cla_EST_getRs_b_Ohm(EST_Handle handle)
bool cla_EST_getFlag_enableRsRecalc(EST_Handle handle)
bool cla_EST_getFlag_enableRsOnLine(EST_Handle handle)
void cla_EST_getRsOnLineLpFilterParams(EST_Handle handle, const EST_RsOnLineFilterType_e filterType, const uint_least8_t filterNumber, float_t *b0, float_t *b1, float_t *a1, float_t *x1, float_t *y1)
float_t cla_EST_getMaxDelta_spd_Hz(EST_Handle handle)
float_t cla_EST_computePower_W(EST_Handle handle)
void cla_EST_setLs_d_H(EST_Handle handle, const float_t Ls_d_H)
float_t EST_getRr_Ohm(EST_Handle handle)
Gets the rotor resistance value in Ohms ( ).
void cla_EST_setAngle_np1_rad(EST_Handle handle, const float_t angle_np1_rad)
void cla_EST_setFe_abs_max_rps(EST_Handle handle, const float_t fe_abs_max_rps)
void cla_EST_setRr_coarseDelta_Ohm(EST_Handle handle, const float_t Rr_coarseDelta_Ohm)
void EST_disable(EST_Handle handle)
Disables the estimator.
void cla_EST_disable(EST_Handle handle)
float_t EST_getMinValue_Iq_A(EST_Handle handle)
Gets the minimum value from the Iq trajectory generator.
int_least16_t cla_EST_getTrajCount_isr(EST_Handle handle)
void cla_EST_setTargetValue_Id_A(EST_Handle handle, const float_t targetValue_A)
float_t cla_EST_getMaxValue_Id_A(EST_Handle handle)
Contains the user related definitions.
float_t cla_EST_get_rpm_to_rps_sf(EST_Handle handle)
float_t EST_getFe_Hz(EST_Handle handle)
Gets the electrical frequency of the motor in Hertz (Hz).
float_t cla_EST_getIntValue_Id_A(EST_Handle handle)
bool cla_EST_getFlag_estComplete(EST_Handle handle)
float_t cla_EST_getIdRated_indEst_A(EST_Handle handle)
int_least16_t cla_EST_getCount_isr(EST_Handle handle)
void EST_setIdRated_delta_A(EST_Handle handle, const float_t IdRated_delta_A)
Sets the Id rated delta current value in the estimator in Ampere (A)
void EST_setRr_max_Ohm(EST_Handle handle, const float_t Rr_max_Ohm)
Sets the maximum rotor resistance maximum value for saturation.
float_t EST_getRs_fineDelta_Ohm(EST_Handle handle)
Gets the fine delta stator resistance value from the estimator.
bool cla_EST_getFlag_enablePowerWarp(EST_Handle handle)
int_least8_t direction
the rotational direction estimate, unitless
void cla_EST_setRr_dq_Ohm(EST_Handle handle, const MATH_vec2 *pRr_dq_Ohm)
void cla_EST_setMaxValue_spd_Hz(EST_Handle handle, const float_t maxValue_Hz)
void EST_setIntValue_spd_Hz(EST_Handle handle, const float_t intValue_Hz)
Sets the intermediate value in the speed trajectory generator.
float_t EST_getIntValue_spd_Hz(EST_Handle handle)
Gets the intermediate value from the speed trajectory generator.
void cla_EST_setLhf_H(EST_Handle handle, const float_t Lhf_H)
bool cla_EST_isTrajEnabled(EST_Handle handle)
void cla_EST_setIdq_ref_A(EST_Handle handle, const MATH_vec2 *pIdq_ref_A)
void EST_getVdq_V(EST_Handle handle, MATH_vec2 *pVdq_V)
Gets the Vdq voltage vector in Volts (V)
void cla_EST_setRsOnLineAngle_rad(EST_Handle handle, const float_t angle_rad)
Defines the estimator (EST) output data.
bool EST_getFlag_enableRsRecalc(EST_Handle handle)
Gets the enable stator resistance re-calibrate flag value from the estimator.
void cla_EST_setMaxValue_Id_A(EST_Handle handle, const float_t maxValue_A)
float_t cla_EST_getMaxDelta_Id_A(EST_Handle handle)
void EST_resetCounter_isr(EST_Handle handle)
Resets the isr counter.
EST_RsOnLineFilterType_e
Enumeration for the Rs online filter types.
void EST_setMaxSpeedDelta_Hz(EST_Handle handle, const float_t maxSpeedDelta_Hz)
Sets the maximum speed delta value during estimation.
float_t cla_EST_getFe_abs_max_rps(EST_Handle handle)
void EST_setRs_coarseDelta_Ohm(EST_Handle handle, const float_t Rs_coarseDelta_Ohm)
Sets the coarse delta stator resistance value.
float_t cla_EST_getPwGain(EST_Handle handle)
bool EST_updateTrajState(EST_Handle handle)
Updates the trajectory generator state.
MATH_vec2 Edq_V
the direction/quadrature back-EMF estimates, V
float_t EST_getMinValue_spd_Hz(EST_Handle handle)
Gets the minimum value from the speed trajectory generator.
void EST_setFe_Hz(EST_Handle handle, const float_t fe_Hz)
Sets the electrical frequency in the estimator.
float_t fm_rps
the mechanical frequency estimate, rad/sec
bool EST_getFlag_bypassLockRotor(EST_Handle handle)
Gets the bypass lock rotor flag value.
bool EST_getFlag_enableTraj(EST_Handle handle)
Gets the enable trajectory flag value from the trajectory generator.
void EST_setFlag_bypassLockRotor(EST_Handle handle, const bool state)
Sets the bypass lock rotor flag value in the estimator.
float_t cla_EST_getLs_q_H(EST_Handle handle)
float float_t
Defines the portable data type for 32 bit, signed floating-point data.
int_least16_t EST_getNumIsrTicksPerTrajTick(EST_Handle handle)
Gets the number of Interrupt Service Routine (ISR) clock ticks per estimator trajectory clock tick...
float_t cla_EST_getTargetValue_Id_A(EST_Handle handle)
float_t EST_getLmag_H(EST_Handle handle)
Gets the magnetizing inductance value in Henry (H).
int_least8_t EST_getSignOfDirection(EST_Handle handle)
Gets the sign of the direction value in 8 bit signed integer (int_least8_t).
float_t cla_EST_getFslip_Hz(EST_Handle handle)
int_least16_t EST_getTrajCount_isr(EST_Handle handle)
Gets the trajectory ISR count from the estimator.
void cla_EST_setCount_state(EST_Handle handle, const int_least32_t value)