SPRUHJ1I January 2013 – October 2021 TMS320F2802-Q1 , TMS320F28026-Q1 , TMS320F28026F , TMS320F28027-Q1 , TMS320F28027F , TMS320F28027F-Q1 , TMS320F28052-Q1 , TMS320F28052F , TMS320F28052F-Q1 , TMS320F28052M , TMS320F28052M-Q1 , TMS320F28054-Q1 , TMS320F28054F , TMS320F28054F-Q1 , TMS320F28054M , TMS320F28054M-Q1 , TMS320F2806-Q1 , TMS320F28062-Q1 , TMS320F28062F , TMS320F28062F-Q1 , TMS320F28068F , TMS320F28068M , TMS320F28069-Q1 , TMS320F28069F , TMS320F28069F-Q1 , TMS320F28069M , TMS320F28069M-Q1
The primary function is STVELID_run(ST_VELID_Handle handle), where handle is the pointer to a specific ST_VelId_t object. This function needs to be called at the configured sample rate.
void STVELID_run(ST_VELID_Handle handle)
Parameters:
| No. | Type | Parameters | Description |
|---|---|---|---|
| 1 | ST_VELID_Handle | handle | The pointer to a ST_VelId_t object |
The state transition map is shown in Figure 4-12.
Figure 3-12 SpinTAC™ Velocity Identify State Transition MapThe state transitions of Inertia Identify are described in Table 4-13.
| From State | To State | Transition Condition | Action |
|---|---|---|---|
| IDLE |
|
||
| INIT | RES == false AND ENB is on rising edge AND ERR_ID == 0 | ||
| INIT | Parameter validation
|
||
| IDLE | ERR_ID != 0 | Set ENB = false | |
| BUSY | ERR_ID == 0 | ||
| BUSY | Produce torque profile and monitor velocity feedback
|
||
| IDLE | RES == true OR ENB == false OR DON == true OR ERR_ID != 0 |
|