sensor-sdk 0.2.1__tar.gz → 0.2.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {sensor_sdk-0.2.1/sensor_sdk.egg-info → sensor_sdk-0.2.3}/PKG-INFO +1 -1
- {sensor_sdk-0.2.1 → sensor_sdk-0.2.3}/sensor/sensor_data_context.py +15 -1
- {sensor_sdk-0.2.1 → sensor_sdk-0.2.3/sensor_sdk.egg-info}/PKG-INFO +1 -1
- {sensor_sdk-0.2.1 → sensor_sdk-0.2.3}/setup.py +1 -1
- {sensor_sdk-0.2.1 → sensor_sdk-0.2.3}/LICENSE.txt +0 -0
- {sensor_sdk-0.2.1 → sensor_sdk-0.2.3}/README.md +0 -0
- {sensor_sdk-0.2.1 → sensor_sdk-0.2.3}/sensor/__init__.py +0 -0
- {sensor_sdk-0.2.1 → sensor_sdk-0.2.3}/sensor/bleak_host.py +0 -0
- {sensor_sdk-0.2.1 → sensor_sdk-0.2.3}/sensor/bleak_no_ack_patch.py +0 -0
- {sensor_sdk-0.2.1 → sensor_sdk-0.2.3}/sensor/bleak_process.py +0 -0
- {sensor_sdk-0.2.1 → sensor_sdk-0.2.3}/sensor/fb/DataType.py +0 -0
- {sensor_sdk-0.2.1 → sensor_sdk-0.2.3}/sensor/fb/Sample.py +0 -0
- {sensor_sdk-0.2.1 → sensor_sdk-0.2.3}/sensor/fb/SensorData.py +0 -0
- {sensor_sdk-0.2.1 → sensor_sdk-0.2.3}/sensor/fb/__init__.py +0 -0
- {sensor_sdk-0.2.1 → sensor_sdk-0.2.3}/sensor/gforce.py +0 -0
- {sensor_sdk-0.2.1 → sensor_sdk-0.2.3}/sensor/sdk_log.py +0 -0
- {sensor_sdk-0.2.1 → sensor_sdk-0.2.3}/sensor/sensor_controller.py +0 -0
- {sensor_sdk-0.2.1 → sensor_sdk-0.2.3}/sensor/sensor_data.py +0 -0
- {sensor_sdk-0.2.1 → sensor_sdk-0.2.3}/sensor/sensor_data_pool.py +0 -0
- {sensor_sdk-0.2.1 → sensor_sdk-0.2.3}/sensor/sensor_device.py +0 -0
- {sensor_sdk-0.2.1 → sensor_sdk-0.2.3}/sensor/sensor_profile.py +0 -0
- {sensor_sdk-0.2.1 → sensor_sdk-0.2.3}/sensor/sensor_utils.py +0 -0
- {sensor_sdk-0.2.1 → sensor_sdk-0.2.3}/sensor/winrt_high_throughput.py +0 -0
- {sensor_sdk-0.2.1 → sensor_sdk-0.2.3}/sensor_sdk.egg-info/SOURCES.txt +0 -0
- {sensor_sdk-0.2.1 → sensor_sdk-0.2.3}/sensor_sdk.egg-info/dependency_links.txt +0 -0
- {sensor_sdk-0.2.1 → sensor_sdk-0.2.3}/sensor_sdk.egg-info/requires.txt +0 -0
- {sensor_sdk-0.2.1 → sensor_sdk-0.2.3}/sensor_sdk.egg-info/top_level.txt +0 -0
- {sensor_sdk-0.2.1 → sensor_sdk-0.2.3}/sensor_sdk.egg-info/zip-safe +0 -0
- {sensor_sdk-0.2.1 → sensor_sdk-0.2.3}/setup.cfg +0 -0
|
@@ -714,7 +714,11 @@ class SensorProfileDataCtx:
|
|
|
714
714
|
data.clear()
|
|
715
715
|
self.sensorDatas[SensorDataType.DATA_TYPE_EULER] = data
|
|
716
716
|
|
|
717
|
-
|
|
717
|
+
# EEG + OYM 设备默认不订阅 IMU;带 PPG 的设备保留
|
|
718
|
+
if not (self._chip_type == BLEChipType.OYM
|
|
719
|
+
and self.hasEEG()
|
|
720
|
+
and not self.hasPPG()):
|
|
721
|
+
self.notifyDataFlag |= DataSubscription.DNF_IMU
|
|
718
722
|
if self._device_info is not None:
|
|
719
723
|
self._device_info.AccChannelCount = 3
|
|
720
724
|
self._device_info.GyroChannelCount = 3
|
|
@@ -870,6 +874,16 @@ class SensorProfileDataCtx:
|
|
|
870
874
|
self._device_info = info
|
|
871
875
|
await self.initDataTransfer(True)
|
|
872
876
|
|
|
877
|
+
# EEG + OYM 设备默认关闭 IMU;带 PPG 的设备保留 IMU 默认开启
|
|
878
|
+
if (self._chip_type == BLEChipType.OYM
|
|
879
|
+
and self.hasEEG()
|
|
880
|
+
and not self.hasPPG()):
|
|
881
|
+
self.notify_map["NTF_IMU"] = "OFF"
|
|
882
|
+
self.notify_map["NTF_GFORCE_ACC"] = "OFF"
|
|
883
|
+
self.notify_map["NTF_GFORCE_GYRO"] = "OFF"
|
|
884
|
+
self.notify_map["NTF_GFORCE_QUAT"] = "OFF"
|
|
885
|
+
self.notify_map["NTF_GFORCE_EULER"] = "OFF"
|
|
886
|
+
|
|
873
887
|
if self.hasConcatBLE():
|
|
874
888
|
self.notifyDataFlag |= DataSubscription.DNF_CONCAT_BLE
|
|
875
889
|
|
|
@@ -8,7 +8,7 @@ with open(os.path.join(this_directory, "README.md"), "r", encoding="utf-8") as f
|
|
|
8
8
|
|
|
9
9
|
setup(
|
|
10
10
|
name="sensor-sdk",
|
|
11
|
-
version="0.2.
|
|
11
|
+
version="0.2.3",
|
|
12
12
|
description="Python sdk for Synchroni",
|
|
13
13
|
long_description=long_description,
|
|
14
14
|
long_description_content_type="text/markdown",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|