3.4.8 tmcRpc_Parameters_s Struct
C
/* Rotor Position Calculation (RPC) module parameter structure */ typedef struct { tmcMot_PMSM_s * pMotorParameters; /* Motor parameters structure */ float32_t dt; /* Time step or Sample time */ <#if MCPMSMFOC_CONTROL_TYPE == 'POSITION_LOOP' > uint8_t gearRatio; /* Coversion factor is used for calculating mechanical angle */ </#if> uint16_t velocityCountPrescaler; /* Prescaler value is used for velocity calculation */ /** Encoder parameters */ uint16_t encPulsesPerElecRev; /* The number of encoder pulses per electrical revolution */ uint16_t encPulsePerMechRev; /* The number of encoder pulses per mechanical revolution */ void * pStatePointer; /* A pointer to the state structure */ }tmcRpc_Parameters_s;
Summary
Rotor Position Calculation (RPC) module parameter structure.
Description
This structure holds the necessary parameters for Rotor Position Calculation (RPC) module. It includes references to motor-specific parameters, encoder configuration, and control timing
Remarks
None.