something missing when calculating Analog values?

the prints give me analog_val then "Moving Stepper into position:" and the TravelA value (which is now correct). Also the drive enables on initial reading and stays enabled while it keeps reading every 10 seconds.