DrWino Geschrieben August 10, 2017 at 17:37 Share Geschrieben August 10, 2017 at 17:37 I am using python on red board to get data from brick imu v2. It works fine but I want to set the sensor fusion mode to 2 ( no magnetometer) But I get following error: File "server_v2.py", line 23, in <module> mode = imu.get_sensor_fusion_mode() AttributeError: BrickIMUV2 instance has no attribute 'get_sensor_fusion_mode' Exception in thread Callback-Processor (most likely raised during interpreter shutdown): What am I doing wrong ? program attached. Help appreciated.server_v2.py Zitieren Link zu diesem Kommentar Share on other sites More sharing options...
borg Geschrieben August 10, 2017 at 18:00 Share Geschrieben August 10, 2017 at 18:00 What version do the python bindings have? What version does the IMU firmware have? Since the function does not seem to be available, the bindings version is probably too old. Zitieren Link zu diesem Kommentar Share on other sites More sharing options...
DrWino Geschrieben August 10, 2017 at 21:10 Autor Share Geschrieben August 10, 2017 at 21:10 Ok. imu brick is FW 2.0.4 Red binding python is 2.1.8 Zitieren Link zu diesem Kommentar Share on other sites More sharing options...
borg Geschrieben August 10, 2017 at 22:02 Share Geschrieben August 10, 2017 at 22:02 Both versions are too old, please update! You can find the minimum firmware version in the API documentation and the minimum Bindings version in the changelog. The minimum versions for the get_sensor_fusion_mode are 2.0.6 and 2.1.11 respectively. Zitieren Link zu diesem Kommentar Share on other sites More sharing options...
DrWino Geschrieben August 11, 2017 at 02:58 Autor Share Geschrieben August 11, 2017 at 02:58 OK. I performed the updates and the program works fine now. Thanks. Zitieren Link zu diesem Kommentar Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.