Jump to main content

##

# 3.3.18.3 mcFlxI_FluxControlManual

## C

    /* Floating point Flux control - Manual/ Tracking mode */
    void mcFlxI_FluxControlManual(const tmcFlx_Parameters_s * const pParameters,
                                                             const float32_t  Out )

    /* Fixed point Flux control - Manual/ Tracking mode */
    void mcFlxI_FluxControlManual(  const tmcFlx_Parameters_s * const pParameters,
                                                             const int16_t  Out )

## Summary

Performs the Flux control - Manual/ Tracking mode

## Description

This function updates the flux control module output to a specified value in manual mode. Depending on the system state, it either sets the PI controller output to the desired value or resets the PI controller.

## Precondition

None.

## Parameters

Param | Description
--- | ---
pParameters | A pointer to the flux control module parameter structure.
Out | Output value for manual control. Please refer the generated header for the exact data type.

## Returns

None

## Example

    // Define the flux module data structure
    tmcFlx_Parameters_s fluxParameters;

    // Define the parameters for floating point flux control loop
    float32_t uDref = 0.2f;

    // Define the parameters for fixed point flux control loop
    int16_t uDref = 2;

    /* Flux control - Manual/ Tracking mode */
    mcFlxI_FluxControlManual(&fluxParameters, uDref);

## Remarks

Refer the generated header file for the exact function signature.