type_id removed from msensor class in ev3dev
Closed this issue · 1 comments
I tried to run python-ev3 on ev3dev-jessie-2014-10-07, but found issues with the motors and the sensors. I've seen that the motors issue has been adressed already.
The problem with the sensors arises because the type_id has been removed from the msensor class in ev3dev. See ev3dev/ev3-kernel@c52a450 for the description. The type_id has been replaced by the name attribute.
I managed to fix the issue by removing type_id from lego.py and ev3dev.py, and replacing it by name. The numeric id's have been replaced by the corresponding strings found in the name attribute. E.g. the gyro sensor identifies itself as "ev3-uart-32".
If someone is interested I can sent him or her my changed files.
fixed in the new python-ev3. Please easy_install the new release.