Skip to content

Best way to drive motors to absolute position #785

Description

@IanLewis42
  • ev3dev version: 1.0.19(0.48/3/2)
  • ev3dev-lang-python version: | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name Version Architecture Description
    +++-==============-============-============-=================================
    ii micropython-ev 2.1.0 all Python language bindings for ev3d
    ii python3-ev3dev 1.2.0 all Python language bindings for ev3d
    ii python3-ev3dev 2.1.0 all Python language bindings for ev3d

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions