Commit 0165c3f
DEV-793 Add VD6283 ambient-light decoder (data-block id 7)
First Phase-C gen-2 sensor: the VD6283TX45 ambient light. Data block = fixed 10 samples x 18 bytes (6 channels x 24-bit LE, order RED/VISIBLE/BLUE/GREEN/IR/CLEAR - the firmware only emits full blocks, partials are discarded on stop), so it rides the generic fixed-size block path. New SensorVD6283 ports the firmware App_vd6283tx.c conversions (and matches the web SDK's SensorVD6283.ts): UNCAL = raw counts, CAL = gain/exposure-normalised counts plus derived Lux (XYZ Y) and CCT (McCamy). Gain/exposure/dark-channel parsed from payload header bytes 30/31; enable from GEN_CFG_3 bit 3.
The light sample rate is NOT stored in the payload header and the achieved rate differs from both the configured rate and 1/exposure (per-measurement dead time, e.g. ~110 ms at the 100 ms exposure), so PayloadContentsDetailsV8orAbove derives it per payload from the median inter-light-block tick spacing before block timings are back-filled; the exposure-limited estimate seeds blocks when a payload has fewer than two light blocks. Metadata guard widened to accept id 7 (ALGO_HUB/SKIN_TEMP/FLICKER still fail loudly). Slot-1 visible-vs-dark is recorded in the CSV sensor-config line ('Slot1 = Visible|Dark'); the column name stays Light_Visible until a dark-enabled recording exists.
Hand-verified against the spec formulas on the first real light recording (DEV-793 2026-07-27, SR61-5 unit AF6A): normalized RED 278.586 and Lux 207.586 match manual computation exactly; 290 parsed rows = 29 blocks x 10 samples; derived rate 9.209 Hz. Full ASM_PC_00005 suite green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 6da56fc commit 0165c3f
6 files changed
Lines changed: 472 additions & 1 deletion
File tree
- ShimmerDriver/src/main/java/com/shimmerresearch
- driver
- sensors
- verisense
- payloaddesign
- sensors
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2647 | 2647 | | |
2648 | 2648 | | |
2649 | 2649 | | |
| 2650 | + | |
| 2651 | + | |
2650 | 2652 | | |
2651 | 2653 | | |
2652 | 2654 | | |
| |||
2682 | 2684 | | |
2683 | 2685 | | |
2684 | 2686 | | |
| 2687 | + | |
2685 | 2688 | | |
2686 | 2689 | | |
2687 | 2690 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
71 | 72 | | |
72 | 73 | | |
73 | 74 | | |
| |||
Lines changed: 47 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
587 | 588 | | |
588 | 589 | | |
589 | 590 | | |
| 591 | + | |
590 | 592 | | |
591 | 593 | | |
592 | 594 | | |
| |||
1056 | 1058 | | |
1057 | 1059 | | |
1058 | 1060 | | |
| 1061 | + | |
| 1062 | + | |
| 1063 | + | |
| 1064 | + | |
| 1065 | + | |
| 1066 | + | |
| 1067 | + | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + | |
| 1071 | + | |
| 1072 | + | |
| 1073 | + | |
| 1074 | + | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
1059 | 1087 | | |
1060 | 1088 | | |
1061 | 1089 | | |
| |||
1360 | 1388 | | |
1361 | 1389 | | |
1362 | 1390 | | |
| 1391 | + | |
| 1392 | + | |
1363 | 1393 | | |
1364 | 1394 | | |
1365 | 1395 | | |
| |||
1573 | 1603 | | |
1574 | 1604 | | |
1575 | 1605 | | |
| 1606 | + | |
| 1607 | + | |
| 1608 | + | |
1576 | 1609 | | |
1577 | 1610 | | |
1578 | 1611 | | |
| |||
1594 | 1627 | | |
1595 | 1628 | | |
1596 | 1629 | | |
| 1630 | + | |
| 1631 | + | |
| 1632 | + | |
| 1633 | + | |
| 1634 | + | |
1597 | 1635 | | |
1598 | 1636 | | |
1599 | 1637 | | |
| |||
1886 | 1924 | | |
1887 | 1925 | | |
1888 | 1926 | | |
1889 | | - | |
| 1927 | + | |
1890 | 1928 | | |
1891 | 1929 | | |
1892 | 1930 | | |
| |||
2328 | 2366 | | |
2329 | 2367 | | |
2330 | 2368 | | |
| 2369 | + | |
| 2370 | + | |
| 2371 | + | |
| 2372 | + | |
| 2373 | + | |
| 2374 | + | |
| 2375 | + | |
| 2376 | + | |
2331 | 2377 | | |
2332 | 2378 | | |
2333 | 2379 | | |
| |||
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
| |||
Lines changed: 60 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
92 | 93 | | |
93 | 94 | | |
94 | 95 | | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
95 | 102 | | |
96 | 103 | | |
97 | 104 | | |
| |||
306 | 313 | | |
307 | 314 | | |
308 | 315 | | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
309 | 369 | | |
310 | 370 | | |
311 | 371 | | |
| |||
0 commit comments