87 #ifndef FOC_INCLUDE_HALL_ESTIMATOR_H_ 88 #define FOC_INCLUDE_HALL_ESTIMATOR_H_ 91 #include <ti/iqmath/include/IQmathLib.h> 102 #define HALL_SPEED_FILTER_CONST _IQ(0.005) 104 #define HALL_ANGLE_MASK 0x7FFFFFF 106 #define HALL_ANGLE_OVERFLOW_MASK 0xF8000000 uint16_t * pHallIndex
Definition: hallEstimator.h:195
uint16_t hallIndex
Definition: hallEstimator.h:137
void hallAngleInit(HALL_ESTIMATOR_OBJ_T *pHallHandle)
Hall Angle Finit.
Definition: hallEstimator.c:92
bool stallDetectEn
Definition: hallEstimator.h:193
int32_t hallNextIndexAngle
Definition: hallEstimator.h:159
int32_t hallEstimFluxAngle
Definition: hallEstimator.h:157
const int32_t * pDeltaT
Definition: hallEstimator.h:126
int32_t hallEstimSpeedFilt
Definition: hallEstimator.h:155
uint16_t hallDirection
Definition: hallEstimator.h:147
Sine cosine structure.
Definition: mcLib.h:160
bool hallSectorChange
Definition: hallEstimator.h:165
uint16_t hallIndexNext[MAX_HALL_INDEX]
Definition: hallEstimator.h:145
MC_SINCOS_T prevSinCos
Definition: hallEstimator.h:173
Hall Invalid Stall structure.
Definition: hallEstimator.h:190
const uint8_t * pHallSectorPerRev
Definition: hallEstimator.h:135
struct HALL_ESTIMATOR_OBJ_T HALL_ESTIMATOR_OBJ_T
Hall Estimator structure.
Motor Control Library Module.
int32_t sinErr
Definition: hallEstimator.h:176
uint32_t gainEst
Definition: hallEstimator.h:185
int32_t hallEstimVelocityFilt
Definition: hallEstimator.h:153
void hallAngleEstimRun(HALL_ESTIMATOR_OBJ_T *pHallHandle)
Hall Angle Estimator run.
Definition: hallEstimator.c:107
uint16_t hallSectorCount
Definition: hallEstimator.h:167
int32_t freqTs
Definition: hallEstimator.h:179
Library of IQMath operations.
uint32_t hallSpeedPWMCount
Definition: hallEstimator.h:141
MC_SINCOS_T sinCos
Definition: hallEstimator.h:170
const int32_t ** pFOCAngle
Definition: hallEstimator.h:133
HALL_State_e hallState
Definition: hallEstimator.h:161
HAL interface for FOC Module.
int32_t * pThetaHallIndexPU
Definition: hallEstimator.h:123
int32_t hallForcedAngleRun(HALL_ESTIMATOR_OBJ_T *pHallHandle)
Hall Angle Forced open Loop run.
Definition: hallEstimator.c:99
HAL_MEASURE_HALL_HANDLE_T * pHALLIntHandle
Definition: hallEstimator.h:163
int32_t hallEstimVelocity
Definition: hallEstimator.h:149
Definition: hallEstimator.h:114
struct HALL_INVALID_STALL_DETECT_T HALL_INVALID_STALL_DETECT_T
Hall Invalid Stall structure.
bool hallInvalidStallDetectRun(uint16_t *pHallSector)
Invalid Hall Check.
Definition: hallEstimator.c:103
int32_t hallVelFiltConst
Definition: hallEstimator.h:151
Hall Estimator structure.
Definition: hallEstimator.h:120
Measure Hall Index.
Definition: measure.h:342
uint16_t hallIndexPrev
Definition: hallEstimator.h:139
Definition: hallEstimator.h:112
HALL_State_e
Hall State Enumeration.
Definition: hallEstimator.h:109
const int32_t * pTargetVelocity
Definition: hallEstimator.h:130
int32_t hallSpeedPWMRatio
Definition: hallEstimator.h:143
void hallSinCosEstim(MC_SINCOS_T *pFOCSinCos, HALL_ESTIMATOR_OBJ_T *pHallHandle)
Hall Angle Estim - Sine & Cosine.
Definition: hallEstimator.c:188
Definition: hallEstimator.h:116
#define MAX_HALL_INDEX
Definition: measure.h:106
int32_t omegaTs
Definition: hallEstimator.h:182