3.3.6 mcFocI_FieldOrientedControlReset
C
/* Reset Field Oriented Control (FOC) module */
void mcFocI_FieldOrientedControlReset( const tmcFocI_ModuleData_s * const pParameters )
Summary
Resets the Field Oriented Control (FOC) module.
Description
This function resets all the control modules used in the Field Oriented Control (FOC) system. It resets the reference control, speed control, torque control, flux control, rotor position estimation, and PWM modulation modules to their default states.
Precondition
None.
Parameters
Param | Description |
---|---|
pParameters | A pointer to the module data structure which contains the parameters and state variables for the FOC module. |
Returns
None
Example
// Define the FOC module data structure
tmcFocI_ModuleData_s mcFocI_ModuleData_gds;
// Reset the FOC module
mcFocI_FieldOrientedControlReset( &mcFocI_ModuleData_gds);;
Remarks
None.