[Main/Load] Load 기능 사용 시 엉뚱하게 설정되는 증상 #57

Closed
opened 2026-03-08 03:59:25 +00:00 by steven · 1 comment
Owner

Load List의 데이터를 호출할 때, 동일하지 않은 Pusle Duration인 경우 Fluence 값이 엉뚱하게 설정되는 버그

Load List의 데이터를 호출할 때, 동일하지 않은 Pusle Duration인 경우 Fluence 값이 엉뚱하게 설정되는 버그
steven added the bugPriority:High labels 2026-03-08 03:59:31 +00:00
Owner

applyPreset(priority) 동작순서

메인 게이지 각도 상태를 프리셋에 맞게 맞추는 함수

  1. presetList에서 현재 handPiece.type + priority가 일치하는 프리셋을 찾음.
  2. 없으면 기본 프리셋을 임시 생성:
    • handPieceType = 현재 타입
    • priority = 전달값
    • pulseWidth = PulseDurations.first()
    • fluence = energyTable(0.5f)의 첫 값
    • repetition = repetitionList.first()
  3. 프리셋의 pulseWidth/fluence/repetition이 각각 몇 번째 step인지 계산 (없으면 0).
  4. step을 각도(degree)로 변환.
  5. setPulseAngle, setFluenceAngle, setRepetitionAngle로 ViewModel 상태 업데이트.
### applyPreset(priority) 동작순서 > 메인 게이지 각도 상태를 프리셋에 맞게 맞추는 함수 1. presetList에서 현재 handPiece.type + priority가 일치하는 프리셋을 찾음. 2. 없으면 기본 프리셋을 임시 생성: - handPieceType = 현재 타입 - priority = 전달값 - pulseWidth = PulseDurations.first() - fluence = energyTable(0.5f)의 첫 값 - repetition = repetitionList.first() 3. 프리셋의 pulseWidth/fluence/repetition이 각각 몇 번째 step인지 계산 (없으면 0). 4. step을 각도(degree)로 변환. 5. setPulseAngle, setFluenceAngle, setRepetitionAngle로 ViewModel 상태 업데이트.
steven added reference feature/ISSUE-57 2026-03-08 06:07:50 +00:00
Sign in to join this conversation.