I am working on the application in Instaspin library where in user needs a very quick star which means I need to avoid offsert and resistance calculation part. I can do offset calculation once during startup and then use CTRL-setFlag_EnableOffset() function to stop offset recalculation. However, During run time if the motor is disabled by clearing gMotorVars.Flag_enableSys flag and then the motor is enabled again by setting gMotorVars.Flag_enableSys flag, will the offset values picked up during startup be still valid? if yes, then when motor is off if the DC voltage drifts, will the voltage offset still valid or will the offset recalibration needed again?
Finally can I use the HAL_disablePwm(halHandle); and set motorspeed to zero to disable motor rather than gMotorVars.Flag_enableSys flag so that offset calculation is not triggered....