mbl_mw_datasignal_get_component for Sensor Fusion Data
Hi there,
I was wondering whether it's possible to use the mbl_mw_datasignal_get_component method to receive a single-valued datasignal from a sensor fusion data signal.
Specifically, we have the following code (using the python bindings for C++):
euler_signal = libmetawear.mbl_mw_sensor_fusion_get_data_signal(
device.board, SensorFusionData.EULER_ANGLE)
euler_pitch_signal = libmetawear.mbl_mw_datasignal_get_component(
euler_signal, 1)
The euler_pitch_signal is always None, so I assume this is not working with MblMwEulerAngles
Is there some other way to achieve this? We would need a single-value signal to utilize the onboard dataprocessors
Comments
Unfortunately this is not possible for sensor fusion signals. You need to receive all parts of the euler angles (roll, pitch, yaw) and then just post-process it (delete the value you don't need).