Commit 90f4ccf
DEV-793 Address round-3 review: tick-wrap fix, self-conflict ids, gap window + round-2 leftovers
CRITICAL (review #1, empirically confirmed - 22 minute-boundary drops in the Test_061 recording alone): the slow-sensor rate refinement wrapped inter-block tick deltas at 2^24, but per-block ticks are a SUB-MINUTE counter (reset at TICKS_PER_MINUTE - the same semantics the minute-rollover backfill depends on), so every minute crossing inflated the period ~8.5x. Negative deltas are now re-based by one minute.
MAJOR (review #2): SensorVD6283/SensorMLX90632 - and the SensorLSM6DSV refs they were copied from - passed their OWN SENSOR_ID as listOfSensorIdsConflicting (5th ctor arg), so setSensorEnabledState() would self-disable them; now empty per the gen-1 convention (e.g. SENSOR_GSR_VERISENSE). Latent only - the SD-parse path is bitmap-driven; all references bit-identical.
MAJOR (review #3): the CSV gap-split window is now seeded from the OBSERVED per-sample period spread [min,max] with the standard tolerance rather than a single-rate +/-10 percent band - the slow sensors' cadence is bimodal (exposure vs exposure+dead-time, ~100/110 ms for the light), so any single-centre band can clip real spacing and fragment the CSV (a band centred on the achieved median rate demonstrably split Test_062). A dropped block (2x period) still splits.
MINORs: McCamy CCT guarded against a zero denominator and clamped to >=0 (review #6); pre-v13 files carrying gen-2 block ids now fail with the informative IOException instead of an NPE - their sensor classes are only registered for v13+ (review #7); Lux/CCT marked CHANNEL_SOURCE.API per the SensorGSR convention (review #5); DEFAULT_EXPO_US=100800 vs table[0]=100000 documented as firmware-faithful, verified against App_vd6283tx.c - review #4 refuted; guard comment rewritten (review #9); refinement variable renamed (review #10).
Round-2 leftovers: the LSM6DSV data-parse now uses the mag as the reference stream when neither accel nor gyro is enabled (split halves of a mag-only block get exact ranges; mirrors countLsm6dsvAlignedSamples - defensive, not firmware-producible); stale 'mag bytes left zero' javadoc corrected; API_00008 gains CAL assertions locking the accel (835.3517 LSB/(m/s^2)) and corrected gyro (57.142857 LSB/dps) constants as literals.
Full ASM_PC_00005 suite green (139 tests incl. suite wrapper), API_00008 green.
Co-Authored-By: Claude Opus 4.8 <[email protected]>1 parent 39aeb92 commit 90f4ccf
6 files changed
Lines changed: 129 additions & 43 deletions
File tree
- ShimmerDriver/src
- main/java/com/shimmerresearch/verisense
- payloaddesign
- sensors
- test/java/com/shimmerresearch/verisense
Lines changed: 45 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1945 | 1945 | | |
1946 | 1946 | | |
1947 | 1947 | | |
1948 | | - | |
1949 | | - | |
1950 | | - | |
1951 | | - | |
1952 | | - | |
1953 | | - | |
1954 | | - | |
1955 | | - | |
1956 | | - | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
1957 | 1962 | | |
1958 | 1963 | | |
1959 | 1964 | | |
| |||
2086 | 2091 | | |
2087 | 2092 | | |
2088 | 2093 | | |
2089 | | - | |
2090 | | - | |
2091 | | - | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
2092 | 2097 | | |
2093 | 2098 | | |
2094 | 2099 | | |
| |||
2101 | 2106 | | |
2102 | 2107 | | |
2103 | 2108 | | |
2104 | | - | |
2105 | | - | |
| 2109 | + | |
| 2110 | + | |
| 2111 | + | |
| 2112 | + | |
| 2113 | + | |
2106 | 2114 | | |
2107 | 2115 | | |
2108 | 2116 | | |
| |||
2126 | 2134 | | |
2127 | 2135 | | |
2128 | 2136 | | |
| 2137 | + | |
2129 | 2138 | | |
2130 | 2139 | | |
2131 | 2140 | | |
2132 | | - | |
2133 | | - | |
2134 | | - | |
2135 | | - | |
| 2141 | + | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
| 2145 | + | |
2136 | 2146 | | |
2137 | | - | |
| 2147 | + | |
2138 | 2148 | | |
2139 | | - | |
| 2149 | + | |
2140 | 2150 | | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
| 2154 | + | |
2141 | 2155 | | |
2142 | 2156 | | |
2143 | | - | |
2144 | | - | |
2145 | | - | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
2146 | 2162 | | |
2147 | 2163 | | |
2148 | 2164 | | |
2149 | 2165 | | |
2150 | | - | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
| 2170 | + | |
| 2171 | + | |
2151 | 2172 | | |
2152 | 2173 | | |
2153 | 2174 | | |
| |||
Lines changed: 38 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
330 | | - | |
| 330 | + | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
334 | 334 | | |
335 | 335 | | |
336 | | - | |
| 336 | + | |
337 | 337 | | |
338 | 338 | | |
339 | 339 | | |
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
351 | 357 | | |
352 | 358 | | |
353 | 359 | | |
| |||
363 | 369 | | |
364 | 370 | | |
365 | 371 | | |
366 | | - | |
| 372 | + | |
367 | 373 | | |
368 | 374 | | |
369 | 375 | | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
370 | 397 | | |
371 | 398 | | |
372 | 399 | | |
| |||
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
| 300 | + | |
| 301 | + | |
301 | 302 | | |
302 | 303 | | |
303 | 304 | | |
| |||
307 | 308 | | |
308 | 309 | | |
309 | 310 | | |
310 | | - | |
| 311 | + | |
| 312 | + | |
311 | 313 | | |
312 | 314 | | |
313 | 315 | | |
| |||
317 | 319 | | |
318 | 320 | | |
319 | 321 | | |
320 | | - | |
| 322 | + | |
| 323 | + | |
321 | 324 | | |
322 | 325 | | |
323 | 326 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
Lines changed: 24 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
71 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
72 | 77 | | |
73 | 78 | | |
74 | 79 | | |
| |||
118 | 123 | | |
119 | 124 | | |
120 | 125 | | |
121 | | - | |
| 126 | + | |
| 127 | + | |
122 | 128 | | |
123 | 129 | | |
124 | 130 | | |
| |||
173 | 179 | | |
174 | 180 | | |
175 | 181 | | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
176 | 187 | | |
177 | 188 | | |
178 | 189 | | |
| |||
253 | 264 | | |
254 | 265 | | |
255 | 266 | | |
256 | | - | |
257 | | - | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
258 | 278 | | |
259 | 279 | | |
260 | 280 | | |
| |||
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
101 | 105 | | |
102 | 106 | | |
103 | 107 | | |
| |||
134 | 138 | | |
135 | 139 | | |
136 | 140 | | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
137 | 151 | | |
138 | 152 | | |
139 | 153 | | |
| |||
0 commit comments