Commit f6672a4d authored by 16이상민's avatar 16이상민

Refactoring class "DistItvExtractor"

parent 79d8170b
This diff is collapsed.
...@@ -72,15 +72,15 @@ namespace MotionAnalysis ...@@ -72,15 +72,15 @@ namespace MotionAnalysis
private void Clap() private void Clap()
{ {
const float distPrepare = 0.3f, const float itvPrepare = 0.3f,
distDone = 0.1f; itvDone = 0.1f;
if (Extractor.DistHandBaseSpineShoulder <= 0.0f) if (Extractor.DistHandBaseSpineShoulder <= 0.0f)
return; return;
if (Extractor.DistHand > distPrepare) if (Extractor.ItvHand > itvPrepare)
Motion |= MotionState.CLAP_PREPARE; Motion |= MotionState.CLAP_PREPARE;
else if (Extractor.DistHand < distDone) else if (Extractor.ItvHand < itvDone)
Motion |= MotionState.CLAP_DONE; Motion |= MotionState.CLAP_DONE;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment