3.3.25.4 mcTorI_TorqueControlManual

C

/* Torque control - manual mode : floating point version  */
void mcTorI_TorqueControlManual(  const tmcTor_Parameters_s * const pParameters,
                                                         const float32_t  Out )	

/* Torque control - manual mode : fixed point version  */
void mcTorI_TorqueControlManual(  const tmcTor_Parameters_s * const pParameters,
                                                         const int16_t  Out )

Summary

Performs torque control in manual mode.

Description

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

Precondition

None.

Parameters

ParamDescription
pParametersA pointer to the torque control module parameter structure.
OutOutput value for manual control. Please refer the generated header for the exact data type.

Returns

None

Example

// Define the torque module data structure
tmcTor_Parameters_s torqParameters;

// Define the parameters for floating point torque control loop
float32_t outputValue = 0.2f;

// Define the parameters for fixed point torque control loop
int16_t outputValue = 2;

/* Torque control - manual mode */
mcTorI_TorqueControlManual(&torqParameters, outputValue);
    

Remarks

Refer the generated header file for the exact function signature.