sensor-sdk 0.0.52__tar.gz → 0.0.53__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.52/sensor_sdk.egg-info → sensor_sdk-0.0.53}/PKG-INFO +1 -1
- {sensor_sdk-0.0.52 → sensor_sdk-0.0.53}/sensor/sensor_data.py +2 -0
- {sensor_sdk-0.0.52 → sensor_sdk-0.0.53}/sensor/sensor_data_context.py +9 -0
- {sensor_sdk-0.0.52 → sensor_sdk-0.0.53/sensor_sdk.egg-info}/PKG-INFO +1 -1
- {sensor_sdk-0.0.52 → sensor_sdk-0.0.53}/setup.py +1 -1
- {sensor_sdk-0.0.52 → sensor_sdk-0.0.53}/LICENSE.txt +0 -0
- {sensor_sdk-0.0.52 → sensor_sdk-0.0.53}/README.md +0 -0
- {sensor_sdk-0.0.52 → sensor_sdk-0.0.53}/sensor/__init__.py +0 -0
- {sensor_sdk-0.0.52 → sensor_sdk-0.0.53}/sensor/bleak_host.py +0 -0
- {sensor_sdk-0.0.52 → sensor_sdk-0.0.53}/sensor/bleak_process.py +0 -0
- {sensor_sdk-0.0.52 → sensor_sdk-0.0.53}/sensor/gforce.py +0 -0
- {sensor_sdk-0.0.52 → sensor_sdk-0.0.53}/sensor/sensor_controller.py +0 -0
- {sensor_sdk-0.0.52 → sensor_sdk-0.0.53}/sensor/sensor_device.py +0 -0
- {sensor_sdk-0.0.52 → sensor_sdk-0.0.53}/sensor/sensor_profile.py +0 -0
- {sensor_sdk-0.0.52 → sensor_sdk-0.0.53}/sensor/sensor_utils.py +0 -0
- {sensor_sdk-0.0.52 → sensor_sdk-0.0.53}/sensor_sdk.egg-info/SOURCES.txt +0 -0
- {sensor_sdk-0.0.52 → sensor_sdk-0.0.53}/sensor_sdk.egg-info/dependency_links.txt +0 -0
- {sensor_sdk-0.0.52 → sensor_sdk-0.0.53}/sensor_sdk.egg-info/requires.txt +0 -0
- {sensor_sdk-0.0.52 → sensor_sdk-0.0.53}/sensor_sdk.egg-info/top_level.txt +0 -0
- {sensor_sdk-0.0.52 → sensor_sdk-0.0.53}/sensor_sdk.egg-info/zip-safe +0 -0
- {sensor_sdk-0.0.52 → sensor_sdk-0.0.53}/setup.cfg +0 -0
|
@@ -92,6 +92,7 @@ class SensorData:
|
|
|
92
92
|
self.channelSamples: List[List[Sample]] = list()
|
|
93
93
|
self.lastPackageCounter = 0
|
|
94
94
|
self.lastPackageIndex = 0
|
|
95
|
+
self.lostPackageCount = 0
|
|
95
96
|
self.resolutionBits = 0
|
|
96
97
|
self.channelMask = 0
|
|
97
98
|
self.minPackageSampleCount = 0
|
|
@@ -101,3 +102,4 @@ class SensorData:
|
|
|
101
102
|
self.channelSamples.clear()
|
|
102
103
|
self.lastPackageCounter = -1
|
|
103
104
|
self.lastPackageIndex = 0
|
|
105
|
+
self.lostPackageCount = 0
|
|
@@ -1309,6 +1309,14 @@ class SensorProfileDataCtx:
|
|
|
1309
1309
|
return False
|
|
1310
1310
|
|
|
1311
1311
|
deltaPackageIndex = packageIndex - lastPackageIndex
|
|
1312
|
+
lostPackageCount = deltaPackageIndex - 1
|
|
1313
|
+
if lostPackageCount > 65535:
|
|
1314
|
+
lostPackageCount = 1
|
|
1315
|
+
elif lostPackageCount > 50:
|
|
1316
|
+
lostPackageCount = 50
|
|
1317
|
+
if lostPackageCount > 0:
|
|
1318
|
+
sensorData.lostPackageCount += lostPackageCount
|
|
1319
|
+
|
|
1312
1320
|
if deltaPackageIndex > 1:
|
|
1313
1321
|
lostSampleCount = sensorData.packageSampleCount * (deltaPackageIndex - 1)
|
|
1314
1322
|
|
|
@@ -1483,6 +1491,7 @@ class SensorProfileDataCtx:
|
|
|
1483
1491
|
sensorDataResult.sampleRate = sensorData.sampleRate
|
|
1484
1492
|
sensorDataResult.channelCount = sensorData.channelCount
|
|
1485
1493
|
sensorDataResult.minPackageSampleCount = sensorData.minPackageSampleCount
|
|
1494
|
+
sensorDataResult.lostPackageCount = sensorData.lostPackageCount
|
|
1486
1495
|
sensorDataList.append(sensorDataResult)
|
|
1487
1496
|
|
|
1488
1497
|
if self.debugCSVPath != None and self.debugCSVPath != "" and self.debugCSVWriter == None:
|
|
@@ -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.53",
|
|
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
|