I am trying to modify lab5f for my requirement and am not clear as to why following lines are used
All lines in proj_lab05.c
1.line 278 -> CTRL_setFlag_enableSpeedCtrl(ctrlHandle, false); why current loop reference is killed?
2.line 287 -> gCounter_updateGlobals++; why is this variable used?
3.Lines 367 to 373 -> what is the purpose of these lines?
if((CTRL_getFlag_enableUserMotorParams(ctrlHandle) == true) &&
(ctrlState > CTRL_State_Idle) &&
(gMotorVars.CtrlVersion.minor == 6))
{
// call this function to fix 1p6
USER_softwareUpdate1p6(ctrlHandle);
}
There are also couple of codes which are unclear further, is there a proper flowchart explanation of the same anywhere?