access data stream in reatime
hi
is it possible to access the data i am streaming while streaming it?
for example:
libmetawear.mbl_mw_sensor_fusion_set_mode(s.device.board, SensorFusionMode.NDOF)
libmetawear.mbl_mw_sensor_fusion_write_config(s.device.board)
signal = libmetawear.mbl_mw_sensor_fusion_get_data_signal(s.device.board, SensorFusionData.EULER_ANGLE)
libmetawear.mbl_mw_datasignal_subscribe(signal, None, s.callback)
libmetawear.mbl_mw_sensor_fusion_enable_data(s.device.board, SensorFusionData.EULER_ANGLE)
print("%s" % (s.callback))
libmetawear.mbl_mw_sensor_fusion_start(s.device.board)
this with the data_handler will output the timestamp and euler angles.
but lets say i want with each angle output to check live whether the angle is above 50? how can i access that data while streaming?
Comments
Yes
Use our APIs, specifically the data processor: https://mbientlab.com/cppdocs/latest/dataprocessor.html