Skip to content

blocking issue on motor runs on ev3dev2 (maybe ev3dev too) #558

Closed

Description

@omartin2010
  • ev3dev version: 4.14.71-ev3dev-2.3.0-rpi2
  • ev3dev-lang-python version:
Desired=Unknown/Install/Remove/Purge/Hold
| 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  python3-ev3dev2             2.0.0~beta2        all                Python language bindings for ev3dev

So running m.on_for_degrees(-30, 90, block=True) works on the Lego brick (returning control when position is reached) and the same command on the Dexter brick doesn't return control. The code for repro is :

from ev3dev2.motor import LargeMotor, OUTPUT_A, SpeedPercent
m = LargeMotor(OUTPUT_A)
m.on_for_degrees(SpeedPercent(10), 180, block = True)

This will be stuck forever on the dexter (polling issue?) but not on the lego brick. We can repro on 2 different Dexter devices with EV3 and NXT.

Activity

  1. WasabiFan commented on Nov 6, 2018

    @WasabiFan
    Member

    @dwalton76 Do you have a BrickPi you can test this on?

  2. omartin2010 commented on Nov 6, 2018

    @omartin2010
    ContributorAuthor

    adding @lynn-orell

  3. dwalton76 commented on Nov 6, 2018

    @dwalton76
    Collaborator

    This should get fixed via #548

  4. WasabiFan commented on Nov 6, 2018

    @WasabiFan
    Member

    Ah, I had forgotten about that one; thanks for staying on top of it! I just edited the PR description to link back with fixes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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