Calibration for sensor fusion

Hi!
I tried to follow the instructions for sensor fuision calibration at: https://mbientlab.com/tutorials/Calibration.html
I think the guide is good but when running the python script at: https://github.com/mbientlab/MetaWear-SDK-Python/blob/master/examples/calibrate.py, I firstly got an error that "FnVoid_VoidP_VoidP_CalibrationDataP" was not defined so I ran: https://github.com/mbientlab/MetaWear-SDK-Cpp/blob/master/bindings/python/mbientlab/metawear/cbindings.py
This seemed to solve that error since the calibration readings started to stream. The trouble now is when I get "state: {accelerometer : 3 gyroscope : 3 magnetometer : 3}, after following the calibration movements, I get this error:
AttributeError: function 'mbl_mw_sensor_fusion_read_calibration_data' not found
I have tried this with two different MetaMotionR, both updated to the latest firmware (1.4.4) and hardware 0.2 and 0.3.
I have the metawear python SDK and community developed pymetawear installed without any other issues experienced with the packages.

Does anyone have an idea how to fix this?
I've tried to search for this without any progress
Thank you.

Comments

  • What version of the metawear package are you using?

  • edited February 11
    C:\windows\system32>pip show metawear Name: metawear Version: 0.5.0 Summary: Python bindings for the MetaWear C++ SDK by MbientLab Home-page: https://github.com/mbientlab/MetaWear-SDK-Python Author: MbientLab Author-email: hello@mbientlab.com License: UNKNOWN Location: c:\programdata\anaconda3\lib\site-packages Requires: requests, warble Required-by: pymetawear
    
  • @thorssonmax said:
    C:\windows\system32>pip show metawear Name: metawear Version: 0.5.0 Summary: Python bindings for the MetaWear C++ SDK by MbientLab Home-page: https://github.com/mbientlab/MetaWear-SDK-Python Author: MbientLab Author-email: hello@mbientlab.com License: UNKNOWN Location: c:\programdata\anaconda3\lib\site-packages Requires: requests, warble Required-by: pymetawear

    Please double and adjust your post's formatting if it results in a post that looks like your previous post.

    Version 0.5.0 was released 6 months ago. Update the metawear package.

  • Yes, It seems to work now. Thank you. Still strange since I installed it with pip 3 weeks ago. I guess it can be because of the pymetawear package that seems to downgrade it to 0.5.0.

Sign In or Register to comment.