ev3dev / ev3dev-lang-python-demo

Python Demo Programs
MIT License
60 stars 28 forks source link

Attribute `connected` is no longer available for motors #41

Closed loopspace closed 5 years ago

loopspace commented 5 years ago

I noticed this in the code for the MINDCUB3R, specifically in mindcuber.py lines 71-73 there is reference to the connected attribute of the various motors.

Section 6.1.2 of the documentation says that this attribute no longer exists. Commenting out these lines certainly makes it work (though perhaps the check for connection should still happen somewhere, perhaps by testing for the exception when the motors are initialised).

A quick grep of the code suggests that this also affects EV3D4, EV3RSTORM, and TRACK3R.

dwalton76 commented 5 years ago

all fixed