diff --git a/app/src/main/java/com/example/medilightv2android/managers/GreenZoneConstants.kt b/app/src/main/java/com/example/medilightv2android/managers/GreenZoneConstants.kt index c7f34c0..8eabc99 100644 --- a/app/src/main/java/com/example/medilightv2android/managers/GreenZoneConstants.kt +++ b/app/src/main/java/com/example/medilightv2android/managers/GreenZoneConstants.kt @@ -26,7 +26,7 @@ object GreenZoneConstants { @Volatile var detectionMethod: DetectionMethod = DetectionMethod.METHOD_C @Volatile var bvMethod: BvMethod = BvMethod.V41 @Volatile var placementGuideMode: PlacementGuideMode = PlacementGuideMode.SIMPLE - @Volatile var alignmentAlgo: AlignmentAlgo = AlignmentAlgo.V2 // default V2 (4-stage Method D). V1 은 dev 토글로 fallback. + @Volatile var alignmentAlgo: AlignmentAlgo = AlignmentAlgo.V1 // default V1 (일반 사용자). V2 (Method D) 는 clinical alignment session 전용. /** Posture pitch 임계값 (deg). |pitch| > 이 값 → LYING, ≤ 이 값 → NON_LYING. dev 모드에서 조정 가능. */ @Volatile var pitchLyingThreshold: Float = 25f diff --git a/app/src/main/java/com/example/medilightv2android/ui/views/monitoring/PlacementGuideView.kt b/app/src/main/java/com/example/medilightv2android/ui/views/monitoring/PlacementGuideView.kt index 4b77fab..437945f 100644 --- a/app/src/main/java/com/example/medilightv2android/ui/views/monitoring/PlacementGuideView.kt +++ b/app/src/main/java/com/example/medilightv2android/ui/views/monitoring/PlacementGuideView.kt @@ -123,15 +123,17 @@ fun PlacementGuideView(appState: AppState) { var sweepLastDetected by remember { mutableIntStateOf(0) } var sweepEverSawAll by remember { mutableStateOf(false) } - // 화면 진입 시 전체 상태 리셋. V2 (4-stage Method D) 를 default 로 사용 — 모든 진입점에서. - // (이전: clinical alignment 만 V2, 그 외 V1 → 사용자 경험 분산. 통일.) + // 화면 진입 시 전체 상태 리셋. + // V2 (4-stage Method D) 는 R&D/clinical alignment session 전용. + // 일반 사용자 flow (Home → Start → Personalization → PlacementGuide) 는 V1 사용. LaunchedEffect(Unit) { val sess = com.example.medilightv2android.services.ClinicalSessionStore.currentSession val isClinicalAlign = !appState.placementFromMonitoring && sess != null && sess.mode == com.example.medilightv2android.models.SessionMode.ALIGNMENT com.example.medilightv2android.managers.GreenZoneConstants.alignmentAlgo = - com.example.medilightv2android.managers.AlignmentAlgo.V2 + if (isClinicalAlign) com.example.medilightv2android.managers.AlignmentAlgo.V2 + else com.example.medilightv2android.managers.AlignmentAlgo.V1 v2Aligner.reset() // Clinical alignment session 진입 시 — 자동으로 scan 시작 (Step 0 baseline 캡쳐). // waitingForStart 는 true 유지 — 사용자는 여전히 Start 눌러 알고리즘 시작 결정.