Skip to content
This repository has been archived by the owner on Nov 23, 2019. It is now read-only.

absolute IMU class, fails to find ports in new version of ev3dev #76

Open
Horsevad opened this issue Oct 3, 2017 · 1 comment
Open

Comments

@Horsevad
Copy link

Horsevad commented Oct 3, 2017

When trying to generate an instance of class AbsoluteIMU, you can only specify the port as an integer value, and then it checks in /sys/class / ... uevent for LEGO_ADDRESS=in2' but the port name for an the absolute IMU-ACG sensor from mindsensors mounts on port in2:i2c17 or something like this.

Thus the code breaks, when trying to make the sensor. A quick fix is to use .startswith() instead of an exact match.

@Horsevad
Copy link
Author

Horsevad commented Oct 3, 2017

The problem occurs in ev3dev.py around line 229 - 258

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant