My project is on measuring range of motion. So i have to make use of orientation sensor to sensor the start and stop position when the person move. I set a counter to measure the start position but as for stop position i would like to measure it after i measure start position. But i cant seem to do it. It counter both together and measure both at the same time . I appreciate your help. Thank you
--
If you have set your clock Timer Intervals to 1000 then started them at the same time, they will both have the same pitch value.
✱✱✱
Use only Clock1 component.
⦁ set Ystarttext.Text to OrientationSensor1.Pitch
⦁ set Clock1.TimerInterval to the number of milliseconds to delay
⦁ set Clock1.TimerEnabled to frue
Inside the Clock Timer event block:
⦁ set Ystoptext.Text to OrientationSensor1.Pitch
⦁ set Clock1.TimerEnabled to false
The range of movement will be Ystoptext.Text - Ystarttext.Text (which may be either a positive or negative number).
You can force the value to be positive with the Math abs (absolute value) block.
댓글 없음:
댓글 쓰기