I have a segment of code in python 3.7 that I'm trying to run on a timer that includes:
Code: Select all
stepper1.setTargetPosition(stepper1_targetposition)
stepper2.setTargetPosition(stepper2_targetposition)
I'd like to run this code on a timer every 0.01 second. Does anyone know of a way to do so? Is it possible to actually change the target position of my stepper every 0.01 second?
I've played around with
Code: Select all
setTargetPosition_async()
Thanks!
--Josh