def toggle_sampling(self, enabled=True): """Enables or disables sensor fusion sampling. :param bool enabled: Desired state of the sensor fusion module. """ if enabled: for data_source in self._streams_to_enable: if self._streams_to_enable[data_source]: libmetawear.mbl_mw_sensor_fusion_enable_data( self.board, data_source) else: libmetawear.mbl_mw_sensor_fusion_clear_enabled_mask(self.board)
def toggle_sampling(self, enabled=True): """Enables or disables sensor fusion sampling. :param bool enabled: Desired state of the sensor fusion module. """ if enabled: for data_source in self._streams_to_enable: if self._streams_to_enable[data_source]: libmetawear.mbl_mw_sensor_fusion_enable_data( self.board, data_source) else: libmetawear.mbl_mw_sensor_fusion_clear_enabled_mask( self.board)