Hi Rakesh,
Is index_temp set to 0 as the loop is entered? If so, this could be part of your problem.
The value of index_temp should be kept after rotate_motor completes. This will allow the current waveform to continue from its previous state.
Is index_temp set to 0 as the loop is entered? If so, this could be part of your problem.
The value of index_temp should be kept after rotate_motor completes. This will allow the current waveform to continue from its previous state.