1 #ifndef __SPINTAC_VEL_ID_H__
2 #define __SPINTAC_VEL_ID_H__
304 #endif //__SPINTAC_VEL_ID_H__
static void STVELID_setEnable(ST_VELID_Handle handle, bool enb)
Sets the Enable signal (ENB) for SpinTAC Velocity Identify.
ST_VelIdStatus_e
Enumeration for the Velocity Identify Status states.
static _iq24 STVELID_getInertiaEstimate(ST_VELID_Handle handle)
Gets the System Inertia (InertiaEst) from SpinTAC Velocity Identify.
Defines the ST_VelId_t data.
static void STVELID_setGoalSpeed(ST_VELID_Handle handle, _iq24 goalSpeed)
Sets the Goal Speed of inertia identification (cfg.GoalSpeed) for SpinTAC Velocity Identify...
_iq24 Out
control output { unit: [PU], value range: [-cfg.OutMax, cfg.OutMax] }
static void STVELID_setSensorlessFeedback(ST_VELID_Handle handle, bool sensorless)
Sets the feedback type (cfg.Sensorless) for SpinTAC Velocity Identify.
void STVELID_run(ST_VELID_Handle handle)
Runs the SpinTAC Identify function.
static uint16_t STVELID_getErrorID(ST_VELID_Handle handle)
Gets the Error value (ERR_ID) for SpinTAC Velocity Identify.
ST_VelIdStatus_e STATUS
Status { ST_VEL_ID_IDLE, ST_VEL_ID_INIT, ST_VEL_ID_BUSY }.
static void STVELID_setLowPassFilterTime_tick(ST_VELID_Handle handle, int16_t lpfTime)
Sets the Low Pass Filter Time Constant (cfg.LpfTime_tick) for SpinTAC Velocity Identify.
_iq24 FrictionEst
Friction Coefficient { unit: [PU/(pu/s)], value range: positive _IQ24 value }.
Velocity Identify is in idle state, zero output.
bool ENB
Enable bit { false: enable; true: disable }.
_iq24 RampTime_sec
Torque acceleration ramp time { unit [s], value range: [T_sec, 25.0] }.
static void STVELID_setOutputMaximum(ST_VELID_Handle handle, _iq24 outMax)
Sets the Maximum Output (cfg.OutMax) for SpinTAC Velocity Identify.
static ST_VelIdStatus_e STVELID_getStatus(ST_VELID_Handle handle)
Gets the Status value (STATUS) for SpinTAC Velocity Identify.
static _iq24 STVELID_getTorqueRampTime_sec(ST_VELID_Handle handle)
Gets the Torque Ramp Time (cfg.RampTime_sec) for SpinTAC Velocity Identify.
Velocity Identify is in init state, validating configured parameters.
static _iq24 STVELID_getGoalSpeed(ST_VELID_Handle handle)
Gets the Goal Speed of inertia identification (cfg.GoalSpeed) for SpinTAC Velocity Identify...
Velocity Identify is in busy state, identifying system inertia.
_iq24 TimeOut_sec
Maximum time allowed for inertia estimation process { unit: [s], value range: [1.0, 10.0] }.
struct _ST_VELID_Handle_ * ST_VELID_Handle
static void STVELID_setTimeOut_sec(ST_VELID_Handle handle, _iq24 timeOut)
Sets the Time Out Time (cfg.TimeOut_sec) for SpinTAC Velocity Identify.
Public interface, object, and function definitions related to the SpinTAC Version object...
static void STVELID_setVelocityFeedback(ST_VELID_Handle handle, _iq24 velFdb)
Sets the Velocity Feedback (VelFdb) for SpinTAC Velocity Identify.
int16_t LpfTime_tick
Low pass filter ISR ticks { unit: [ticks], value range: [1, 100] }.
ST_VelIdCfg_t cfg
Configuration substructure.
_iq24 T_sec
Sample time { unit: [s], value range: (0.0, 0.01] }.
static bool STVELID_getEnable(ST_VELID_Handle handle)
Gets the Enable signal (ENB) for SpinTAC Velocity Identify.
_iq24 GoalSpeed
Speed to reach in inertia estimation { unit: [pu/s], value range: (0, 1.0] }.
bool Sensorless
Indicates if the FOC is using a sensorless estimator.
_iq24 OutMax
Control signal limit { unit: [PU], value range: (0, 1.0] }.
static void STVELID_setTorqueReference(ST_VELID_Handle handle, _iq24 out)
Sets the Torque (Iq) Reference (Out) for SpinTAC Velocity Identify.
static _iq24 STVELID_getFrictionEstimate(ST_VELID_Handle handle)
Gets the System Friction (FrictionEst) from SpinTAC Velocity Identify.
_iq24 VelFdb
Velocity feedback { unit: [pu/s], value range: [-1.0, 1.0] }.
Defines the ST_VelIdCfg_t data.
static void STVELID_setTorqueRampTime_sec(ST_VELID_Handle handle, _iq24 rampTime)
Sets the Torque Ramp Time (cfg.RampTime_sec) for SpinTAC Velocity Identify.
ST_VELID_Handle STVELID_init(void *pMemory, const size_t numBytes)
Initializes the SpinTAC Velocity Identify object.
_iq24 InertiaEst
Estimated Inertia { unit: [PU/(pu/s^2)], value range: positive _IQ24 value }.
static _iq24 STVELID_getTorqueReference(ST_VELID_Handle handle)
Gets the Torque (Iq) Reference value (Out) from SpinTAC Velocity Identify.
static void STVELID_setSampleTime_sec(ST_VELID_Handle handle, _iq24 sampleTime)
Sets the Sample Time (cfg.T_sec) for SpinTAC Velocity Identify.
uint16_t ERR_ID
Error ID { 0: no error; others: see error code }.