benkuper / bikinect

Automatically exported from code.google.com/p/bikinect
3 stars 1 forks source link

problem on Z axis #18

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

        <mapping label="piededestro">   

                <processor type="boolean" filter="greater_than" label="piede_dx">
                    <processor type="filtered" filter="minus"  >
                        <element type="joint" target="left_hand" property="position" axis="z" />
                        <element type="joint" target="right_hand" property="position" axis="z" />
                    </processor>    
                    <processor type="direct">
                        <element type="value" value="300" />
                    </processor>    
                </processor>

                <output>
                    <midi type="note" device="0" channel="1" channelMap="1" velocityMap="0" minChannel="63" maxChannel="68" minVelocity="0" maxVelocity="127" distinctNotes="true" />
                </output>
        </mapping>      

What is the expected output? What do you see instead?

Triggers when left_hand z axis is more than 30cm than right_hand z axis. It 
doesn't, it0s always triggered. I tried to change axis to check, with x and 
after with y: it works! Seems the problem is just on axis Z.

What version of the product are you using? On what operating system?

mac 10.6.7., mappinect 0.2

Please provide any additional information below.

Original issue reported on code.google.com by michele....@gmail.com on 12 Jan 2012 at 2:19

GoogleCodeExporter commented 9 years ago
Yes, i just understood what's not functionning in the code. The problem is 
quite difficult to fix, i'm on it.
It's a bad behaviour of the overflow and default min/max values when the Z axis 
is chosen.

You can add overflow="none" in the filtered processor, that will pass the 
default min/max Z values.

Original comment by bkuperb...@gmail.com on 12 Jan 2012 at 3:13

GoogleCodeExporter commented 9 years ago

Original comment by bkuperb...@gmail.com on 6 Jul 2012 at 10:53