use atomic counter for end of move flag to avoid more race conditions
reset fx_counter if the motor is not going to get any more ticks