sensor-sdk 0.0.63__tar.gz → 0.0.65__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.0.63/sensor_sdk.egg-info → sensor_sdk-0.0.65}/PKG-INFO +1 -1
- {sensor_sdk-0.0.63 → sensor_sdk-0.0.65}/sensor/sensor_data_context.py +9 -7
- {sensor_sdk-0.0.63 → sensor_sdk-0.0.65/sensor_sdk.egg-info}/PKG-INFO +1 -1
- {sensor_sdk-0.0.63 → sensor_sdk-0.0.65}/setup.py +1 -1
- {sensor_sdk-0.0.63 → sensor_sdk-0.0.65}/LICENSE.txt +0 -0
- {sensor_sdk-0.0.63 → sensor_sdk-0.0.65}/README.md +0 -0
- {sensor_sdk-0.0.63 → sensor_sdk-0.0.65}/sensor/__init__.py +0 -0
- {sensor_sdk-0.0.63 → sensor_sdk-0.0.65}/sensor/bleak_host.py +0 -0
- {sensor_sdk-0.0.63 → sensor_sdk-0.0.65}/sensor/bleak_process.py +0 -0
- {sensor_sdk-0.0.63 → sensor_sdk-0.0.65}/sensor/gforce.py +0 -0
- {sensor_sdk-0.0.63 → sensor_sdk-0.0.65}/sensor/sensor_controller.py +0 -0
- {sensor_sdk-0.0.63 → sensor_sdk-0.0.65}/sensor/sensor_data.py +0 -0
- {sensor_sdk-0.0.63 → sensor_sdk-0.0.65}/sensor/sensor_device.py +0 -0
- {sensor_sdk-0.0.63 → sensor_sdk-0.0.65}/sensor/sensor_profile.py +0 -0
- {sensor_sdk-0.0.63 → sensor_sdk-0.0.65}/sensor/sensor_utils.py +0 -0
- {sensor_sdk-0.0.63 → sensor_sdk-0.0.65}/sensor_sdk.egg-info/SOURCES.txt +0 -0
- {sensor_sdk-0.0.63 → sensor_sdk-0.0.65}/sensor_sdk.egg-info/dependency_links.txt +0 -0
- {sensor_sdk-0.0.63 → sensor_sdk-0.0.65}/sensor_sdk.egg-info/requires.txt +0 -0
- {sensor_sdk-0.0.63 → sensor_sdk-0.0.65}/sensor_sdk.egg-info/top_level.txt +0 -0
- {sensor_sdk-0.0.63 → sensor_sdk-0.0.65}/sensor_sdk.egg-info/zip-safe +0 -0
- {sensor_sdk-0.0.63 → sensor_sdk-0.0.65}/setup.cfg +0 -0
|
@@ -839,21 +839,21 @@ class SensorProfileDataCtx:
|
|
|
839
839
|
sensor_data = self.sensorDatas[SensorDataType.DATA_TYPE_BRTH]
|
|
840
840
|
if self.checkReadSamples(data, sensor_data, 3, 0, on_error_callback):
|
|
841
841
|
self.sendSensorData(sensor_data, buf)
|
|
842
|
-
elif v == DataType.NTF_IMU:
|
|
842
|
+
elif v == DataType.NTF_IMU and self.hasIMU():
|
|
843
843
|
self._process_imu_samples(data, buf, on_error_callback)
|
|
844
|
-
elif v == DataType.NTF_PPG:
|
|
844
|
+
elif v == DataType.NTF_PPG and self.hasPPG():
|
|
845
845
|
sensor_data = self.sensorDatas[SensorDataType.DATA_TYPE_PPG]
|
|
846
846
|
if self.checkReadSamples(data, sensor_data, 3, 0, on_error_callback):
|
|
847
847
|
self.sendSensorData(sensor_data, buf)
|
|
848
|
-
elif v == DataType.NTF_SPO2:
|
|
848
|
+
elif v == DataType.NTF_SPO2 and self.hasPPG():
|
|
849
849
|
self._process_spo2_data(data, buf)
|
|
850
|
-
elif v == DataType.NTF_EULER_DATA:
|
|
850
|
+
elif v == DataType.NTF_EULER_DATA and self.hasEuler():
|
|
851
851
|
self._process_gforce_float_data(data, buf, SensorDataType.DATA_TYPE_EULER, 3)
|
|
852
|
-
elif v == DataType.NTF_QUATERNION:
|
|
852
|
+
elif v == DataType.NTF_QUATERNION and self.hasQuat():
|
|
853
853
|
self._process_gforce_float_data(data, buf, SensorDataType.DATA_TYPE_GFORCE_QUAT, 4)
|
|
854
|
-
elif v == DataType.NTF_ACC:
|
|
854
|
+
elif v == DataType.NTF_ACC and self.hasAcc():
|
|
855
855
|
self._process_gforce_int_data(data, buf, SensorDataType.DATA_TYPE_ACC, 3)
|
|
856
|
-
elif v == DataType.NTF_GYRO:
|
|
856
|
+
elif v == DataType.NTF_GYRO and self.hasGyro():
|
|
857
857
|
self._process_gforce_int_data(data, buf, SensorDataType.DATA_TYPE_GYRO, 3)
|
|
858
858
|
|
|
859
859
|
def _process_gforce_float_data(self, data: bytes, buf: Queue[SensorData],
|
|
@@ -1289,6 +1289,8 @@ class SensorProfileDataCtx:
|
|
|
1289
1289
|
|
|
1290
1290
|
if not self._is_data_transfering:
|
|
1291
1291
|
return False
|
|
1292
|
+
if sensorData is None or sensorData.packageSampleCount <= 0 or sensorData.channelCount <= 0 or sensorData.minPackageSampleCount <= 0 or sensorData.K <= 0:
|
|
1293
|
+
return False
|
|
1292
1294
|
try:
|
|
1293
1295
|
packageIndex = 0
|
|
1294
1296
|
maxPackageIndex = 0
|
|
@@ -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.0.
|
|
11
|
+
version="0.0.65",
|
|
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
|