fix: 加速度计阈值调优(实测数据:low<4 high>=5)
实测抬手过渡期Z轴均值4.5-6.5,原阈值high>=6太严格导致多次漏触发。 降低为high>=5,提高low为<4,提升灵敏度。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -33,10 +33,10 @@ class FiseAccelerometerWake @Inject constructor(
|
|||||||
) : AccelerometerWakeController, SensorEventListener {
|
) : AccelerometerWakeController, SensorEventListener {
|
||||||
|
|
||||||
companion object {
|
companion object {
|
||||||
/** 方案C:Z轴低位阈值(手臂下垂判定) */
|
/** 方案C:Z轴低位阈值(手臂下垂判定),实测下垂稳定值0-3 */
|
||||||
private const val Z_LOW_THRESHOLD = 3f
|
private const val Z_LOW_THRESHOLD = 4f
|
||||||
/** 方案C:Z轴高位阈值(手臂抬起判定),来源 baseline/04 home.vue:122 原值5,加迟滞调整为6 */
|
/** 方案C:Z轴高位阈值(手臂抬起判定),实测抬手过渡期均值4.5-6.5,稳定值8-9 */
|
||||||
private const val Z_HIGH_THRESHOLD = 6f
|
private const val Z_HIGH_THRESHOLD = 5f
|
||||||
/** 方案C:滑动窗口大小(前半+后半各3个采样,SENSOR_DELAY_NORMAL下约1.2秒) */
|
/** 方案C:滑动窗口大小(前半+后半各3个采样,SENSOR_DELAY_NORMAL下约1.2秒) */
|
||||||
private const val WINDOW_SIZE = 6
|
private const val WINDOW_SIZE = 6
|
||||||
/** 方案C:前半窗口大小 */
|
/** 方案C:前半窗口大小 */
|
||||||
|
|||||||
Reference in New Issue
Block a user