<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Logical calculator (what I did works but I don&#x27;t get it) and equivalent in javascript]]></title><description><![CDATA[<p dir="auto">Hello all,</p>
<div>the very little discussed logical calculator is a difficult one to understand for me.</div>
<div>First of all the actor help text..... who understands it? For me it is not a very "isadorish" text. I don't get it. I suggest a more comprehensible text (even if it is a bit longer. And in fact in the manual the description text is shorter than the actor help). Could someone explain it ?</div>
<div>What I understood (at least for the AND operation is that if 2 values going in the "value 1" and "value 2 inputs are the same (either 0 or 1) AND operation outputs "1" if the values in the input properties are different the actor calculates "0". Is that correct?</div>
<div>I made a real life example : I need to track x and y position of a dancer on a stage. I'm doing it with an infrared camera pointing down in zenithal position with eyes++. In the patch I sent dancer position is simulated with a 2d slider.</div>
<div>What I want izzy to detect is if the dancer is close to the borders for 3 seconds or if he is more in the center for same 3 seconds. For the Izzy to determine if the dancer is close to the border or closer to the center I used 2 inside range (that determine the "center" area and the "borders" area).</div>
<div>The logical calculator is there to compare the presence in the 2 different zones and the 2 subsequent trigger delays allow to determine the duration of the presence in the area. Izzy "sees" if the dancer stays in an area for more than 3 seconds continuously before determining the change in the presence zone.</div>
<div>Questions:</div>
<div>How can I add third parameter like speed (beyond x and y position)? For example it could be interesting to determine: dancer is moving slow and is in the center or fast in the center etc...</div>
<div>How can I do this in javascript? Any idea and thoughts on the actor?</div>
<p dir="auto"><a href="/uploads/files/FileUpload/b7/d4ff1d-logical-calculator-armando.izz">d4ff1d-logical-calculator-armando.izz</a></p>
]]></description><link>https://community.troikatronix.com/topic/2698/logical-calculator-what-i-did-works-but-i-don-t-get-it-and-equivalent-in-javascript</link><generator>RSS for Node</generator><lastBuildDate>Mon, 13 Apr 2026 22:03:51 GMT</lastBuildDate><atom:link href="https://community.troikatronix.com/topic/2698.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 17 Jun 2016 02:52:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Logical calculator (what I did works but I don&#x27;t get it) and equivalent in javascript on Sat, 17 Jan 1970 23:17:44 GMT]]></title><description><![CDATA[<p dir="auto">Take a look at the '2D velocity' actor.</p>
<div>  
you can find a detailed breakdown of Bitwise operations (specifically for Javascript) here: </div>
<div>https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Operators/Bitwise_Operators</div>
<div>These can be confusing, but your usage of AND sounds correct.</div>]]></description><link>https://community.troikatronix.com/post/20289</link><guid isPermaLink="true">https://community.troikatronix.com/post/20289</guid><dc:creator><![CDATA[DusX]]></dc:creator><pubDate>Sat, 17 Jan 1970 23:17:44 GMT</pubDate></item></channel></rss>