Other Parts Discussed in Thread: MOTORWARE
Hi,
I don't know how to handle errors from the CTRL module. In the labs example, the only thing I can find is :
if(CTRL_isError(ctrlHandle))
{
// set the enable controller flag to false
CTRL_setFlag_enableCtrl(ctrlHandle,false);
// set the enable system flag to false
gMotorVars.Flag_enableSys = false;
// disable the PWM
DRV_disablePwm(drvHandle);
}
So the motor is stopped if there is an error but what's happen if we want to try to restart after several seconds? Do I need to clear the error state? Or perhaps those errors are not clearable and I need to power off the board?
Is there a doc wich explain this (The user guide is quite light)?
Regards.
Emmanuel
