Skip to content

Commit b72a924

Browse files
marknolanclaude
andcommitted
DEV-875 Generalise the LSM6DS3 non-wear derived-sensor bit to the LSM6DS family
Non-wear detection is being extended to the second-generation LSM6DSV accel (SR68-9/10, SR61-5/6). The LSM6DS3 and LSM6DSV never coexist on one board, and the Verisense derived-sensors mask is a purely in-process enable key (never written to config bytes, DB, or cloud - unlike the frozen Shimmer3 namespace), so the existing bit 1 is renamed NON_WEAR_DETECTION_LSM6DSX and shared by both IMU generations rather than consuming a new bit. The old constant remains as a deprecated alias for source compatibility with consumers of the published jar. The algorithm-side change (merged LSM6DSX AlgorithmDetails with SENSOR_CHECK_METHOD.ANY) lives in the ASM_PC repo. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 6a6bd1e commit b72a924

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

ShimmerDriver/src/main/java/com/shimmerresearch/driver/Configuration.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2651,7 +2651,14 @@ public class SensorBitmap {
26512651

26522652
public class DerivedSensorsBitMask {
26532653
public final static int NON_WEAR_DETECTION_LIS2DW12 = (1 << 0);
2654-
public final static int NON_WEAR_DETECTION_LSM6DS3 = (1 << 1);
2654+
/** Covers the LSM6DS IMU family: LSM6DS3 (first-generation) and LSM6DSV
2655+
* (second-generation SR68-9/10, SR61-5/6). The two never coexist on one
2656+
* board so a single bit is unambiguous. */
2657+
public final static int NON_WEAR_DETECTION_LSM6DSX = (1 << 1);
2658+
/** @deprecated renamed to {@link #NON_WEAR_DETECTION_LSM6DSX} when non-wear
2659+
* detection was extended to the LSM6DSV (DEV-875). */
2660+
@Deprecated
2661+
public final static int NON_WEAR_DETECTION_LSM6DS3 = NON_WEAR_DETECTION_LSM6DSX;
26552662
public final static int PPG_TO_HR_RED_LED = (1 << 2);
26562663
public final static int PPG_TO_HR_IR_LED = (1 << 3);
26572664
public final static int PPG_TO_HR_GREEN_LED = (1 << 4);

0 commit comments

Comments
 (0)