Jump to main content

##

# 3.3.16 tmcFoc_FocState_e Enum

## C

    typedef enum
    {

    <#if ( MCPMSMFOC_POSITION_CALC_ALGORITHM != 'SENSORED_ENCODER' ) && ( MCPMSMFOC_ENABLE_FLYING_START == true ) >
        FocState_FlyingStart,   /* State for flying start */
    </#if>
        FocState_Startup,       /* The FOC module is in the startup state */
        FocState_ClosingLoop,   /* The FOC module is transitioning to closed-loop control */
        FocState_CloseLoop      /* The FOC module is operating in closed-loop control */
    }tmcFoc_FocState_e;

## Summary

Defines the enum for FOC module current state.

## Description

This enumeration defines the possible states of the Field Oriented Control (FOC) system.

## Remarks

None.