ev3dev / ev3dev-lang-python

Pure python bindings for ev3dev
MIT License
422 stars 146 forks source link

Best way to drive motors to absolute position #785

Open IanLewis42 opened 1 year ago

IanLewis42 commented 1 year ago

Hi,

I'm trying to drive large EV3 motors to absolute positions. I've been reading the docs here but there seem to be multiple ways to do it.

What is the difference between : run_to_abs_pos(**kwargs) and on_to_position(speed, position, brake=True, block=True)

and how do these relate to the command: COMMAND_RUN_TO_ABS_POS = 'run-to-abs-pos'

Thanks,

Ian.